Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure tcp_keepalives settings for PostgreSQL
These TCP Keepalive settings help manage persistent connections in PostgreSQL, particularly in scenarios where a client might unexpectedly disconnect. They ensure timely detection and cleanup of "dead" connections to maintain system resources optimally. tcp_keepalives_idle: After 300 seconds of inactivity, PostgreSQL will start sending keepalive probes. tcp_keepalives_interval: If no acknowledgment of the keepalive probe is received, PostgreSQL will resend the probe every 30 seconds. tcp_keepalives_count: If no acknowledgment is received after 10 probes, PostgreSQL will consider the connection dead and will close it. These settings optimize resource usage and system responsiveness.
- Loading branch information