From 367776cbc3a7cee0a02a05a2511a4eaf1b0b3cc9 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 30 Jun 2021 00:13:29 +0200 Subject: [PATCH] update values --- app/wsgi.ini | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/wsgi.ini b/app/wsgi.ini index b839cc19..32a8854c 100644 --- a/app/wsgi.ini +++ b/app/wsgi.ini @@ -15,7 +15,6 @@ vacuum = true ; Delete sockets during shutdown single-interpreter = true die-on-term = true ; Shutdown when receiving SIGTERM (default is respawn) need-app = true -http-timeout = 60 disable-logging = true ; Disable built-in logging log-4xx = true ; but log 4xx's anyway @@ -24,17 +23,17 @@ log-5xx = true ; and 5xx's harakiri = 60 ; forcefully kill workers after 60 seconds #py-callos-afterfork = true ; allow workers to trap signals -max-requests = 1000 ; Restart workers after this many requests +max-requests = 10000 ; Restart workers after this many requests max-worker-lifetime = 3600 ; Restart workers after this many seconds reload-on-rss = 2048 ; Restart workers after this much resident memory worker-reload-mercy = 60 ; How long to wait before forcefully killing workers cheaper-algo = busyness -processes = 256 ; Maximum number of workers allowed +processes = 28 ; Maximum number of workers allowed cheaper = 8 ; Minimum number of workers allowed cheaper-initial = 16 ; Workers created at startup cheaper-overload = 1 ; Length of a cycle in seconds -cheaper-step = 16 ; How many workers to spawn at a time +cheaper-step = 4 ; 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