-
Notifications
You must be signed in to change notification settings - Fork 115
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Upstream HTTP request error on gunicorn worker auto-restart #102
Comments
I have a solution proposal, could we make the keep-alive to be an optional argument. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We use gunicorn on fprocess command
ENV fprocess="gunicorn -c gconfig.py index:app"
The of-watchdog appear the
Upstream HTTP request error
while the gunicon worker restart by themax_requests
setting.I use
ab
to stress test on of-watchdog and gunicorn endpoint, and only happened on thePOST
method.The of-watchdog endpoint had some failed requests while the gunicorn worker restart.
But direct sending requests to gunicorn endpoint seems no problem.
Expected Behaviour
Current Behaviour
Possible Solution
Steps to Reproduce (for bugs)
code:
gunicorn config
Steps
you may see some failed requests due to the gunicorn worker auto-restart.
failed log
There are no failed requests on gunicorn endpoint.
max_requests = 10
setting from gconfig.py, run step 3 again.No restarts on gunicorn workers, requests are all success.
Context
of-watchdog have the retry or fix the connection close as well as other HTTP clients do.
Your Environment
Docker version
docker version
(e.g. Docker 17.0.05 ):19.03.8
Are you using Docker Swarm or Kubernetes (FaaS-netes)?
No
Operating System and version (e.g. Linux, Windows, MacOS):
MacOS
Link to your project or a code example to reproduce issue:
The text was updated successfully, but these errors were encountered: