mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
The writer health probe only ran SELECT 1, which a read-only Postgres session answers fine, so a pooled connection left pointing at a demoted primary kept failing every write with SQLSTATE 25006 until the pod was restarted. Probe transaction_read_only instead, treat a 25006 on the request path as a signal to recreate the client, and back off exponentially while the database as a whole stays read-only so a replica or an in-progress failover does not get its engine killed every cycle. Co-authored-by: yassin <yassin@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| helpers | ||
| prisma_and_spend | ||
| proxy_logging | ||
| __init__.py | ||