SDSystem DesignConcepts to case studies
System DesignDSA
x
0/311
Part 1: Foundations
Part 2: APIs and Communication
Part 3: Caching
Part 4: Data and Storage
Part 5: Architecture
Part 6: Distributed Systems
Part 7: Advanced Data Topics
Part 8: Operations and Security
  • Three Pillars of Observability
  • Logging Best Practices
  • Log Aggregation
  • Metrics and Instrumentation
  • Distributed Tracing
  • Alerts and Monitoring
  • Dashboards and Runbooks
  • SLOs and Error Budgets
  • Incident Management and Postmortems
  • Profiling
  • Audit Logs
Part 9: Estimation and Interview Method
Part 10: Case Studies
System Design/Operations and Security/Observability

SLOs and Error Budgets

Turn reliability into a budget you can spend, and use burn-rate alerts to know when you are overspending.

⏱ 13 min readIntermediateMust KnowInterview FavouriteHas visualizer
SummaryConceptReal-Life ExampleWhy?Where?How It WorksStepsKey TermsPros & ConsMistakesReal WorldRead NextInterview Q&ACheat-Sheet

01Quick Summary

You already know that an SLO is a reliability target and the error budget is what is left over: 100% minus the target. This page is about using the budget: choosing good SLIs, counting requests, measuring how fast you are spending it (burn rate), and deciding what to do when it runs low.

  • Budget: the number of bad requests (or bad minutes) the SLO allows in the window.
  • Burn rate: how fast you spend it. 1× means you will use it up exactly at the end of the window.
  • Policy: an agreed rule for what the team does at each budget level, such as freezing releases when it is spent.

02Concept: What is it?

The basics (SLI, SLO and SLA) are in SLA, SLO and SLI. Here we go one level deeper. An SLO is only useful if it changes decisions, and it does that through the error budget.

Budget in requests, not just minutes

Most modern SLOs count requests, not time. With a 99.9% success SLO over 30 days and 10 million requests, the budget is 0.1% of 10 million, which is 10,000 bad requests. A busy hour with an outage spends more budget than a quiet night with the same length outage, because more requests fail.

Burn rate

Burn rate = (current error rate) ÷ (error rate the SLO allows). If the SLO allows 0.1% errors and right now 1.44% of requests fail, you are burning at 14.4×: you would spend the whole 30-day budget in about two days. Alerting on burn rate tells you how urgent a problem is, not just that it exists.

Burn rate in one picture
1× (on budget)
🟢Lasts the full 30 days
6× (slow burn)
🟠Gone in about 5 days
14.4× (fast burn)
🔴Gone in about 2 days
Same budget, three speeds of spending.
🧠100% is the wrong goal
Every extra nine costs far more and slows every change. Users also cannot tell 99.99% from 99.999%, because their own phone and network fail more often. A budget says: some failure is the price of moving fast.

03Real-Life Example

🍵The Monthly Allowance
You get a fixed allowance for the month. Spending a little every day is normal. A big purchase early on (an outage) means you must be careful for the rest of the month. If the account is nearly empty with ten days to go, you stop buying treats (new features) until the next payday. And if you are spending ten times faster than usual, you do not wait until the end of the month to notice: you act today.
Allowance
Error budget
Monthly allowance
The budget in a 30-day window
Daily small spending
Everyday errors and deploy hiccups
One big purchase
An incident
How fast I am spending
Burn rate
A text when spending is too fast
A burn-rate alert
No treats when the account is low
Freeze risky releases
Payday
The window rolls forward and budget returns

04Why Do We Need It?

⚖️A fair rule
Product wants speed and operations want safety. The budget gives both sides one number to agree on.
🚦Clear decisions
Plenty of budget means ship. Little left means slow down. None left means fix reliability.
🔔Better alerts
Burn-rate alerts page for fast damage and only ticket for slow leaks, so there is less noise.
🎯User-focused
SLIs describe what users feel, so you work on what matters, not on CPU graphs.
🧮Honest targets
Doing the budget maths shows when a target is unrealistic for the system you built.
🤝Shared language
Teams and customers can say “99.9% over 28 days” and mean the same thing.
An error budget turns reliability from an argument into a number that everyone can plan with.

05Where Do We Use It?

🛠️SRE teams
Write an SLO and an error budget policy for each service, and review them each quarter.
🚀Release gating
Pipelines slow or stop risky deploys when the budget is low.
📟On-call alerting
Multi-window burn-rate alerts replace many threshold alerts.
🧑‍🤝‍🧑Platform teams
Give internal customers SLOs for databases, queues and gateways.
🧭Planning
Repeated budget overruns justify reliability work in the roadmap.
🧪Design interviews
State an SLO, work out the budget, and explain how you would spend it.

