Sub topic 3
Turning nines into a downtime budget
This chapter assumes you know what availability is and how the nines notation reads (99.9% is "three nines"). You should be comfortable with percentages and short Python snippets. Here you convert a target into minutes you can plan around.
The core formula
Availability is the fraction of a period in which the service works. The part that is left over is the allowed unavailability. Multiply that by the length of the period and you get the downtime budget: the total time the service may be down while still meeting the target.
downtime budget = (1 - availability) × period lengthEach added nine shrinks the unavailable fraction by a factor of ten. The budget shrinks by the same factor.
Computing it in Python
def downtime_budget_minutes(availability, period_days=30):
return (1 - availability) * period_days * 24 * 60
for target in (0.99, 0.999, 0.9999, 0.99999):
print(f"{target:.3%}: {downtime_budget_minutes(target):.2f} min per 30 days")
# 99.000%: 432.00 min per 30 days
# 99.900%: 43.20 min per 30 days
# 99.990%: 4.32 min per 30 days
# 99.999%: 0.43 min per 30 daysA 30-day month has 43,200 minutes. At 99.9%, the unavailable fraction is 0.001, so the budget is 43.2 minutes. At 99.999%, the budget is about 26 seconds.
Budgets across common periods
The period you choose changes the number you quote. Teams often state the target per month or per year. The table uses a 365-day year, a 30-day month, and a 24-hour day.
| Availability | Per day | Per 30-day month | Per year |
|---|---|---|---|
| 99% | 14.4 min | 7.2 hours | 3.65 days |
| 99.9% | 86.4 s | 43.2 min | 8.76 hours |
| 99.99% | 8.64 s | 4.32 min | 52.6 min |
| 99.999% | 0.86 s | 25.9 s | 5.26 min |
How budgets fit real incidents
The budget is a total, not a per-incident allowance. Several short outages add up. A service with a 43.2-minute monthly budget that has two 15-minute incidents has 13.2 minutes left.
The budget also tells you which responses are possible. A human who is paged, logs in, and diagnoses a fault rarely finishes in under five minutes. At 99.99%, a single incident of that kind uses the whole 4.32-minute month. That target generally needs automated detection and failover, because human response is too slow.
Common errors
- Mixing periods. Comparing a monthly budget to a yearly one makes a target look easier or harder than it is. Convert both to the same period first.
- Using 365 and 30 inconsistently. A "month" of 30 days and a year of 365 days do not divide evenly into each other. Pick one convention and document it.
- Rounding too early. At five nines the budget is under half a minute, so a rounded number hides real differences. Keep seconds in your calculations.
- Treating the budget as a goal. It is a ceiling. Spending none of it is fine.
- Ignoring what counts as down. The budget only means something once you decide what is measured. The next chapters cover that: time-based and request-based measurement, and which outages count.
Working backward
You can also start from a tolerable outage and find the target it implies. If a team can accept at most 20 minutes of downtime in a 30-day month, the required availability is:
def required_availability(budget_minutes, period_days=30):
return 1 - budget_minutes / (period_days * 24 * 60)
print(f"{required_availability(20):.4%}") # 99.9537%A budget of 20 minutes lies between three and four nines. You would round to the nearest target you can commit to, here 99.9%, which gives a bit more room than you need.
Exercise
A service has a 99.95% availability target over a 30-day month. How many minutes of downtime does that allow? If it has already had one 12-minute outage, how many minutes remain?
Show answer
The unavailable fraction is 1 - 0.9995 = 0.0005. A 30-day month has 43,200 minutes, so the budget is 0.0005 × 43,200 = 21.6 minutes. After a 12-minute outage, 21.6 - 12 = 9.6 minutes remain.