chrono/debian/uwsgi.ini

69 lines
2.0 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
spooler-python-import = hobo.provisionning.spooler
spooler-max-tasks = 20
# every five minutes
unique-cron = -5 -1 -1 -1 -1 /usr/bin/chrono-manage tenant_command cancel_events --all-tenants -v0
unique-cron = -5 -1 -1 -1 -1 /usr/bin/chrono-manage tenant_command send_email_notifications --all-tenants -v0
unique-cron = -5 -1 -1 -1 -1 /usr/bin/chrono-manage tenant_command update_event_recurrences --all-tenants -v0
# hourly
unique-cron = 1 -1 -1 -1 -1 /usr/bin/chrono-manage tenant_command clearsessions --all-tenants
unique-cron = 1 -1 -1 -1 -1 /usr/bin/chrono-manage tenant_command send_booking_reminders --all-tenants
unique-cron = 1 -1 -1 -1 -1 /usr/bin/chrono-manage tenant_command sync_desks_timeperiod_exceptions --all-tenants
# daily
unique-cron = 2 4 -1 -1 -1 /usr/bin/chrono-manage tenant_command anonymize_bookings --all-tenant
# monthly
unique-cron = 1 1 1 -1 -1 /usr/bin/chrono-manage tenant_command update_shared_custody_holiday_rules --all-tenant
# every 01/01 at 1:1
unique-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 = 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/chrono/py-tracebacker.sock.
stats = /run/chrono/stats.sock
memory-report = true
ignore-sigpipe = true
if-file = /etc/chrono/uwsgi-local.ini
include = /etc/chrono/uwsgi-local.ini
endif =