Skip to content

Conversation

@rebeccahhh
Copy link
Member

@rebeccahhh rebeccahhh commented Jul 1, 2025

SUMMARY

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.

ISSUE TYPE
  • New or Enhanced Feature
ADDITIONAL INFORMATION

This makes no changes to the CR, it just aligns existing timeouts for nginx and uwsgi to the known default timeout of 30 seconds, which is not currently configurable because we don't allow route annotations.

@rebeccahhh rebeccahhh self-assigned this Jul 1, 2025
@rebeccahhh
Copy link
Member Author

image
image
screenshots post change, everything functions still :)

Copy link
Member

@kdelee kdelee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one nit on whitespace diff

deny all;
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see i fyou can get rid of this whitespace diff

@rebeccahhh rebeccahhh changed the title feat: set api timeout to match proxy timeout set api timeout to match proxy timeout Jul 3, 2025
Copy link
Member

@rooftopcellist rooftopcellist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go after the whitespace is removed.

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 <[email protected]>
@rebeccahhh rebeccahhh force-pushed the timeout_api_before_proxy branch from f34477d to aaeb880 Compare July 3, 2025 19:55
@rebeccahhh
Copy link
Member Author

Whitespace removed ✅

@rebeccahhh rebeccahhh enabled auto-merge (squash) July 3, 2025 19:56
@rebeccahhh rebeccahhh merged commit e506466 into devel Jul 3, 2025
11 checks passed
@rebeccahhh rebeccahhh deleted the timeout_api_before_proxy branch July 3, 2025 20:19
aknochow pushed a commit to aknochow/awx-operator that referenced this pull request Jul 29, 2025
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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants