towerops/config
Graham McIntire 439c25ba9d Fix DB connection timeouts in k8s with aggressive TCP keepalive (#92)
SSL connections between pods and PostgreSQL are silently dying,
causing 15s checkout timeouts and cascading Oban failures.

- Set Linux TCP keepalive: 15s idle, 5s interval, 3 probes (30s detection)
- Add PostgreSQL statement_timeout (30s) to kill hung queries server-side
- Add disconnect_on_error_codes for fast recovery from PG shutdowns
- Bump default pool_size 20 → 30 to reduce contention under load

Reviewed-on: graham/towerops-web#92
2026-03-20 10:04:06 -05:00
..
config.exs fix SSL CA trust store for HTTPS in containers 2026-03-11 14:48:54 -05:00
dev.exs fix: remove Redis config from dev.exs to allow CI health checks to pass 2026-03-08 10:05:12 -05:00
prod.exs fix: suppress noisy health check logs in production 2026-03-05 13:13:19 -06:00
runtime.exs Fix DB connection timeouts in k8s with aggressive TCP keepalive (#92) 2026-03-20 10:04:06 -05:00
test.exs fix: add recurring job dispatch timer for agent-polled devices 2026-03-12 12:07:34 -05:00