How much of the time your system is up and working. Measured in nines.
Availability is the share of time a system is up and ready to work when users need it.
Availability = the time the system is working ÷ the total time. If a website was down for 1 hour in a 100-hour period, its availability was 99%.
| Availability | Nickname | Down per year | Down per month (30 days) |
|---|---|---|---|
| 90% | one nine | 36.5 days | 3 days |
| 99% | two nines | 3.65 days | 7.2 hours |
| 99.9% | three nines | 8.76 hours | 43.2 minutes |
| 99.99% | four nines | 52.6 minutes | 4.32 minutes |
| 99.999% | five nines | 5.26 minutes | 25.9 seconds |
When a system is down, users cannot use it. For some products, even a few minutes hurts.
Every system needs some availability. How many nines you need depends on what a failure costs.
Run more than one of everything important. If one fails, another is ready.
A health check asks “are you OK?” every few seconds. When a server stops answering, traffic moves to a healthy one. Nobody has to wake up.
| Setup | How to calculate | Example with two parts at 99% |
|---|---|---|
| In a chain (need both) | A × B | 0.99 × 0.99 = 98.01% (worse) |
| With a backup (need one) | 1 − (1 − A) × (1 − B) | 1 − 0.01 × 0.01 = 99.99% (better) |
| Term | Meaning in easy words |
|---|---|
| Uptime | The time the system is working |
| Downtime | The time the system is not working |
| The nines | A way to say availability, like 99.9% = three nines |
| SLA | Service Level Agreement: a promise to customers, often with a refund if broken |
| SLO | Service Level Objective: the internal target, like 99.95% |
| SLI | Service Level Indicator: the real measured number |
| Redundancy | Keeping extra copies of parts, so one failure is not the end |
| Failover | Switching to a backup when the main part fails |
| Health check | A regular test to see if a server is working |
| MTBF | Mean time between failures: how long a part works before it fails |
| MTTR | Mean time to repair: how fast you fix it. Lower is better |
| Choice | We gain | We lose |
|---|---|---|
| Active-passive | Simple failover | Idle hardware cost |
| Active-active | Better use of hardware | Harder data sync |
| Multi-region | Survives a regional outage | Higher cost, more delay between regions |
| Automatic failover | Fast recovery | A false alarm can cause a needless switch |
| Availability over consistency (CAP) | System keeps answering | Data may be slightly old |
These are general ideas about how well-known products stay available. Details inside each company are more complex.