Halden

Chasing tail latency with a small sample

2 Aug 2026 · 3 min

A two-instance deployment serving a few hundred requests a minute cannot tell you anything reliable about p99. Over five minutes you collect maybe two thousand samples; the 99th percentile is the 20th slowest request. Two unlucky GC pauses and your dashboard says the system is on fire.

What actually works at that volume:

Look at the slowest twenty requests individually, with their traces. Not the aggregate — the individual ones. In small systems the tail is rarely a distribution, it is a handful of recurring causes: a connection that went through a cold TLS handshake, a disk that had to spin up, a lock held across an allocation.

Plot maximum, not p99. Maximum is honest about what a user can experience, and it does not pretend to statistical power you do not have.

And write the sample size on the chart. Half of the arguments I have had about latency disappeared once the number of samples was visible in the corner of the panel.