solved 2026-11-11 1980 views 21 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?

3 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.

Reply

Login or register to reply.