Diagnostic step 1
Disable aggressive TLS renegotiation on the load balancer; prefer long-lived TLS sessions with session tickets or TLS1.3 PSK resumption.
Generated Oct 12, 2026, 10:57:59 PM
Disable aggressive TLS renegotiation on the load balancer; prefer long-lived TLS sessions with session tickets or TLS1.3 PSK resumption.
Enable and verify TLS session resumption (session tickets) on both PostgreSQL server OpenSSL configuration and the load balancer. Test that a resumed session avoids a full handshake.
If load balancer cannot support session resumption, consider TLS offload to a dedicated proxy with proper resumption support or use a TCP passthrough and terminate TLS on the database hosts with lower churn.
Monitor walsender CPU and replication lag while gradually increasing allowed session lifetime; collect OpenSSL timers and replication metrics to validate improvement.
If workload cannot avoid renegotiation, provision additional CPU capacity for primary or distribute replication across multiple standby hosts; escalate to infra/network team for load balancer config change.