-
Notifications
You must be signed in to change notification settings - Fork 35
Timeout before the openshift route times out #294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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]>
|
LGTM |
|
Pretty straight forward. Looks like there is a little legwork for me to test locally. Anyway you could provide some screenshots of the local deployment you have configmaps with these changes after applied? |
… since they seem to get used there, rectify naming mishap with eda_gunicorn_... vs just gunicorn_...
29a1b4c to
08b2204
Compare
|
| event_stream_nginx_port: 8000 | ||
| event_stream_server_name: "{{ ansible_operator_meta.name }}-event-stream" | ||
| event_stream_django_port: 8002 | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ttuffin I ended up moving this out of defaults over to vars, it seems like this is the more "correct" spot for these based on the other variables present in this file that get used in the gunicorn --bind statements. If the vars are here it works as I expect in terms of correctly setting the vars in the deployment/pod.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM









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.
Similar changes for the AWX operator: ansible/awx-operator#2056