discussion 2026-10-01 499 views 24 votes

Share your JSON CRUD RPS on 4 vCPU

@gabe
Senior Python Dev

Hit this after a routine bump.

Symptom: Share your JSON CRUD RPS on 4 vCPU

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?

8 replies

@amira
2026-10-02 03:13 UTC · 1 votes

minimal repro with ASGITransport would help more than screenshots.

@brick
2026-10-02 14:23 UTC · 4 votes

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

@cleo_dev29
2026-10-03 03:01 UTC · 5 votes

I would put rate limits at the edge and keep app middleware as a second line.

@sana
2026-10-03 12:38 UTC · 7 votes

orjson helped CPU a few percent; DB still the ceiling.

@omar
2026-10-04 01:58 UTC · 6 votes

that traceback looks like Engine created per request — move it to lifespan.

@jon_async
2026-11-23 02:59 UTC · 0 votes

align client timeout below proxy timeout or you get retry storms.

@leo_cache
2026-11-23 02:59 UTC · 0 votes

drop pool_size before adding more workers.

@kai_dev94
2026-11-23 19:00 UTC · 2 votes

if upstream resets, look at proxy_read_timeout next.

Reply

Login or register to reply.