Optimize nginx options.
@@ -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;