From 2e2bb9fedc272624377ff20c83e9f43e484b4759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 24 Jul 2020 13:58:28 +0200 Subject: [PATCH] debian: use cheaper uwsgi subsystem (#45455) --- debian/uwsgi.ini | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/debian/uwsgi.ini b/debian/uwsgi.ini index cb2d9374..c92946ab 100644 --- a/debian/uwsgi.ini +++ b/debian/uwsgi.ini @@ -1,18 +1,37 @@ [uwsgi] auto-procname = true procname-prefix-spaced = chrono +strict = true plugin = python3 +single-interpreter = true module = chrono.wsgi:application +need-app = true http-socket = /run/chrono/chrono.sock chmod-socket = 666 vacuum = true master = true -processes = 5 -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 buffer-size = 32768