Skip to content

Percentiles and tail latency

Calculate percentile ranks, predict tail amplification in fan-out, and choose measurements and mitigations that preserve the user experience.

24 min8 steps

By the end you can
  • Locate a percentile using a stated nearest-rank convention
  • Calculate the probability that a join-all request encounters a slow branch
  • Choose valid percentile aggregation and a bounded tail-latency intervention

An average can hide the slow users

99 requests at 10 ms and one at 1,010 ms average 20 ms. One user waited over a second. p99 = the value at or below which about 99% of observations fall.

  • Mean20 ms
  • p99 (nearest rank)10 ms
  • Slowest request1,010 ms

Log scale: each gridline step is 10×.

A stable mean can hide a worse tail.

Mean latency stays at 20 ms while p99 rises from 80 ms to 900 ms. What should you conclude?

Answer this step to continue.

What this lesson simplifies

  • Fan-out arithmetic assumes independent branches with identical slow-call probability.
  • Nearest rank is one percentile convention; monitoring tools can interpolate or approximate differently.
  • The sandbox link is a manual experiment, not a preconfigured fan-out template.

Sources

  1. Jeffrey Dean, Luiz André Barroso. The Tail at Scale, 2013.
  2. Rob Ewaschuk. Monitoring Distributed Systems, Site Reliability Engineering, 2016.

Reviewed by K1 content review on . Revision 1.