]> git.parisson.com Git - teleforma.git/commitdiff
wsgi: reduce workers
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 28 Jun 2022 09:03:20 +0000 (11:03 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 28 Jun 2022 09:03:20 +0000 (11:03 +0200)
app/wsgi.ini

index 1f18bf1ddab0998d70b3b3d6b1107a2f465975b0..efcc9014477b9549ad6c56913a5eb27efdf09b8e 100644 (file)
@@ -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 =                        ; Maximum number of workers allowed
+cheaper =                          ; Minimum number of workers allowed
+cheaper-initial =                  ; 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)