]> git.parisson.com Git - teleforma.git/commitdiff
reduce processes
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Thu, 16 Nov 2023 03:48:12 +0000 (04:48 +0100)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Thu, 16 Nov 2023 03:48:12 +0000 (04:48 +0100)
app/wsgi.ini

index 374f1694b7ad82f25fd625acee509b61f82ceba4..3f524c679add79c75c474235a8905774521406be 100644 (file)
@@ -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 =                          ; 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 = 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)