Notes on a number that gets written into contracts by people who have not done the division.

“The service shall be available 99.9 percent of the time.” Fine. How much downtime is that? Do the arithmetic once and you will never nod at that sentence again.

Converting nines to minutes

A year has 8,760 hours. Downtime allowed is the remaining fraction of that.

TargetDowntime per yearDowntime per 30-day month
99%87.6 hours7.2 hours
99.5%43.8 hours3.6 hours
99.9%8.76 hours43.2 minutes
99.95%4.38 hours21.6 minutes
99.99%52.6 minutes4.3 minutes

Look at the last row. Four minutes a month is less than the time many teams take to notice an outage, open the incident channel and find the right person. At that level the target cannot be met by testing and good intentions. It needs automatic failover, no manual deploy steps, and a design where one component’s failure does not stop the service. My opinion: if nobody can say how the system recovers without a human, the nines on the slide are a wish.

Two words people mix up

Be clear on what is being measured. Availability is the share of time the service does its job. It is not the same as reliability, which is about how long it runs between failures. A service that fails for 30 seconds every day is highly unreliable in the failure-count sense, yet its availability is still about 99.97 percent.

The two are linked through two measures. MTBF is mean time between failures. MTTR is mean time to repair or restore. A simple, widely used relationship says availability is roughly MTBF divided by the sum of MTBF and MTTR. Take illustrative figures: a failure about every 720 hours (30 days) and 2 hours to restore. Availability is 720 divided by 722, which is 99.72 percent.

Now the useful insight. To raise availability you can fail less often, or recover faster. Halving MTTR from 2 hours to 1 gives 720 over 721, 99.86 percent. Doubling MTBF to 1,440 hours with MTTR still at 2 gives 1,440 over 1,442, 99.86 percent: the same. Which is cheaper? Usually faster recovery. Fewer failures means preventing every cause, including ones you cannot imagine. Faster recovery means practised rollbacks, good alerts and runbooks. This formula is a simplification that assumes failures are independent and repair times are steady; real incidents are lumpier.

Dependencies multiply against you

Suppose an order flow needs three things working at once: the application at 99.9 percent, the database service at 99.5 percent and a payment gateway at 99.8 percent. If all three must be up for an order to succeed, and failures are independent, the combined availability is the product: 0.999 times 0.995 times 0.998, which is about 0.992. That is 99.2 percent, roughly 70 hours of downtime a year, though your application alone looks excellent on its dashboard.

This is why a team cannot promise customers more than its weakest critical dependency allows, unless it designs around it: retries, queues that accept the order and process it later, a fallback gateway, a cached read path. Each of these is something a tester can exercise.

What testers can actually do about it

  • Test recovery, not only function. Kill the database connection mid-request. Restart a node during peak load. Measure how long until the service is serving correctly again. That duration is your MTTR in practice, and it is often longer than anyone guessed.
  • Test the failure behaviour of dependencies. When the payment gateway times out, does the application wait forever, hang the thread pool and take down unrelated pages? Slow dependencies cause more outages than dead ones.
  • Practise the rollback. A rollback never tried is a hypothesis. Include database migrations: can the previous version of the application run against the new schema?
  • Check detection. Break something on purpose in a test environment and see whether an alert fires, to whom, and how soon. Many outages are long because they were silent.

Reading an availability number honestly

Ask four questions before accepting any figure. What counts as “up”: a page loading, or a customer completing a purchase? A service can answer health checks while checkout is broken. Over what period is it measured: a year hides a bad week, a month does not. Are planned maintenance windows excluded, and if so, how many are allowed? And measured from where: inside the data centre, or from a user’s phone in Guwahati on a weak connection?

A better service-level objective is often tied to a user action: “99.9 percent of checkout attempts succeed in a month”. That ties the number to what customers feel, and gives the team an error budget. At 99.9 percent, a service with 1,00,000 checkout attempts a month can afford 100 failures. Spend that budget on risky releases consciously, and stop shipping when it runs out.

Do the division, ask the four questions, and test the recovery path. That covers most of what an availability target demands from the testing side.

Figures and names in the examples are illustrative.

Leave a Reply

Trending