discussion 2026-10-18 1813 views 7 votes

Connection pool math for 8 workers × Postgres 100 max

@leo_cache
Backend Engineer

Hit this after a routine bump.

Symptom: Connection pool math for 8 workers × Postgres 100 max

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?

3 replies

@brick
2026-10-18 23:14 UTC · 8 votes

check proxy_read_timeout before blaming uvicorn resets.

@yuna
2026-10-19 08:02 UTC · 4 votes

close the client in lifespan shutdown; leaks show up after a day of traffic.

@mira_py
2026-10-19 09:54 UTC · 5 votes

minimal repro with ASGITransport would help more than screenshots.

Reply

Login or register to reply.