Bladeren bron

[Python] uWSGI: fix max connections (net.core.somaxconn) (#8142)

Oleg S 2 jaren geleden
bovenliggende
commit
c02fa001c9
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      frameworks/Python/uwsgi/nginx.conf
  2. 1 1
      frameworks/Python/uwsgi/uwsgi.ini

+ 1 - 1
frameworks/Python/uwsgi/nginx.conf

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

+ 1 - 1
frameworks/Python/uwsgi/uwsgi.ini

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