Let’s Get Certified
Module 15 / 15 · Scaling with Google Cloud operations

Measure reliability with an error budget

A team targets 99.9% successful requests over 100,000 eligible requests. During the window 75 requests fail. Is there room for a risky change?

Measure reliability with an error budget

The share of requests served within 300 ms is a service level indicator. The speaker distinguishes its objective, contractual agreement and error budget.

Work through the decision

A team targets 99.9% successful requests over 100,000 eligible requests. During the window 75 requests fail. Is there room for a risky change?

Check your reasoning

The objective permits 100 failures and 25 remain. Review burn rate, change risk and time left in the window before deploying. A daily average can hide a sharp recent increase, so compare short and long windows.

Cert Espresso · 2:55:11

Interpret the evidence

Service level indicator
A measured property of service, such as the fraction of eligible requests meeting a latency threshold.
Service level objective
A target for an indicator over a defined population and time window.
Service level agreement
A customer agreement specifies a service commitment and any contractual consequences.
Error budget
The amount of unreliability permitted by the objective for the defined window.

Practice the guide skills

  1. Match logs, metrics, request spans, sampled CPU use and grouped application errors to Logging, Monitoring, Trace, Profiler and Error Reporting. Watch 2:51:58
  2. Separate day-to-day operational excellence, availability during a component failure and recovery after a disruption. Give each a measurable criterion. Watch 2:52:46
  3. Design redundant serving capacity and an independent restore procedure. Exercise both live failover and recovery of a previously deleted record. Watch 2:53:09
  4. Inspect latency, traffic, errors and saturation in the same interval. Identify which signal measures user impact and which helps explain its cause. Watch 2:54:11
  5. Define an eligible request, good event, SLI, SLO and error budget. Distinguish the engineering target from a customer agreement with contractual remedies. Watch 2:55:10

Official objectives for this lesson

Check what a success average hides

Two service windows each last an hour but have very different traffic.

Window A   9,000 requests    9 failures
Window B   1,000 requests   10 failures

Pool counts to calculate one request-based indicator. Nineteen failures in 10,000 requests yields 99.81% success. Investigate the poorer local experience even if the contract’s aggregate remains within target.

Lab · calculate a request-weighted error budget

Run this Python 3 fixture locally. A network of field-service depots pools its checkout requests into one 99.9% success objective for the reporting window. Predict whether the aggregate meets the objective before inspecting the low-volume depot.

from fractions import Fraction

depots = {"central": (95000, 57), "coastal": (5000, 18)}
total = sum(volume for volume, errors in depots.values())
failed = sum(errors for volume, errors in depots.values())
objective = Fraction(999, 1000)
allowed = int(total * (1 - objective))
for name, (volume, errors) in depots.items():
    print(name, f"{100 * (volume - errors) / volume:.3f}%")
print("overall:", f"{100 * (total - failed) / total:.3f}%")
print("permitted failures:", allowed)
print("remaining failures:", allowed - failed)
Check the result
central 99.940%
coastal 99.640%
overall: 99.925%
permitted failures: 100
remaining failures: 25

Keep the request counts fixed and change coastal failures from 18 to 44. Overall success falls to 99.899%, exceeding the failure allowance by one. Explain why averaging the two depot percentages equally gives the wrong SLI for this request-weighted objective.

Related lesson · Trace an incident from symptom to telemetry

Knowledge check

Measure reliability with an error budget quiz

Answer 3 questions. Check each answer for an explanation.

Worked example · Measure reliability with an error budget