This incident type occurs when the number of connections to a Postgres server is approaching its limit and may cause a saturation of the connection pool. This can lead to slow queries, timeouts, and other performance issues. It is important to monitor and manage the number of connections to ensure the smooth functioning of the database.
Parameters
Debug
Check the current number of connections to the Postgres instance
Check the maximum number of connections allowed by the Postgres instance
Check the current value of the connection limit for each user
Check if there are any idle connections that can be closed
Check the size of the connection pool
Check the log files for any errors related to connections or connection pool
Repair
Define variables
Check if PG_CONFIG_FILE exists and is writable
Backup the PostgreSQL configuration file
Update the connection limit in the configuration file
Restart PostgreSQL server to apply changes
Next Step
Identify and terminate idle connections to free up resources for other connections.
Learn more
Related Runbooks
Check out these related runbooks to help you debug and resolve similar issues.