add graceful harakiri

now there is way for uwsgi to send signal for graceful harakiri to try and handle it nice way before sending signal 9

pairs with https://github.com/ansible/awx/pull/15447/files
This commit is contained in:
Elijah DeLee
2024-08-16 12:06:34 -04:00
parent 4f87143719
commit f50c029408

View File

@@ -225,7 +225,7 @@ data:
location {{ ingress_path }} {
# Add trailing / if missing
rewrite ^(.*)$http_host(.*[^/])$ $1$http_host$2/ permanent;
uwsgi_read_timeout 120s;
uwsgi_read_timeout 125s;
uwsgi_pass uwsgi;
include /etc/nginx/uwsgi_params;
include /etc/nginx/conf.d/*.conf;
@@ -299,6 +299,11 @@ data:
master-fifo = /var/lib/awx/awxfifo
max-requests = 1000
buffer-size = 32768
harakiri = 120
harakiri-graceful-timeout = 115
harakiri-graceful-signal = 6
py-call-osafterfork = true
if-env = UWSGI_MOUNT_PATH
mount = %(_)=awx.wsgi:application