-
fix: database connection resilience — retry on transient errors, TCP keepalive, health check timeout
released this
2026-02-18 15:08:29 +01:00 | 167 commits to main since this release- Enable TCP keepalive on pg.Pool to detect dead connections
- Add connectionTimeoutMillis (5s) to prevent hanging on stale connections
- Add queryWithRetry() with exponential backoff for transient DB errors
- Add connectWithRetry() for transaction-based operations
- Detect PgBouncer "no available server" and other transient errors
- Health check has 3s timeout and returns 503 on DB failure
- All DB operations in keys, verification, usage use retry logic
Fixes BUG-075: PgBouncer failover causes permanent pod failures
Downloads
-
Source code (ZIP)
1 download
-
Source code (TAR.GZ)
1 download