Diagnostic step 1
Implement connection pooling in the Node app for outbound services (keep-alive agents for HTTP, pooled DB connections) to avoid frequent connects.
Generated Oct 24, 2026, 9:21:01 AM
Implement connection pooling in the Node app for outbound services (keep-alive agents for HTTP, pooled DB connections) to avoid frequent connects.
Increase ephemeral port range: sysctl -w net.ipv4.ip_local_port_range='15000 61000' and persist in /etc/sysctl.conf.
If safe for your environment, enable tcp_tw_reuse: sysctl -w net.ipv4.tcp_tw_reuse=1 (test carefully; not recommended with NAT requiring strict semantics).
Monitor TIME_WAIT via ss -tan | grep TIME-WAIT | wc -l and track available ports via ss to validate changes.
Deploy changes to one node canary, verify behavior under synthetic burst, and then roll out cluster-wide. Keep a rollback plan to revert sysctls and pool configuration.