Your p99 Is Lying: Coordinated Omission in Latency Benchmarks
Here is a result that should make you suspicious of every latency benchmark you have ever trusted. A load generator pushes ten thousand requests per second at a cache, records the latency of each, and reports a p99 of two milliseconds and a p99.9 of four. The numbers are stable across runs. The SLA asks for ten milliseconds at p99, so there is comfortable margin. The change ships. In production, at the very same throughput, the p99 is two hundred milliseconds and the pager goes off.
Nothing about the server changed between the benchmark and production. What changed is that the benchmark was allowed to look away at the exact moment the latency happened. The generator was closed-loop: it sent a request, waited for the response, and only then sent the next one. That one design choice — wait for the reply before issuing the next request — is enough to delete almost the entire tail from the measurement, and it does so in a way that gets worse the worse the stall is.
The name for this is coordinated omission, a term Gil Tene gave it, and the word coordinated is the whole insight: the system under test quietly coordinates with the measurement system, pausing the measurer at precisely the moments the measurer most needs to be taking samples. The requests that go missing are not a random sample of the workload. They are the slow ones, and they go missing because they would have been slow.