@@ -6,7 +6,7 @@ error_log stderr error;
events {
# This needed to be increased because the nginx error log said so.
# http://nginx.org/en/docs/ngx_core_module.html#worker_connections
- worker_connections 65535;
+ worker_connections 4095;
multi_accept on;
}
@@ -2,7 +2,7 @@
master
; Increase listen queue used for nginx connecting to uWSGI. This matches
; net.ipv4.tcp_max_syn_backlog and net.core.somaxconn.
-listen = 16384
+listen = 4096
; for performance
disable-logging
; use UNIX sockets instead of TCP loopback for performance