]> git.openstreetmap.org Git - chef.git/commitdiff
Allow nginx to autotune workers
authorGrant Slater <git@firefishy.com>
Fri, 30 Dec 2016 16:50:54 +0000 (16:50 +0000)
committerGrant Slater <git@firefishy.com>
Fri, 30 Dec 2016 16:50:54 +0000 (16:50 +0000)
cookbooks/nginx/templates/default/nginx.conf.erb

index 903afd51c9781f2bf4ff7355df657a317be030e4..a895af303c46e8b930625ada40ddee164e267b4b 100644 (file)
@@ -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;