]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nginx/templates/default/nginx.conf.erb
Allow nginx to autotune workers
[chef.git] / 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;