From 1b3f9e7768d8379262b8edf58ddd7809802fd0fe Mon Sep 17 00:00:00 2001 From: Adam Radocz Date: Fri, 31 May 2019 20:54:14 +0200 Subject: [PATCH] Change worker_processes value to auto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The nginx documentation says (http://nginx.org/en/docs/ngx_core_module.html#worker_processes): The optimal value depends on many factors including (but not limited to) the number of CPU cores, the number of hard disk drives that store data, and load pattern. When one is in doubt, setting it to the number of available CPU cores would be a good start (the value “auto” will try to autodetect it). So changing the "worker_processes" value to auto is more general, then the current option. --- root/defaults/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/defaults/nginx.conf b/root/defaults/nginx.conf index a3ad7cc..bec6c2f 100644 --- a/root/defaults/nginx.conf +++ b/root/defaults/nginx.conf @@ -1,7 +1,7 @@ ## Version 2018/04/07 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/nginx.conf user abc; -worker_processes 4; +worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules/*.conf;