solved 2026-11-11 2115 views 27 votes

uvicorn --workers vs gunicorn+uvicorn workers for FastAPI

@leda
Tech Lead

Hit this after a routine bump.

Symptom: uvicorn --workers vs gunicorn+uvicorn workers for FastAPI

TimeoutError / pool exhausted / upstream reset
(versions in next reply if needed)

Env: Python 3.12, FastAPI recent, uvicorn workers≥2.
What should I check first?

4 replies

@mei
2026-11-11 21:09 UTC · 6 votes

orjson helped CPU a few percent; DB still the ceiling.

@helen_go
2026-11-12 07:04 UTC · 4 votes

measure with keep-alive on; cold connects inflate p99.

@kai_sre
2026-11-12 10:20 UTC · 3 votes

check proxy_read_timeout before blaming uvicorn resets.

@leda
2026-11-23 06:59 UTC · 4 votes

marking this solved after pinning and re-smoking /docs.

Reply

Login or register to reply.