Connection management for Aiven for PostgreSQL®
Manage connection limits, idle connections, and TLS versions for your Aiven for PostgreSQL® service.
How these settings interact
Keep-alive timeouts and
idle_in_transaction_session_timeout guard against different problems, and one
doesn't substitute for the other. Keep-alives detect a client that has disconnected
at the network level. A client that's still connected, but has left a transaction
open, passes every keep-alive probe while it continues holding locks and memory, the
scenario covered in Troubleshoot out-of-shared-memory
errors.
Before you troubleshoot a connection issue
- Determine whether you're near your plan's
max_connectionslimit before investigating further. - Confirm clients use
scram-sha-256password encryption and a supported TLS version. - If the service becomes unresponsive with
out of shared memoryerrors, look for stuckidle in transactionsessions before adjusting connection limits.
Related pages