]> git.parisson.com Git - teleforma.git/commitdiff
update uwsgi params
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Thu, 15 Jul 2021 09:04:28 +0000 (11:04 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 15 Jul 2021 09:05:29 +0000 (11:05 +0200)
app/wsgi.ini

index 7d15899ab528faeb3d986fadb5f5b95c7afae60d..1f18bf1ddab0998d70b3b3d6b1107a2f465975b0 100644 (file)
@@ -11,7 +11,7 @@ gid = www-data
 
 strict = true
 master = true
-enable-threads = true
+enable-threads = false
 vacuum = true                        ; Delete sockets during shutdown
 single-interpreter = true
 die-on-term = true                   ; Shutdown when receiving SIGTERM (default is respawn)
@@ -21,20 +21,20 @@ disable-logging = true               ; Disable built-in logging
 log-4xx = true                       ; but log 4xx's anyway
 log-5xx = true                       ; and 5xx's
 
-harakiri = 60                        ; forcefully kill workers after 60 seconds
+harakiri = 300                       ; forcefully kill workers after 60 seconds
 #py-callos-afterfork = true           ; allow workers to trap signals
 
-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
+max-requests = 20000                 ; Restart workers after this many requests
+max-worker-lifetime = 18000          ; Restart workers after this many seconds
+reload-on-rss = 4096                 ; Restart workers after this much resident memory
+worker-reload-mercy = 300            ; How long to wait before forcefully killing workers
 
 cheaper-algo = busyness
-processes = 28                       ; Maximum number of workers allowed
-cheaper =                          ; Minimum number of workers allowed
-cheaper-initial = 16                 ; Workers created at startup
+processes = 64                       ; Maximum number of workers allowed
+cheaper = 24                         ; Minimum number of workers allowed
+cheaper-initial = 24                 ; Workers created at startup
 cheaper-overload = 1                 ; Length of a cycle in seconds
-cheaper-step = 4                     ; How many workers to spawn at a time
+cheaper-step = 8                     ; 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)