Try
↑ ↓ move↵ openesc close
In this lesson · topic 6 of 7
  1. 1. Why "is it up?" is the wrong question
  2. 2. Burn rate and multi-window alerts
  3. 3. Thirty days of outage, leak and noise
  4. 4. When the page is late, noisy or stuck open
  5. 5. Your SLO cannot beat your dependencies
  6. 6. When one failed request is a page
  7. 7. Burn rate 10, two windows, three-minute bursts

Topic 6

When one failed request is a page

7 min read

The lab assumes 1,000 requests a minute. Cut that to a handful and the same alert rules behave very differently. The cause is arithmetic, and you can predict it.

How many failures does a page need

Take the fast pair from the table in the burn-rate topic: a burn rate of 14.4 over one hour, confirmed over five minutes, on a 99.9 percent objective. Firing requires an error ratio of 14.4 times 0.1 percent, which is 1.44 percent, in the one-hour window. The number of failures that takes depends only on how many requests the window holds:

failures needed = 1.44% × requests in the hour

Traffic Requests in an hour Failures to page
100 a minute 6,000 87
10 a minute 600 9
1 a minute 60 1

At 1 request a minute, a single failure is 1 in 60, or 1.67 percent. That is a burn rate of 16.7, above 14.4. The five-minute window holds about five requests, so one failure there is 20 percent. Both windows agree, and one failed request pages a human.

Predict first

A service gets 1 request a minute under a 99.9 percent SLO over 30 days. How much of the month's error budget does one failed request spend?

The alert is right and the target is the problem

Notice that the page is not malfunctioning. One failure really does spend 2.3 percent of the budget, and the fast pair is meant to fire at about 2 percent. At this traffic a 99.9 percent objective allows only 43 failures a month, so every failure is a material event.

The question to ask the owners is whether that is what they mean. A background job that retries is perfectly happy with a handful of failures a day. A target built for a high-volume user-facing API, copied onto a low-volume service, produces pages nobody wanted.

What the Workbook suggests

The SRE Workbook lists options for low-traffic services, and the arithmetic shows why each works.

Generate synthetic traffic. Add a probe that sends a request every second. The hourly window then holds about 3,660 requests, and one real failure is 0.027 percent, a burn rate of 0.27. A page now needs about 53 failures, and the probe also keeps the ratio meaningful through quiet hours. The probe must exercise the paths users do, or it measures something else.

Combine services. Group several small services that share a user-facing purpose into one SLO. Ten services at 1 request a minute become one at 10 a minute, where a page needs 9 failures.

Change the product. If clients retry on failure, one failed attempt is often invisible to the user. Count the final outcome, not each attempt, and the failure count drops.

Lengthen the windows or lower the target. A six-hour window at 1 a minute holds 360 requests. A target of 99 percent turns the budget from 43 into 432 failures a month. Both trade detection speed or strictness for steadier alerts.

Sources

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms