Permalink
Browse files

tune nginx settings

  • Loading branch information...
1 parent cd08757 commit 904a76a3f338031e6445c65a6bff932843e077a5 @mgogoulos mgogoulos committed Jul 19, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 templates/main.conf.template
@@ -12,14 +12,16 @@ user ${site:www-user};
pid ${buildout:directory}/var/main.pid;
lock_file ${buildout:directory}/var/main.lock;
-worker_processes 1;
+worker_processes 2;
+#on engagemedia.org this is 4
daemon off;
events {
- worker_connections 1024;
+ worker_connections 10240;
}
+worker_rlimit_nofile 20000; #each connection needs a filehandle (or 2 if you are proxying)
# Logging

0 comments on commit 904a76a

Please sign in to comment.