Dashboard
Courses
Problems
Badges
Theme
Sign inStart free
Courses/Operating at Scale
Lesson 3 of 16

SLIs, SLOs and error budgets

Turn 'it should be reliable' into a number, a target and a budget that decides when to ship and when to slow down.

16 min read

SLIs measure what users feel

A service level indicator is a ratio of good events to total events, measured as close to the user as possible. Good examples: the proportion of checkout requests that succeed in under 400 ms, measured at the load balancer; the proportion of uploaded images that are processed within 60 seconds. Bad examples: CPU usage, which users never feel, or server-side success rate that ignores requests dropped by a broken CDN. Keep the number of SLIs small, two or three per user journey, so they stay meaningful.

SLOs set the target

A service level objective is a target for an SLI over a window, such as 99.9% of checkout requests good over 28 days. Rolling windows of 28 or 30 days are common because they smooth out single bad days while still reacting within weeks. Set the target from what users actually need and what the system achieves today, not from aspiration: an SLO you always miss is ignored, and one you always beat by a wide margin wastes engineering effort. The choice of nines has concrete consequences.

  • 99% over 30 days allows about 7.2 hours of full outage
  • 99.9% allows about 43 minutes
  • 99.99% allows about 4.3 minutes, which is shorter than most humans take to notice and respond
  • Each extra nine typically needs redundancy across another failure domain and costs several times more

The error budget

The error budget is one minus the SLO: at 99.9%, you may fail 0.1% of requests. With 50 million requests a month, that is 50 000 bad requests. The budget turns reliability into a shared currency between product and platform teams. While budget remains, teams ship features at full speed and take reasonable risks. When a bad deploy burns 80% of the month's budget in an afternoon, the agreed policy kicks in: freeze risky launches, spend engineering time on reliability work, and resume when the budget recovers. The policy must be written down and agreed before it is needed, or it will be argued away during the first crisis.

SLAs and dependencies

An SLA is a contract with penalties, and it should always be looser than your internal SLO so you have warning before you owe money. Remember that availability multiplies along a synchronous chain: a request that depends on five services at 99.9% each can only be about 99.5% available. Leading architecture at scale means publishing SLOs for platform services so their consumers can design around them, with caches, fallbacks or asynchronous paths where the maths does not work. A dependency that is not on the critical path, such as recommendations on a checkout page, should be optional so its failures do not count against the journey.

Key takeaways

  • An SLI is good events over total events, measured near the user
  • Every additional nine cuts allowed downtime by ten times and raises cost sharply
  • An error budget with an agreed policy turns reliability arguments into a simple rule
  • Serial dependencies multiply: five 99.9% services give about 99.5%

Sign in to track lessons and earn badges.

Golden signals, RED and USEAlerting that only pages for real problems

Coming up

Course: 0/16 lessons · 0/10 challenges0%

Build it on the canvas, pass the review (70+) and mark it complete to count it toward the course badge.

  1. 1/10Design an Uptime MonitorDetect endpoint failures from several regions and alert only on confirmed outages, not on a single failed probe.Easy
  2. 2/10Design a Metrics Monitoring SystemCollect time series from 100k hosts while controlling cardinality, and serve dashboards and alert rules from them.
Medium
All 10 challenges →