Skip to content
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

[1] [CRITICAL] WORKER TIMEOUT (pid:45) #46

Closed
dtMndas opened this issue May 27, 2020 · 3 comments
Closed

[1] [CRITICAL] WORKER TIMEOUT (pid:45) #46

dtMndas opened this issue May 27, 2020 · 3 comments
Labels

Comments

@dtMndas
Copy link

dtMndas commented May 27, 2020

i post many requests to the server, the gunicorn worker will raise the error "[CRITICAL] WORKER TIMEOUT (pid:45)". and it can not deal with the last request before restart。so the last request which this error worker get before restart will has not any response. please help me how to solve this error @tiangolo ,Thanks

my gunicorn config is :
bind = "0.0.0.0:7075"
worker=13
worker_connections = 1000
keepalive = 20
daemon = False
timeout = 120
preload_app = True
max_requests_jitter = 1024
worker_class = "uvicorn.workers.UvicornWorker"
max_requests = 2048
graceful_timeout = 120
errorlog = "/logs/gunicorn_error.log"

@tiangolo
Copy link
Owner

tiangolo commented Jun 6, 2020

You can probably increase the GRACEFUL_TIMEOUT https://github.com/tiangolo/uvicorn-gunicorn-fastapi-docker#graceful_timeout

@github-actions
Copy link

Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues.

@kevr
Copy link

kevr commented Feb 19, 2022

This solution does not seem plausible for stability. This seems like an issue with how gunicorn +/ uvicorn are dealing with request processing, and something is allowing more requests in than it can handle correctly in their loop[s].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants