]> git.parisson.com Git - teleforma.git/commitdiff
fix uwsgi config
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Tue, 29 Jun 2021 00:24:37 +0000 (02:24 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Tue, 29 Jun 2021 00:24:37 +0000 (02:24 +0200)
app/wsgi.ini
bin

index 5026c5a230960bf77d7b3895602cbdd04e1fc536..d1b93b2b9414c2bd231e06a8ae9d951bc93e01cc 100644 (file)
@@ -1,5 +1,10 @@
 [uwsgi]
 
+socket = 0.0.0.0:8000
+chdir = /srv/app/
+module = wsgi
+touch-reload = /srv/app/wsgi.py
+
 uid = www-data
 gid = www-data
 
@@ -10,13 +15,14 @@ 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
 log-5xx = true                       ; and 5xx's
 
 harakiri = 60                        ; forcefully kill workers after 60 seconds
-py-callos-afterfork = true           ; allow workers to trap signals
+#py-callos-afterfork = true           ; allow workers to trap signals
 
 max-requests = 1000                  ; Restart workers after this many requests
 max-worker-lifetime = 3600           ; Restart workers after this many seconds
@@ -26,7 +32,7 @@ worker-reload-mercy = 60             ; How long to wait before forcefully killin
 cheaper-algo = busyness
 processes = 128                      ; Maximum number of workers allowed
 cheaper = 8                          ; Minimum number of workers allowed
-cheaper-initial = 16                 ; Workers created at startup
+cheaper-initial = 32                 ; Workers created at startup
 cheaper-overload = 1                 ; Length of a cycle in seconds
 cheaper-step = 16                    ; How many workers to spawn at a time
 
@@ -36,4 +42,4 @@ cheaper-busyness-max = 70            ; Above this threshold, spawn new workers
 cheaper-busyness-backlog-alert = 16  ; Spawn emergency workers if more than this many requests are waiting in the queue
 cheaper-busyness-backlog-step = 2    ; How many emergency workers to create if there are too many requests in the queue
 
-touch-reload = /srv/app/wsgi.py
+
diff --git a/bin b/bin
index c5d2023de2f038cb865a148076a4dc4ec24efaf7..52d01bc8d0ec34d96ae3751fa5709a8ae05066fd 160000 (submodule)
--- a/bin
+++ b/bin
@@ -1 +1 @@
-Subproject commit c5d2023de2f038cb865a148076a4dc4ec24efaf7
+Subproject commit 52d01bc8d0ec34d96ae3751fa5709a8ae05066fd