How do you debug high p99 latency that disappears on retry?
AdvancedProductionPerformance, Cost & Scale
Answer
Capture the fingerprint: p99 clustering at 1 s, 3 s or 5 s points to SYN retransmit or DNS timeouts; 200 ms clusters to TCP RTO or delayed ACK and Nagle interaction; periodic spikes to GC or conntrack. Correlate with nstat retransmission counters, packet captures on both ends, and DNS query timings.
tcpdump -nn -i any 'tcp[tcpflags] & tcp-syn != 0 and host 10.0.2.9' -w syn.pcap
Duplicate SYNs to the same destination in the capture confirm connect-level loss.
More on Performance, Cost & Scale
How do you reduce cross-AZ data transfer costs?IntermediateWhat are the main drivers of AWS network cost and how do you control each?IntermediateHow do you find what is driving a surprise NAT gateway bill?AdvancedHow do you tune Linux network settings for a high-traffic server?IntermediateHow do you reach 100k+ concurrent connections on one proxy?AdvancedHow do you choose instance types for network-heavy workloads on AWS?Intermediate