Uptime and Availability: The Arithmetic of Nines, Series and Redundancy
Translate uptime promises into minutes of downtime, combine components in series and in parallel, see why redundancy helps and what a single shared part does to it, and check the formulas by simulation and with exact fractions.
In this lesson you will
- Convert an uptime percentage to downtime
- Combine components in series and parallel
- Explain what redundancy buys and what limits it
- Verify availability formulas by simulation
About 28 minutes
“Ninety-nine point nine percent” sounds like a lot
A hosting provider promises 99.9 percent uptime, and Femi’s client asks what that means in practice. Availability is the share of time a service works. The percentages hide large differences, so the arithmetic is worth knowing by heart. A year has about 525,960 minutes, 365.25 days. At 99 percent the service may be down for 1 percent of that, 5,260 minutes, about 3.65 days. At 99.9 percent, called three nines, 526 minutes, about 8.8 hours. At 99.99 percent, 53 minutes, and at 99.999 percent about 5 minutes. Each extra nine divides the allowed downtime by ten and costs far more than ten times as much to deliver. The promise in a contract is usually a credit of money, not a guarantee, and it usually excludes planned maintenance, so read the exact definition.
Real systems are built from parts, and the availability of the whole depends on how they are connected. Parts in series, all of which must work, multiply their availabilities: a web server at 99.9 percent and a database at 99.9 percent in series give 99.9 percent of 99.9 percent, 99.8 percent, worse than either. Parts in parallel, where any one is enough, fail only when all fail: two servers of 99 percent each, with a load balancer that switches between them, fail together with probability 0.01 x 0.01 = 0.0001, so they are available 99.99 percent of the time, if failures are independent. That last condition is the catch. Two servers in the same rack on the same power supply, or running the same buggy software, fail together, and a shared part, such as the load balancer or the database, is a single point of failure that caps the whole system. An error budget turns the promise into a tool: the downtime that the target allows can be spent on risky changes.
| Availability | Downtime per year | Per month (30 days) |
|---|---|---|
| 99% | 3.65 days | 7.2 hours |
| 99.9% | 8.8 hours | 43 minutes |
| 99.99% | 53 minutes | 4.3 minutes |
| 99.999% | 5.3 minutes | 26 seconds |
const YEAR = 525960; // minutes in 365.25 days
const down = a => (1 - a) * YEAR;
[0.99, 0.999, 0.9999, 0.99999].forEach(a => console.log((a * 100).toFixed(3) + '%', 'allows', down(a).toFixed(1), 'minutes a year =', (down(a) / 60).toFixed(2), 'hours =', (down(a) * 60).toFixed(0), 'seconds'));
const series = xs => xs.reduce((p, x) => p * x, 1), parallel = xs => 1 - xs.reduce((p, x) => p * (1 - x), 1);
const lb = 0.9995, web = 0.99, db = 0.999;
const one = series([lb, web, db]); // one web server
const two = series([lb, parallel([web, web]), db]); // two web servers behind the same balancer and database
const full = series([parallel([lb, lb]), parallel([web, web]), parallel([db, db])]); // everything doubled
console.log('one server :', (one * 100).toFixed(4) + '%', '=', down(one).toFixed(0), 'minutes of downtime a year');
console.log('two servers:', (two * 100).toFixed(4) + '%', '=', down(two).toFixed(0), 'minutes (the balancer and the database are still single points)');
console.log('all doubled:', (full * 100).toFixed(5) + '%', '=', down(full).toFixed(1), 'minutes');
console.log('DATA ' + JSON.stringify({ one, two, full }));
99.000% allows 5259.6 minutes a year = 87.66 hours = 315576 seconds
99.900% allows 526.0 minutes a year = 8.77 hours = 31558 seconds
99.990% allows 52.6 minutes a year = 0.88 hours = 3156 seconds
99.999% allows 5.3 minutes a year = 0.09 hours = 316 seconds
one server : 98.8515% = 6040 minutes of downtime a year
two servers: 99.8401% = 841 minutes (the balancer and the database are still single points)
all doubled: 99.98988% = 53.3 minutes
The first lines are the table of nines, computed from 525,960 minutes a year: 99 percent allows 5260 minutes of downtime, 99.9 percent 526, 99.99 percent 52.6 and 99.999 percent 5.3 minutes, about 5 minutes and 16 seconds. For the example system of a balancer at 99.95 percent, a web server at 99 percent and a database at 99.9 percent, one web server in series gives 98.85 percent, about 6040 minutes of downtime a year, more than 4 days: the weakest part dominates. Adding a second web server in parallel raises it to 99.840 percent, 841 minutes, a large gain for a small cost, since the two servers fail together only 1 time in 10,000.
But the improvement stops there, because the balancer and the database are still single points of failure, and between them they allow 789 minutes a year. Doubling every part brings the total to 99.9899 percent, 53.3 minutes, and each step costs more money and complexity: a database with a replica needs replication, monitoring and a failover that actually works, and untested failover is the usual way that redundant systems fail. The formulas also assume that failures are independent. Two servers on the same host machine, or running the same release that has the same bug, fail together, and the real availability is then much lower than the independent calculation.
Independent check: the formulas were checked by simulation. Four million random hours were drawn, each part up or down with its own probability, and the system counted as up when the rules of the connection were satisfied. The simulated availability of the one-server system is 98.853 percent against the formula’s 98.852, and that of the two-server system is 99.841 against 99.840, agreeing to a few hundredths of a percent, within the noise of the sampling. The two-server figure was also computed with exact fractions, with no rounding, and equals the JavaScript result to twelve decimals.
Check by hand: two parallel servers of 99 percent fail together with probability 0.01 x 0.01 = 0.0001, so the pair is up 0.9999 of the time. In series with 0.9995 and 0.999, the result is 0.9995 x 0.9999 x 0.999 = 0.99830. One server: 0.9995 x 0.99 x 0.999 = 0.98851, so about 1.15 percent downtime, around 6,000 minutes a year.
Two servers on the same machine, the same power supply or the same release fail together. Spread them across machines, zones and, for important systems, providers, and test the failover.
If the target is 99.9 percent, you have about 43 minutes of downtime a month to spend. Use it deliberately for deployments and maintenance, and stop risky changes when it is spent.
Providers, plans and prices change often, so the lessons use invented prices and generic names, and you must check each provider’s current website. The server behaviour in this lesson was run for real on a Linux machine with Python 3.13, Node.js 22, OpenSSL and standard Unix tools, and every result was checked a second way. Real availability depends on how the provider defines uptime, what it excludes and what it pays when it fails, so read the service level agreement.
Practice
Compute the availability of three web servers in parallel with 99 percent each. Add a CDN in front at 99.99 percent in series. Find out what your own host promises and what it excludes.
Check what you learned
Five quick questions. Pick an answer and you will see straight away whether it is right and why.
How much downtime does 99.9 percent allow per year?
- About 3.65 days
- About 53 minutes
- About 5 minutes
- About 8.8 hours
526 minutes.
How do components in series combine?
- They add
- They average
- Their availabilities multiply
- They divide
All must work.
How do components in parallel combine?
- They multiply
- They add
- The system fails only when all fail
- They never fail
1 minus the product of failure probabilities.
What limits redundancy?
- Colour
- Shared parts and correlated failures
- Disk size
- Domain names
Single points of failure.
Why simulate the formulas?
- To make it slower
- An independent check of the arithmetic
- To test the network
- It is required
Monte Carlo agreement.
Summary
- Each nine divides the allowed downtime by ten.
- Series multiplies availabilities; parallel multiplies failure probabilities.
- Shared parts and common causes limit redundancy.
- Check formulas by simulation.
Questions
Should I aim for five nines?
Rarely, for a small business. Each extra nine costs a lot, and many failures come from changes and human error, not hardware. Choose the target that the business really needs.
What is a service level agreement?
A contract that states what the provider promises, how it is measured and what you get when it fails, usually service credits. Read the exclusions.
How do I measure uptime?
With an outside monitor that checks the site every minute from several places, and records failures. Do not rely only on the provider's own numbers.
