@nyx_api
2026-10-09 15:47 UTC · 8 votes
check proxy_read_timeout before blaming uvicorn resets.
Hit this after a routine bump.
Symptom: Partial unique indexes for soft-delete
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?
check proxy_read_timeout before blaming uvicorn resets.
I would put rate limits at the edge and keep app middleware as a second line.
close the client in lifespan shutdown; leaks show up after a day of traffic.
dropping pool_size per worker fixed it for us on the same box size.