From: Grant Slater Date: Fri, 30 Dec 2016 16:50:54 +0000 (+0000) Subject: Allow nginx to autotune workers X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/c373f9571f2a9bf2b0916ce02033cd96765b42d1?ds=inline Allow nginx to autotune workers --- diff --git a/cookbooks/nginx/templates/default/nginx.conf.erb b/cookbooks/nginx/templates/default/nginx.conf.erb index 903afd51c..a895af303 100644 --- a/cookbooks/nginx/templates/default/nginx.conf.erb +++ b/cookbooks/nginx/templates/default/nginx.conf.erb @@ -1,7 +1,8 @@ # DO NOT EDIT - This file is being maintained by Chef user www-data; -worker_processes <%= node['cpu']['total'] %>; +worker_processes auto; +worker_cpu_affinity auto; worker_rlimit_nofile 65536; error_log /var/log/nginx/error.log warn;