Availability
Availability is the proportion of eligible time or requests for which a service meets its defined success condition. It is often expressed as nines: 99.9%, 99.99%, or 99.999%. Each extra nine reduces the permitted failure fraction tenfold.
The definition determines what the percentage means. Time-based and request-based measures can report different availability for the same service during the same period.
Two ways to count
| Time-based | Request-based | |
|---|---|---|
| What it measures | The share of eligible time meeting the availability rule | Successful eligible requests divided by all eligible requests |
| 99.99% means | Up to 52.56 minutes of full downtime over a 365-day year under that time-based definition | Up to 250 failures among 2.5 million eligible requests in a day under a daily objective |
| Weighting and scope | Equal intervals receive equal weight. A good interval can require a working function or a success-ratio threshold, including for a particular user group or region | Each eligible request receives equal weight, so busy periods contribute more. Grouping can reveal failures concentrated among particular callers |
A short outage during peak traffic therefore has more weight in a request-based measure than in an equal-interval measure of the same period. Embracing Risk describes using request success rate for distributed services that could remain partly available in some locations during failures elsewhere. A liveness check alone would conceal that distinction.
The Site Reliability Workbook recommends good events divided by eligible events as a useful SLI form. With a nonzero denominator, 100% means all included events met the selected rule. It does not establish that every user or service property was healthy. Define how to handle no eligible events, and distinguish genuine lack of demand from missing observations. A failed telemetry collector should not turn an unknown interval into success.
The aggregation window can be rolling or aligned with a calendar period. The risk chapter illustrates a one-day rolling request ratio and describes quarterly targets reviewed weekly or daily. The workbook also discusses calendar windows. A daily view can help investigate an incident without replacing the longer window used to judge the objective.
Decide what the number represents
The following questions make the measurement reproducible. They are a practical reading of the choices illustrated in the SRE book and workbook.
- What counts as a failure? One workbook example counts HTTP 5XX responses. That rule alone misses a 200 response containing an error page or incorrect data. Define eligible requests and whether success also requires particular content, latency, or freshness.
- Where is it measured? Server logs miss requests that fail before reaching the server. Client instrumentation can cover more of the user’s path, but it also needs adequate coverage and reliable collection.
- Over what window? The same incident occupies a different share of an hour and a quarter. State the window, population, exclusions, and handling of missing data before comparing percentages.
Embracing Risk uses unplanned downtime as a tractable representation of service risk. That does not make the percentage a complete account of harm: failed requests can differ in business value, and a percentage alone does not describe lost trust or the consequences of losing a write.
What a nine costs, and what it buys
The cost of an extra nine depends on how it is achieved. The risk chapter warns that one increment may cost 100 times as much as the preceding increment. This is a possibility illustrating nonlinear cost, not a pricing rule. Extra replicas and operating effort can be expensive; eliminating a repeated fault can improve availability and lower cost at the same time.
The SRE introduction and workbook also explain that devices, networks, and other dependencies can dominate the user’s experience. That can reduce the marginal benefit of another service improvement without making it zero. In a hypothetical independent serial path, a 99% reliable client combined with a 99.99% service yields 98.9901%; changing the service to 99.999% yields 98.99901%. This illustrates a remaining difference, not a prediction for real users whose failures may be correlated.
The risk chapter’s ISP background error rates of 0.01–1% are historical measurements. They are neither a current benchmark nor an empirical ceiling on service improvement. Evaluate the affected users, request volume, and consequences when judging whether a small percentage gain is worth its cost.
Redundancy, health checks, and failover cannot remove every failure possibility. A permanent 100% objective leaves no allowance for that residual risk. An observed window with no failures is nevertheless possible and does not require deliberately introducing an outage.
Read success against its definition
An availability measure based only on process liveness or HTTP status does not establish response correctness, speed, completeness, or freshness. A success rule can include those properties, but only within the checks and observations actually made. Separate quality indicators can cover omitted outcomes and help distinguish causes when a combined success rate falls.
A pipeline running on stale inputs may pass an execution-success indicator while failing a freshness objective. A search response may return promptly yet fail a quality requirement. The relevant question is which measured condition detects the user’s problem, not whether the user calls it downtime.
The serial-path calculation above only illustrates why client failures do not erase every service improvement. Designing availability across dependent components, correlated failures, or redundant paths needs a separate system model; this entry focuses on defining and interpreting one service’s measure.
Product and business owners assess acceptable user impact while engineers assess measurement, feasibility, and cost. A ratio objective then yields an error budget. SLIs, SLOs, and Error Budgets: Choosing Reliability Targets explains how to choose that objective. The SLI and SLO entries distinguish measurement from target; partial failure explains why some parts can work while others fail.
References
- Marc Alvidrez, Embracing Risk — Site Reliability Engineering
- Benjamin Treynor Sloss, Introduction — Site Reliability Engineering
- Google, Implementing SLOs — The Site Reliability Workbook
- Chris Jones, John Wilkes, Niall Murphy, and Cody Smith, Service Level Objectives — Site Reliability Engineering
Discover more from Insightful Data Lab
Subscribe to get the latest posts sent to your email.
