DjangoPostgreSQLGunicorn

Connection pool exhaustion during traffic spikes

critical
Connection ManagementUpdated Feb 6, 2026(via Exa)
How to detect:

Database connection pool becomes exhausted during traffic spikes, preventing new database operations. Monitor via pool.size(), pool.checkedout(), and pool.idle() metrics where available.

Recommended action:

Monitor connection pool metrics (size, active, idle) using ConnectionPoolMonitor. Increase pool size in database configuration if consistently depleted. Review connection lifecycle to ensure connections are properly released. Set appropriate CONN_MAX_AGE in Django settings.