ContentsThe library

Running a Service That Stays Up

The Average Is the Enemy

Last timeThe Budget You Are Allowed to Spend

A mean response time can look excellent while a large minority of users are having a terrible experience, and a page that makes many calls meets the slow tail on almost every load.

There is a statistic that makes almost every service look healthy, and most

dashboards lead with it.

FIG 1A hundred fast requests and one slow one
stepmean, in millisecondsninety-ninth percentileusers who waited over a secondwhat happened
150500All hundred requests take fifty milliseconds. Everything agrees.
29950001One request now takes five seconds. The mean has barely moved, the percentile has told the truth, and one user in a hundred is gone.
2 steps
The mean is not broken. It is answering the question of what happens on average, which is not a question any individual user asked. Nobody experiences the average; each person experiences one point in the distribution.

What an average does to a tail

That is the whole argument against the mean as a health metric. It is

insensitive to exactly the events that matter, because the events that matter

are rare and the mean divides by the count.

Reading a percentile

The ninety-ninth percentile is the response time such that ninety-nine percent

of requests were faster. It names a position in the ordering rather than

averaging anything, which makes it robust: one absurd outlier cannot move it,

but a genuine worsening of the slow end does.

The lesson stops here

4 more paragraphs to go

You have read the opening. The rest of the argument, the problems that check whether it landed, and the lines worth keeping at the end all come with a plan.

The first lesson of every course in the library reads the whole way through, free, so you can see exactly what the rest of them are.

See the planThe contents

This is the reading half

Starting the course gives you your own copy of it. Every idea on every page has problems standing under it, marked with a reason rather than a tick, and any sentence you do not believe can be opened and argued with. None of that can happen on a page nobody owns.

The contents

The rest of this course

  1. 01Available to Whom, Exactly
  2. 02The Gap Between Your Target and Perfection Is a Resourceopening only
  3. 03The Average Is the Enemyyou are here
  4. 04A Chain of Reliable Parts Is Not Reliableopening only
  5. 05Nothing Degrades Gracefullyopening only
  6. 06The Service Was Fine Until Somebody Changed Itopening only
  7. 07The Helpful Client That Finishes the Jobopening only
  8. 08A Pager That Everyone Trustsopening only

Read alongside