discussion 2026-10-04 933 views 11 votes

Should healthcheck hit Redis or only process?

@seth
SRE

Hit this after a routine bump.

Symptom: Should healthcheck hit Redis or only process?

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?

4 replies

@oz
2026-10-05 06:50 UTC · 5 votes

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

@raul
2026-10-06 01:13 UTC · 0 votes

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

@leda
2026-10-06 18:42 UTC · 9 votes

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

@leda
2026-10-07 12:54 UTC · 7 votes

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

Reply

Login or register to reply.