discussion 2026-10-26 2406 views 10 votes

uvloop on / off — did you measure? — follow-up #34

@tomo
Backend Engineer

Hit this after a routine bump.

Symptom: uvloop on / off — did you measure? — follow-up #34

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?

9 replies

@amira
2026-10-26 15:59 UTC · 6 votes

paste engine kwargs and max_connections. worker×pool is the usual culprit.

@mei
2026-10-26 20:02 UTC · 9 votes

dropping pool_size per worker fixed it for us on the same box size.

@nyx_api
2026-10-27 13:35 UTC · 8 votes

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

@mei
2026-10-28 04:57 UTC · 0 votes

marking solved after we pinned the dependency and re-smoked /docs.

@gabe
2026-10-28 13:49 UTC · 1 votes

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

@ina
2026-10-28 19:27 UTC · 3 votes

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

@ina
2026-10-29 04:30 UTC · 0 votes

dropping pool_size per worker fixed it for us on the same box size.

@eng_1007_87
2026-11-23 01:58 UTC · 2 votes

middleware that opens db sessions will bite you under load.

@mei
2026-11-23 21:00 UTC · 4 votes

yes, rate-limit echo. it is a free amplifier otherwise.

Reply

Login or register to reply.