From c373f9571f2a9bf2b0916ce02033cd96765b42d1 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Fri, 30 Dec 2016 16:50:54 +0000 Subject: [PATCH] Allow nginx to autotune workers --- cookbooks/nginx/templates/default/nginx.conf.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.43.2