debian: use cheaper uwsgi subsystem (#45456)

This commit is contained in:
Frédéric Péters 2020-07-24 14:00:37 +02:00
parent e9506e6fd0
commit fd1c99f073
1 changed files with 19 additions and 2 deletions

View File

@ -1,18 +1,35 @@
[uwsgi]
auto-procname = true
procname-prefix-spaced = hobo
strict = true
plugin = python3
single-interpreter = true
module = hobo.wsgi:application
need-app = true
http-socket = /run/hobo/hobo.sock
chmod-socket = 666
vacuum = true
master = true
processes = 3
harakiri = 120
enable-threads = true
harakiri = 120
processes = 500
plugin = cheaper_busyness
cheaper-algo = busyness
cheaper = 5
cheaper-initial = 10
cheaper-overload = 5
cheaper-step = 10
cheaper-busyness-multiplier = 30
cheaper-busyness-min = 20
cheaper-busyness-max = 70
cheaper-busyness-backlog-alert = 16
cheaper-busyness-backlog-step = 2
max-requests = 500
max-worker-lifetime = 7200