Intermittent `Connection timed out` to a backend that is up and healthy, only under load.
AdvancedTroubleshootingConnectivity: refused, timed out, no route
Answer
Likely causes → SYN queue or accept queue overflow on the server, conntrack table full on a hop, NAT port exhaustion, or tcp_tw_recycle-style timestamp issues (old kernels) behind NAT.
Diagnose →
# server
nstat -az | grep -E 'ListenOverflows|ListenDrops|TcpExtSyncookies'
ss -ltn 'sport = :8080' # Recv-Q near Send-Q = accept backlog full
dmesg -T | grep -E 'conntrack|SYN flooding'
Fix → Raise the app's listen backlog and net.core.somaxconn, add workers so accept() keeps up, raise nf_conntrack_max, or spread egress across more NAT IPs.
Prevent → Alert on ListenOverflows and conntrack usage; load-test with realistic connection churn.
More on Connectivity: refused, timed out, no route
`curl: (7) Failed to connect to 10.0.2.15 port 8080: Connection refused`Beginner`curl: (28) Failed to connect to api.internal port 443 after 130001 ms: Connection timed out`Beginner`ssh: connect to host 10.1.4.20 port 22: No route to host`BeginnerService works with `curl localhost:3000` on the box but times out from other hosts.Beginner`ping` works but `curl` to port 80 on the same host times out.Beginner`curl` to a public site works, but `ping 8.8.8.8` shows 100% packet loss.Beginner