Runbook

Postgres Connection Limit Reached

Back to Runbooks

Overview

This incident type occurs when the maximum number of connections allowed to a Postgres database has been reached. This prevents new connections from being established and can result in errors or downtime. It is important to monitor connection usage and adjust the maximum connection limit as needed to prevent this issue from occurring.

Parameters

Debug

Check current Postgres connections

Check Postgres configuration file for connection settings

Check logs for any connection errors

Check Postgres connection limit

Check for any idle connections and terminate them

Repair

Increase the maximum number of connections allowed by the Postgres database. This can be done in the postgresql.conf file by modifying the max_connections parameter.

Learn more

Related Runbooks

Check out these related runbooks to help you debug and resolve similar issues.