From: Guillaume Pellerin Date: Mon, 6 Jul 2026 08:30:41 +0000 (+0200) Subject: increase listen connections to 4096, decrease num of workers X-Git-Tag: 3.0.2~4^2~1 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3c2e2608a490a5c672786ea5e2aaba9c8901f5c7;p=teleforma.git increase listen connections to 4096, decrease num of workers --- diff --git a/app/wsgi.ini b/app/wsgi.ini index 671cc3e0..25862cf3 100644 --- a/app/wsgi.ini +++ b/app/wsgi.ini @@ -5,6 +5,7 @@ chdir = /srv/app/ module = wsgi touch-reload = /srv/app/wsgi.py chmod-socket = 664 +listen = 4096 uid = www-data gid = www-data @@ -32,7 +33,7 @@ harakiri = 300 ; forcefully kill workers after 60 seconds max-requests = 40000 ; Restart workers after this many requests max-worker-lifetime = 36000 ; Restart workers after this many seconds reload-on-rss = 4096 ; Restart workers after this much resident memory -worker-reload-mercy = 600 ; How long to wait before forcefully killing workers +worker-reload-mercy = 60 ; How long to wait before forcefully killing workers # We don't expect abuse so lets have fastest respawn possible forkbomb-delay = 0 @@ -41,7 +42,7 @@ forkbomb-delay = 0 thunder-lock = true cheaper-algo = busyness -processes = 512 ; Maximum number of workers allowed +processes = 256 ; Maximum number of workers allowed #threads = 2 cheaper = 30 ; Minimum number of workers allowed cheaper-initial = 30 ; Workers created at startup