@mei
2026-11-11 21:09 UTC · 6 votes
orjson helped CPU a few percent; DB still the ceiling.
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?
orjson helped CPU a few percent; DB still the ceiling.
measure with keep-alive on; cold connects inflate p99.
check proxy_read_timeout before blaming uvicorn resets.