Availability

Counting the nines · Part of Networking and infrastructure

Key idea

Practice

7 questions · about 4 min

Explained step by step

Availability

Availability is what share of the time a system is working. It's computed as time up (uptime) divided by total time, which is time up plus time down (downtime). It's like class attendance: if you went 99 out of 100 days, your attendance is 99%. A system that was down 3.65 days in a 365-day year has 99% availability.

Availability is counted in nines. 99% is 2 nines, 99.9% is 3, 99.99% is 4, and so on. Each extra nine divides the downtime by 10: 2 nines allow 3.65 days down per year, 3 nines about 8.8 hours, 4 nines about 53 minutes and 5 nines about 5 minutes. It's like an exam: going from 99 to 99.9 looks small, but it means failing 10 times less.

If a service needs several pieces one after another (in sequence), total availability drops: they multiply. Two pieces at 99.9% in sequence give 99.9% × 99.9% = 99.8%, because if either fails, everything fails. It's like a chain: it breaks at the weakest link, and every link adds risk. That's why every piece you add to a request's path takes availability away from the system.

If several pieces do the same thing (in parallel) and one working is enough, availability goes up. It's computed as 1 − (1 − A) × (1 − B): everything fails only if both fail at once. Two pieces at 99.9% in parallel give 99.9999%. It's like having 2 flashlights for a blackout: it's very rare for both to fail at exactly the same time.

Downtime

Downtime is when the system isn't working. Each nine costs much more than the last: going from 99.9% to 99.99% means dropping from 8.8 hours to 53 minutes down per year, which takes more spare servers and more care. It's like going from being late once a month to once a year: trying a little harder isn't enough. That's why you choose how many nines you need based on the business.

Reliability

Available and reliable aren't the same. A reliable system works properly without failing; an available one is up when you need it. If it's reliable, it's also available. But it can be available without being reliable: for example, a server that crashes 10 times a day but comes back in 1 second each time is almost always up. It's like an old car that stalls often but restarts right away: it gets there, but it doesn't inspire trust.

Fault tolerance

High availability and fault tolerance aim for the same thing, lots of uptime, but in different ways. A highly available system can have minimal interruptions: if something fails, it recovers in seconds. A fault-tolerant one has no interruption at all, because all its hardware is duplicated and another system takes over instantly. It's like a plane with 2 engines: if one fails, it keeps flying without anyone noticing. It costs much more.

Terms in this lesson

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.

Key idea

Counting the nines