mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-08 06:12:54 +00:00
set api timeout to match proxy timeout (#2056)
feat: set api timeout to match proxy timeout Timeout before the openshift route times out not timing out before undercuts usefulness of our log-traceback-middleware in django-ansible-base that logs a traceback from requests that get timed out -- because uwsgi or gunicorn has to send the timeout signal to the worker handling the request. Also leads to issues where requests that envoy has already timed out are filling up queues of the workers of the components. Also, configure nginx to return a 503 if WSGI server doesn't respond. Co-authored-by: Elijah DeLee <kdelee@redhat.com>
This commit is contained in:
@@ -489,8 +489,12 @@ ipv6_disabled: false
|
||||
# - hostname
|
||||
host_aliases: ''
|
||||
|
||||
# receptor default values
|
||||
receptor_log_level: info
|
||||
|
||||
# common default values
|
||||
client_request_timeout: 30
|
||||
|
||||
# UWSGI default values
|
||||
uwsgi_processes: 5
|
||||
# NOTE: to increase this value, net.core.somaxconn must also be increased
|
||||
@@ -498,6 +502,9 @@ 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: "{{ (([(client_request_timeout | int), 10] | max) / 3) | int }}"
|
||||
uwsgi_timeout_grace_period: 2
|
||||
|
||||
|
||||
# NGINX default values
|
||||
nginx_worker_processes: 1
|
||||
@@ -505,6 +512,7 @@ nginx_worker_connections: "{{ uwsgi_listen_queue_size }}"
|
||||
nginx_worker_cpu_affinity: 'auto'
|
||||
nginx_listen_queue_size: "{{ uwsgi_listen_queue_size }}"
|
||||
nginx_client_max_body_size: 5
|
||||
nginx_read_timeout: "{{ (([(client_request_timeout | int), 10] | max) / 2) | int }}" # used in nginx config
|
||||
|
||||
extra_settings_files: {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user