What does it mean when a service reports a p99 latency of 300 ms?
Sketch your own answer first, then compare it with the one below.
A strong answer
It means 99 percent of requests finished in 300 ms or less, and one percent took longer. Sort every latency in the window from smallest to largest and the p99 is the value 99 percent of the way along.
It does not say how slow the slowest one percent were. Those requests could be 301 ms or thirty seconds. That is why teams often look at a higher percentile as well, such as p99.9, or at the maximum.
The window matters too. A p99 over one minute and a p99 over a day are different measurements, and a p99 over very few requests is decided by a handful of them.
Sources
- Betsy Beyer, Chris Jones, Jennifer Petoff, Niall Richard Murphy (2016). Site Reliability Engineering, chapter: Monitoring Distributed Systems.