Set nginx worker_processes automatically based on CPU count.

(imported from commit e48143c1410439d0574bc78bfd64c22a3063d558)
This commit is contained in:
Tim Abbott 2013-12-05 16:10:51 -05:00
parent 4490881685
commit 6663247e22
1 changed files with 1 additions and 3 deletions

View File

@ -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;