Connection Storm Recovery

Recover from and prevent database connection exhaustion and reconnect herds: do the arithmetic first (instances times pool size against max_connections minus superuser_reserved_connections, and the useful ceiling of two to four active backends per core), stop the herd rather than restarting the database, terminate idle pool-role connections, then fix structurally with PgBouncer transaction mode (default_pool_size, reserve_pool_size, query_wait_timeout, session-state losses stated), a per-instance pool cap, jittered backoff and a per-role CONNECTION LIMIT; MySQL covers ProxySQL. Use for "FATAL: too many connections", "remaining connection slots are reserved", "the app falls over after every restart" or "PgBouncer cl_waiting is climbing". Not for sizing to an expected peak (capacity-planning), pool saturation from slow queries (sql-performance) or a lock chain (lock-queue-triage).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit b3d7eba19b

Frequently asked questions

npx get-skill add greenblacked/connection-storm-recovery