allow configuration of uwsgi timeout

This is important when you have proxies in front of the service
that may have stricter timeouts, as you need at least as strict a
timeout at uwsgi to get meaningful traceback and see source of problem.
This commit is contained in:
Elijah DeLee
2025-02-19 14:38:54 -05:00
parent bb4f4c2eb4
commit 6a2b42cdde
5 changed files with 21 additions and 4 deletions

View File

@@ -497,6 +497,7 @@ uwsgi_processes: 5
# Also see https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/#enabling-unsafe-sysctls for how
# to allow setting this sysctl, which requires kubelet configuration to add to allowlist
uwsgi_listen_queue_size: 128
uwsgi_timeout: 30
# NGINX default values
nginx_worker_processes: 1

View File

@@ -304,8 +304,8 @@ data:
max-requests = 1000
buffer-size = 32768
harakiri = 120
harakiri-graceful-timeout = 115
harakiri = {{ uwsgi_timeout|int }}
harakiri-graceful-timeout = {{ [(uwsgi_timeout|int - 2), 1] | max }}
harakiri-graceful-signal = 6
py-call-osafterfork = true