From: Guillaume Pellerin Date: Thu, 16 Nov 2023 03:48:12 +0000 (+0100) Subject: reduce processes X-Git-Tag: 2.8.1-ae~23 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9388ee3a3c5a96578e92b76c603d77dce240025c;p=teleforma.git reduce processes --- diff --git a/app/wsgi.ini b/app/wsgi.ini index 374f1694..3f524c67 100644 --- a/app/wsgi.ini +++ b/app/wsgi.ini @@ -42,12 +42,12 @@ forkbomb-delay = 0 thunder-lock = true cheaper-algo = busyness -processes = 128 ; Maximum number of workers allowed +processes = 16 ; Maximum number of workers allowed #threads = 2 -cheaper = 24 ; Minimum number of workers allowed -cheaper-initial = 24 ; Workers created at startup +cheaper = 4 ; Minimum number of workers allowed +cheaper-initial = 4 ; Workers created at startup cheaper-overload = 1 ; Length of a cycle in seconds -cheaper-step = 8 ; How many workers to spawn at a time +cheaper-step = 2 ; How many workers to spawn at a time cheaper-busyness-multiplier = 30 ; How many cycles to wait before killing workers cheaper-busyness-min = 20 ; Below this threshold, kill workers (if stable for multiplier cycles)