passerelle/debian/uwsgi.ini

68 lines
1.9 KiB
INI

[uwsgi]
auto-procname = true
procname-prefix-spaced = passerelle
strict = true
plugin = python3
single-interpreter = true
module = passerelle.wsgi:application
need-app = true
http-socket = /run/passerelle/passerelle.sock
chmod-socket = 666
vacuum = true
spooler-processes = 3
spooler-python-import = hobo.provisionning.spooler
spooler-python-import = passerelle.utils.spooler
spooler-max-tasks = 20
# every five minutes
unique-cron = -5 -1 -1 -1 -1 /usr/bin/passerelle-manage tenant_command cron --all-tenants every5min
unique-cron = -5 -1 -1 -1 -1 /usr/bin/passerelle-manage tenant_command cron --all-tenants availability
unique-cron = -5 -1 -1 -1 -1 /usr/bin/passerelle-manage tenant_command cron --all-tenants jobs
# hourly
unique-cron = 1 -1 -1 -1 -1 /usr/bin/passerelle-manage tenant_command clearsessions --all-tenants
unique-cron = 17 -1 -1 -1 -1 /usr/bin/passerelle-manage tenant_command cron --all-tenants hourly
# daily
unique-cron = 25 1 -1 -1 -1 /usr/bin/passerelle-manage tenant_command cron --all-tenants daily
# weekly
unique-cron = 47 2 -1 -1 7 /usr/bin/passerelle-manage tenant_command cron --all-tenants weekly
# monthly
unique-cron = 52 3 1 -1 -1 /usr/bin/passerelle-manage tenant_command cron --all-tenants monthly
master = true
enable-threads = true
harakiri = 120
processes = 500
plugin = cheaper_busyness
cheaper-algo = busyness
cheaper = 5
cheaper-initial = 10
cheaper-overload = 20
cheaper-step = 2
cheaper-busyness-multiplier = 10
cheaper-busyness-min = 20
cheaper-busyness-max = 70
cheaper-busyness-backlog-alert = 16
cheaper-busyness-backlog-step = 2
listen = 1024
max-requests = 500
max-worker-lifetime = 7200
buffer-size = 32768
py-tracebacker = /run/passerelle/py-tracebacker.sock.
stats = /run/passerelle/stats.sock
memory-report = true
ignore-sigpipe = true
disable-write-exception = true
if-file = /etc/passerelle/uwsgi-local.ini
include = /etc/passerelle/uwsgi-local.ini
endif =