projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3587884
)
Allow nginx to autotune workers
author
Grant Slater
<git@firefishy.com>
Fri, 30 Dec 2016 16:50:54 +0000
(16:50 +0000)
committer
Grant Slater
<git@firefishy.com>
Fri, 30 Dec 2016 16:50:54 +0000
(16:50 +0000)
cookbooks/nginx/templates/default/nginx.conf.erb
patch
|
blob
|
history
diff --git
a/cookbooks/nginx/templates/default/nginx.conf.erb
b/cookbooks/nginx/templates/default/nginx.conf.erb
index 903afd51c9781f2bf4ff7355df657a317be030e4..a895af303c46e8b930625ada40ddee164e267b4b 100644
(file)
--- 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;
# 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;
worker_rlimit_nofile 65536;
error_log /var/log/nginx/error.log warn;