06Types / Parts / How It Works

Choosing good SLIs

KindA good SLIWatch out for
AvailabilityGood requests ÷ valid requests (for example non-5xx)Count failures users see, not only server errors
LatencyShare of requests faster than 300 ms (and another for 1 s)Averages hide the slow tail. Use percentiles or thresholds
FreshnessShare of data newer than 1 minuteFor pipelines and caches, where “up” is not enough
CorrectnessShare of answers that are rightHard to measure, often needs a checker
Per user journeyCheckout success from cart to receiptOne service can look fine while the journey fails

Windows

WindowHow it worksGood for
Rolling 28 or 30 daysThe last 28 or 30 days, always movingSmooth, no end-of-month cliff. Common for operations
Calendar month or quarterResets on a dateMatches contracts and reports, but budget “snaps back”

Multi-window, multi-burn-rate alerts

A single rule such as "error rate above 1%" is either too jumpy or too slow. A popular pattern (described in the Google SRE workbook) pairs a long window, to be sure it matters, with a short window, to be sure it is still happening. These are example numbers for a 30-day budget:

SeverityBurn rateLong windowBudget usedAction
Fast burn14.4×1 hour2%Page someone now
Slow burn6×6 hours5%Page someone
Leak1×3 days10%Open a ticket

Dependencies multiply

Three 99.9% services in a row
🌐Front end99.9%
→↓
⚙️Service99.9%
→↓
🗄️Database99.9%
→↓together
🧮About 99.7%the user sees this
0.999 × 0.999 × 0.999 ≈ 0.997, so about 99.7%.
Each part Combined
VisualizerSpend a 30-day error budgetMove the SLO target and the incident length. Watch the budget bar drop, the burn-rate alerts fire, and the policy change from “Ship freely” to “Freeze releases”. Then raise deploys per week and see the steady spend grow.
Error budget left at the end of each day of a 30-day window
⚡
day 1day 15day 30
Budget (30 days)
43 min
at 99.9% SLO
Spent
47 min
incident 30 min + steady 17 min
Budget left
-9%
end of the window
Incident burn rate
1000×
1× = exactly on budget
🔔 Fast burn → page
14.4× over 1 hour
fires after about 1.0 min
🔔 Slow burn → page
6× over 6 hours
fires
🔕 Leak → ticket
1× over 3 days
quiet
Policy: Freeze releases. Budget is spent. Stop feature releases, and put the team on reliability work until the window recovers.

Illustrative model: everyday errors are 0.005% of the window, and each deploy costs half a minute of budget on average. The 14.4×, 6× and 1× burn rates are the example thresholds from the Google SRE workbook (2%, 5% and 10% of a 30-day budget).

07How to Use It / Steps / Implementation

Putting error budgets to work

  1. 1
    Choose a user journey
    Pick something users care about, such as search, checkout or login.
  2. 2
    Define the SLI
    Good events ÷ valid events. Decide exactly what counts as good, and what is excluded.
  3. 3
    Pick the target and window
    Start from what users need and what you do today. A rolling 28 or 30 days is a common choice.
  4. 4
    Work out the budget
    Budget = (1 − SLO) × expected requests. Turn it into minutes of full outage for talking to people.
  5. 5
    Alert on burn rate
    Use a fast and a slow rule, each with a long and short window, so you page only for what matters.
  6. 6
    Write the policy
    Agree in advance: above half left, ship freely. Below 10%, only safe changes. At zero, freeze features and fix reliability.
  7. 7
    Review every month
    Where did the budget go? Fix the top causes, and adjust the SLO if it is too tight or too loose.
💡A worked example
SLO 99.9% over 30 days = 43.2 minutes of full outage, or 0.1% of requests. A 30 minute outage that fails 50% of requests spends 15 minutes of budget, about 35%.
⚠️Agree the policy before you need it
A policy written during a crisis is an argument. A policy signed by product and engineering beforehand is a rule.

08Key Terms to Know

TermMeaning in easy words
SLIA measured number about service quality, such as the share of good requests
SLOA target for an SLI over a window, such as 99.9% over 30 days
Error budgetThe amount of failure the SLO allows: 100% minus the target
Burn rateHow fast the budget is being spent. 1× uses it up exactly at the end of the window
WindowThe period an SLO is measured over, such as a rolling 28 days
Valid eventsThe requests that count in the SLI, after excluding things like bot traffic or bad input
Error budget policyAn agreed set of actions for each level of remaining budget
Multi-window alertAn alert that needs both a long and a short window to be over the limit
Release freezePausing feature releases until reliability is back inside the target
ToilRepetitive manual work that grows with the service and could be automated
Composite SLOThe reliability of a whole chain, which is below any single part

