From 6663247e22e39739dd8a3a41f98e95ca5c630c96 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 5 Dec 2013 16:10:51 -0500 Subject: [PATCH] Set nginx worker_processes automatically based on CPU count. (imported from commit e48143c1410439d0574bc78bfd64c22a3063d558) --- puppet/zulip/files/nginx/nginx.conf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/puppet/zulip/files/nginx/nginx.conf b/puppet/zulip/files/nginx/nginx.conf index 5753b21a0f..55faf61189 100644 --- a/puppet/zulip/files/nginx/nginx.conf +++ b/puppet/zulip/files/nginx/nginx.conf @@ -1,8 +1,6 @@ user zulip; -# This is set to 8 because that's how many processors we have on -# prod0. On other systems, it's more than we strictly need. -worker_processes 8; +worker_processes auto; pid /var/run/nginx.pid; worker_rlimit_nofile 40000;