[uwsgi]
-socket = 0.0.0.0:8000
+socket = /srv/app/wsgi.socket
chdir = /srv/app/
module = wsgi
touch-reload = /srv/app/wsgi.py
+chmod-socket = 664
uid = www-data
gid = www-data
worker-reload-mercy = 60 ; How long to wait before forcefully killing workers
cheaper-algo = busyness
-processes = 28 ; Maximum number of workers allowed
+processes = 28 ; Maximum number of workers allowed
cheaper = 8 ; Minimum number of workers allowed
cheaper-initial = 16 ; Workers created at startup
cheaper-overload = 1 ; Length of a cycle in seconds
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)
-cheaper-busyness-max = 90 ; Above this threshold, spawn new workers
+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
- ./var/static:/srv/static
- ./var/log/app:/var/log/app
- ./var/log/uwsgi:/var/log/uwsgi
+ - ./app/wsgi.socket:/srv/app/wsgi.socket
links:
- postgres
- redis