09Pros, Cons and Trade-offs

✅ Pros
  • Turns reliability into a shared number
  • Balances speed and safety with a rule
  • Reduces noisy alerts
  • Focuses on what users feel
  • Makes reliability work easy to justify
⚠️ Cons
  • Needs good measurement of real requests
  • Hard to choose SLIs that match user pain
  • Can be gamed if teams only chase the number
  • Low-traffic services give noisy budgets
  • Needs management to honour the policy

Trade-offs

ChoiceWe gainWe lose
Tighter SLO (more nines)Happier users, fewer big incidentsMuch higher cost, slower change
Looser SLOFaster releases, lower costMore visible failures
Short window (7 days)Quick feedbackNoisy, one bad hour dominates
Long window (90 days)Stable and calmSlow to react, long memory of old incidents
Request-based SLIFair across busy and quiet timesNeeds request counts and good logging

10Common Problems and Mistakes

Common mistakes

  1. An SLO of 100%. It leaves no budget, so every change is a risk and every error is a failure.
  2. Measuring the wrong thing. A healthy server graph while checkout fails for users.
  3. Averages for latency. The mean looks fine while 1 in 100 users waits ten seconds.
  4. A policy no one follows. If the freeze is skipped when budget runs out, the SLO is decoration.
  5. Alerting on every blip. Single-threshold alerts page for harmless spikes and cause alert fatigue.
  6. Ignoring dependencies. Your SLO cannot be better than the services you rely on, unless you add redundancy or fallbacks.
  7. Too many SLOs. A handful per service is plenty. Dozens are never looked at.

Things to watch

📉Low traffic
With few requests, one failure moves the rate a lot. Use longer windows or count events carefully.
🕳️Failures you cannot see
If requests never reach you, your server metrics will not count them. Also measure from outside.
🧾SLO vs SLA
Keep the SLO tighter than the SLA you promise, so you act before you owe credits.
🌦️Planned work
Decide in advance whether maintenance counts against the budget.

11Real-World Examples

🔍Google SRE
Popularised error budgets and the multi-window burn-rate alerts in its public SRE books.
📊Observability vendors
Datadog, Grafana, Nobl9 and others offer SLO objects with budgets and burn-rate alerts built in.
🧩Open source tools
Projects such as Sloth and Pyrra generate Prometheus rules for SLOs and burn-rate alerts.
☁️Cloud providers
Publish SLAs for their services and use stricter internal SLOs to stay well clear of them.
🛒E-commerce
Checkout and payment journeys get tighter SLOs than browsing, because failures cost money.
🏢Internal platforms
Database and messaging teams give product teams a clear SLO to plan around.
Mini case: the budget says slow down
⚡Day 12 outagespends 35% of budget
→↓budget at 40%
🐢Slow downsmaller, safer releases
→↓fix the cause
🟢Back to normalold spend rolls out of the window
An early-month incident changes how the team ships for the rest of the window.

12Related Topics to Read Next

SLA, SLO and SLI→

The basics this page builds on.

Alerts and Monitoring→

Where burn-rate alerts live, and how to avoid alert fatigue.

Incident Management and Postmortems→

What to do when the budget is being spent fast.

Metrics and Instrumentation→

Where good and valid request counts come from.

Dashboards and Runbooks→

Showing budget and burn rate to the team.

Availability→

The nines behind the targets.

Deployment Strategies Overview→

Safer releases spend less budget.

13Interview Questions with Short Answers

14Quick Revision Cheat-Sheet

  • ✔Budget: (1 − SLO) × valid requests, in a rolling 28 or 30 day window.
  • ✔99.9% over 30 days: about 43 minutes, or 0.1% of requests.
  • ✔Burn rate: current error rate ÷ allowed error rate. 1× = exactly on budget.
  • ✔Example alerts: 14.4× over 1 h and 6× over 6 h page, 1× over 3 days is a ticket.
  • ✔Policy: plenty left, ship. Low, slow down. Zero, freeze and fix.
  • ✔Serial dependencies: multiply their availability.
  • ✔Do not chase: 100%. Spend the budget on shipping.
  • ✔One line: “Reliability is a monthly allowance. Spend it on purpose.”
← Previous
Dashboards and Runbooks
Next →
Incident Management and Postmortems