chrono/debian/uwsgi.ini

60 lines
1.6 KiB
INI

[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
spooler-processes = 3
spooler-python-import = chrono.utils.spooler
# every five minutes
cron = -5 -1 -1 -1 -1 /usr/bin/chrono-manage tenant_command cancel_events --all-tenants -v0
cron = -5 -1 -1 -1 -1 /usr/bin/chrono-manage tenant_command send_email_notifications --all-tenants -v0
# hourly
cron = 1 -1 -1 -1 -1 /usr/bin/chrono-manage tenant_command clearsessions --all-tenants
cron = 1 -1 -1 -1 -1 /usr/bin/chrono-manage tenant_command send_booking_reminders --all-tenants
cron = 1 -1 -1 -1 -1 /usr/bin/chrono-manage tenant_command sync_desks_timeperiod_exceptions --all-tenants
# daily
cron = 2 4 -1 -1 -1 /usr/bin/chrono-manage tenant_command anonymize_bookings --all-tenant
# every 01/01 at 1:1
cron = 1 1 1 1 -1 /usr/bin/chrono-manage tenant_command sync_desks_timeperiod_exceptions_from_settings --all-tenants -v0
master = true
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
py-tracebacker = /run/chrono/py-tracebacker.sock.
stats = /run/chrono/stats.sock
ignore-sigpipe = true
if-file = /etc/chrono/uwsgi-local.ini
include = /etc/chrono/uwsgi-local.ini
endif =