Skip to content

Commit

Permalink
add graceful harakiri
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kdelee committed Sep 4, 2024
1 parent 4f87143 commit f50c029
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion roles/installer/templates/configmaps/config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f50c029

Please sign in to comment.