High Availability
What is High Availability?
High Availability (HA) describes a property of IT systems to remain available and operational for the longest possible time. The goal is to minimise planned and unplanned downtime. High Availability is achieved through redundancy, failover mechanisms, and fault-tolerant architectures.
Measurement: availability as a percentage
Availability is expressed as a percentage and indicates what proportion of planned operating time a system is actually available.
| Availability | Downtime per year | Downtime per month |
|---|---|---|
| 99.0% | ~88 hours | ~7.3 hours |
| 99.5% | ~44 hours | ~3.6 hours |
| 99.9% ("three nines") | ~8.7 hours | ~43.8 min |
| 99.95% | ~4.4 hours | ~21.9 min |
| 99.99% ("four nines") | ~52.6 min | ~4.4 min |
| 99.999% ("five nines") | ~5.3 min | ~26.3 sec |
Causes of downtime
Planned downtime
Maintenance work, software updates, and hardware replacements require planned maintenance windows. Modern HA architectures minimise these through rolling updates and live migrations.
Unplanned downtime
Hardware failures, software errors, power outages, network problems, or cyberattacks can lead to unplanned outages. The goal of HA is to detect such failures immediately and automatically switch over to redundant systems.
Architecture patterns for High Availability
Active-Passive clustering
A primary system (active) runs the workload. A standby system (passive) takes over immediately in the event of a failure. The switchover may take a few seconds to minutes.
Active-Active clustering
Multiple systems simultaneously process workloads. If one node fails, the others absorb the load. This achieves both higher availability and better resource utilisation.
Load balancing
Traffic is distributed across multiple servers. If one server fails, the load balancer redirects requests to the remaining servers. Stateless applications are particularly well-suited to this pattern.
Geographic redundancy
Systems are distributed across multiple data centres in different locations. Even if an entire data centre fails, operation continues from the other locations.
RTO and RPO in the context of HA
High Availability closely relates to Disaster Recovery:
- RTO (Recovery Time Objective): How long can the system be down? HA minimises RTO to seconds or minutes.
- RPO (Recovery Point Objective): How much data can be lost? HA, combined with synchronous replication, minimises RPO to near zero.
High Availability in cloud environments
Cloud platforms offer native HA features: Availability Zones (isolated data centre segments), auto-scaling groups, managed database services with automated failover. By using multiple Availability Zones, applications can be made highly available without operating your own hardware.
