]> git.parisson.com Git - teleforma.git/commitdiff
increase uwsgi worker number, threads, harakiri, etc
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Tue, 7 Jul 2026 17:12:28 +0000 (19:12 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Fri, 10 Jul 2026 21:44:31 +0000 (23:44 +0200)
app/wsgi.ini

index 25862cf3340b01a453cf792866a56d309cd01f09..0fba22ebb59c263e1a5d544d04b467f7cd6029d4 100644 (file)
@@ -25,15 +25,15 @@ need-app = true
 disable-logging = false              ; Disable built-in logging
 log-4xx = true                       ; but log 4xx's anyway
 log-5xx = true                       ; and 5xx's
-logger = file:/var/log/app/app.log
+logger = file:/var/log/uwsgi/uwsgi.log
 
-harakiri = 300                       ; forcefully kill workers after 60 seconds
+harakiri = 1000                       ; forcefully kill workers after 60 seconds
 #py-callos-afterfork = true            ; allow workers to trap signals
 
 max-requests = 40000                 ; Restart workers after this many requests
 max-worker-lifetime = 36000          ; Restart workers after this many seconds
 reload-on-rss = 4096                 ; Restart workers after this much resident memory
-worker-reload-mercy = 60             ; How long to wait before forcefully killing workers
+worker-reload-mercy = 60O             ; How long to wait before forcefully killing workers
 
 # We don't expect abuse so lets have fastest respawn possible
 forkbomb-delay = 0