From 0f34bd0ed1b2792f8dc09f7c78494f40febe9e30 Mon Sep 17 00:00:00 2001 From: Selivanov Pavel Date: Mon, 22 Jan 2018 04:53:58 +0300 Subject: [PATCH 1/3] Remove use epoll Nginx automatically selects most efficient method. When you say `use epoll`, you make your configs workable only on Linux servers, no *BSD or Windows. --- public/templates/nginx.conf.html | 1 - 1 file changed, 1 deletion(-) diff --git a/public/templates/nginx.conf.html b/public/templates/nginx.conf.html index 8961730..a42d9f7 100644 --- a/public/templates/nginx.conf.html +++ b/public/templates/nginx.conf.html @@ -6,7 +6,6 @@ worker_rlimit_nofile 409600; events { worker_connections 4096; multi_accept on; - use epoll; } http { From 982f62e81b3703bfd193179c025838bee6adc855 Mon Sep 17 00:00:00 2001 From: Selivanov Pavel Date: Mon, 22 Jan 2018 04:55:19 +0300 Subject: [PATCH 2/3] Add worker_processes auto Number of worker processes equal to number of CPU cores, instead of default 1. --- public/templates/nginx.conf.html | 1 + 1 file changed, 1 insertion(+) diff --git a/public/templates/nginx.conf.html b/public/templates/nginx.conf.html index a42d9f7..fe1a6b9 100644 --- a/public/templates/nginx.conf.html +++ b/public/templates/nginx.conf.html @@ -4,6 +4,7 @@ worker_processes {{ data.worker_processes }}; worker_rlimit_nofile 409600; events { + worker_processes auto; worker_connections 4096; multi_accept on; } From c3020573aea0ff81b6ba041c27dcad2f49ff0015 Mon Sep 17 00:00:00 2001 From: Selivanov Pavel Date: Mon, 22 Jan 2018 05:01:20 +0300 Subject: [PATCH 3/3] Worker processes is already set --- public/templates/nginx.conf.html | 1 - 1 file changed, 1 deletion(-) diff --git a/public/templates/nginx.conf.html b/public/templates/nginx.conf.html index fe1a6b9..a42d9f7 100644 --- a/public/templates/nginx.conf.html +++ b/public/templates/nginx.conf.html @@ -4,7 +4,6 @@ worker_processes {{ data.worker_processes }}; worker_rlimit_nofile 409600; events { - worker_processes auto; worker_connections 4096; multi_accept on; }