What is high availability?
High availability is the practice of keeping a service reachable through failures and maintenance, measured as the share of time it actually answers.
How is availability measured?
As the percentage of time a service works, usually over a month or a year, often written as a count of nines. Each extra nine cuts the allowed downtime by ten. The table translates the percentages into minutes so the targets become concrete:
| Target | Downtime per year | Downtime per 30 days |
|---|---|---|
| 99% | about 3.65 days | about 7.2 hours |
| 99.9% | about 8.8 hours | about 43 minutes |
| 99.95% | about 4.4 hours | about 22 minutes |
| 99.99% | about 53 minutes | about 4.3 minutes |
A single server, however reliable, struggles to promise more than three nines once you count kernel updates and the hours a hardware replacement takes. Four nines require at least two machines and automatic failover.
What is the difference between active-active and active-passive?
In active-active, every node serves traffic all the time; in active-passive, a standby waits and takes over when the primary fails. Active-active uses all the hardware you pay for and fails over instantly for stateless services, but needs the application to tolerate several writers or a shared data layer. Active-passive is simpler for databases, where only one node should accept writes, at the cost of a short switch time and an idle machine.
What are quorum and split brain?
Quorum is the rule that a cluster acts only when a majority of members agree, and split brain is what happens without it: two halves of a broken cluster both believe they are in charge and both accept writes. Data diverges and has to be reconciled by hand. The cure is an odd number of voters, so three nodes, or two data nodes plus a small witness that only votes. Consensus systems such as etcd, Consul and the Raft mode of many databases are built around this rule. Our etcd clusters page sizes such a cluster.
How do I build HA with dedicated servers?
Pick a pattern for each layer. A common setup for a web application with PostgreSQL uses three rented machines:
- Two application servers, both active, each with HAProxy routing to the local app and the database leader.
- PostgreSQL on the same two machines, managed by Patroni: one leader, one synchronous replica.
- A third, smaller machine running etcd as the tie-breaking vote, possibly in another city.
- WireGuard between all three, because a private network product is not sold here.
- DNS listing both application addresses with a short time to live.
Patroni stores the leader key in etcd; if the leader stops renewing it, the replica promotes itself within seconds, and HAProxy follows by checking Patroni's REST endpoint:
backend pg_primary
option httpchk OPTIONS /primary
http-check expect rstatus ^2
default-server inter 2s fall 2 rise 2 on-marked-down shutdown-sessions
server db-a 10.66.0.1:5432 check port 8008
server db-b 10.66.0.2:5432 check port 8008
Which failures does HA not cover?
Logical ones. A bad deployment, a dropped table or a corrupted file replicates to every node in milliseconds, so high availability and backup are separate tools. Keep point-in-time backups on another machine, keep the previous application release ready to roll back, and practise restoring. Our Data backup and recovery and Writing a disaster recovery plan articles cover that side.
What does the hardware cost?
For the three-node example: two BUSINESS-2 2024 for the application and database at $109.80 each, plus ESSENTIAL-1 as the witness at $38.40. All three sit on unmetered ports in Europe and Canada, so replication traffic adds nothing to the bill. With 12 or 24 month terms the setup fee disappears and the monthly rate stays the same.
How do I prove the availability?
Measure from outside and rehearse failures. An external probe that loads a real page every minute gives you the true availability figure; logs on the server itself cannot see network faults. Then schedule game days: reboot the leader from the console, stop etcd on one node, block the WireGuard port for a minute, and record how long each recovery took. Our Uptime and downtime article covers measuring.
Machines for a highly available setup
| Model | Processor | Cores | Memory | Drives | Port | Per month |
|---|---|---|---|---|---|---|
| ESSENTIAL-1 | Intel Xeon-E 2386G | 6 | 32 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $38.40 |
| ESSENTIAL-3 | AMD Ryzen 9 5900X | 12 | 32 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $61.20 |
| BUSINESS-2 2024 | AMD EPYC 4344P | 8 | 64 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $109.80 |
| BUSINESS-3 2026 | AMD EPYC 4465P | 12 | 64 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $184.20 |
| ENTERPRISE-a1 2026 | AMD EPYC TURIN 9135 | 16 | 128 GB | 2x 1.92 TB SSD NVMe | 5 Gbps unmetered | $424.80 |
Related pages
Server redundancy
Duplicating disks, power, network paths and whole machines so one failure does not stop a service, and which layers a renter controls.
Read moreLoad balancing
Spreading requests over several servers: layer 4 and layer 7 balancers, algorithms, health checks, sticky sessions and self-built designs with HAProxy.
Read moreetcd clusters
Run etcd on bare metal: three or five members, client and peer ports, fsync latency on NVMe, quota and compaction, snapshots and TLS everywhere.
Read moreUptime and downtime
What uptime percentages mean in minutes, planned against unplanned downtime, how to measure availability yourself and design choices that raise it.
Read moreQuestions and answers
How much downtime does 99.9 percent availability allow?
About 43 minutes in a 30 day month, or about 8.8 hours in a year.
Can one dedicated server be highly available?
Not on its own. Kernel updates and hardware replacements cause downtime, so real high availability needs at least two machines and a failover method.
Why do clusters need three nodes?
So that a majority can still agree after one node fails. With two nodes, neither side can tell whether the other is down or only unreachable, which risks split brain.
Is high availability the same as backup?
No. HA keeps the service running through hardware failures, but it replicates mistakes and corruption too. Separate backups are still required.
How do servers here fail over without a floating IP?
Use DNS with a short time to live listing several addresses, a proxy layer such as HAProxy, or cluster software that redirects clients to the current leader.