orjson helped CPU a few percent; DB still the ceiling.
How large is too large for a request body?
@oz
QA Automation
Hit this after a routine bump.
Symptom: How large is too large for a request body?
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-29 22:48 UTC · 4 votes
@amira
2026-10-30 06:25 UTC · 0 votes
dropping pool_size per worker fixed it for us on the same box size.
@kai_sre
2026-10-30 17:40 UTC · 6 votes
marking solved after we pinned the dependency and re-smoked /docs.
@gabe
2026-10-31 12:56 UTC · 6 votes
orjson helped CPU a few percent; DB still the ceiling.
@amira
2026-10-31 20:33 UTC · 9 votes
I would put rate limits at the edge and keep app middleware as a second line.
@oz
2026-11-01 08:58 UTC · 0 votes
measure with keep-alive on; cold connects inflate p99.
@cole
2026-11-01 15:17 UTC · 7 votes
minimal repro with ASGITransport would help more than screenshots.
@cole
2026-11-02 05:04 UTC · 10 votes
I would put rate limits at the edge and keep app middleware as a second line.
@eng_1002_17
2026-11-23 02:59 UTC · 3 votes
if upstream resets, look at proxy_read_timeout next.