From f70e24e57c6b8a4976ded9031706f4164490ea89 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 28 Jun 2022 11:03:20 +0200 Subject: [PATCH] wsgi: reduce workers --- app/wsgi.ini | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/wsgi.ini b/app/wsgi.ini index 1f18bf1d..efcc9014 100644 --- a/app/wsgi.ini +++ b/app/wsgi.ini @@ -30,11 +30,11 @@ reload-on-rss = 4096 ; Restart workers after this much resident worker-reload-mercy = 300 ; How long to wait before forcefully killing workers cheaper-algo = busyness -processes = 64 ; Maximum number of workers allowed -cheaper = 24 ; Minimum number of workers allowed -cheaper-initial = 24 ; Workers created at startup +processes = 4 ; Maximum number of workers allowed +cheaper = 1 ; Minimum number of workers allowed +cheaper-initial = 1 ; 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 = 1 ; 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) -- 2.39.5