Browse Source

Merge pull request #173 from wsantos/patch-1

Update nginx.conf
Patrick Falls 12 years ago
parent
commit
f5fdc4046c
1 changed files with 4 additions and 3 deletions
  1. 4 3
      tornado/deploy/nginx.conf

+ 4 - 3
tornado/deploy/nginx.conf

@@ -1,11 +1,12 @@
 #user nginx;
-worker_processes 1;
+worker_processes 8;
 
 #error_log /var/log/nginx/error.log;
 #pid /var/run/nginx.pid;
 
 events {
-    worker_connections 1024;
+    worker_connections 8196;
+    accept_mutex off;
     use epoll;
 }
 
@@ -27,7 +28,7 @@ http {
 
     # access_log /var/log/nginx/access.log;
 
-    keepalive_timeout 65;
+    keepalive_timeout 5;
     proxy_read_timeout 200;
     sendfile on;
     tcp_nopush on;