What do availability percentages allow in real time?
Percentages look similar but hide large differences. Each extra nine cuts permitted downtime by a factor of ten:
| Availability | Downtime per year | Per 30-day month | Per week |
|---|---|---|---|
| 99% | 3.65 days | 7.2 hours | 1.68 hours |
| 99.5% | 1.83 days | 3.6 hours | 50.4 minutes |
| 99.9% | 8.77 hours | 43.2 minutes | 10.1 minutes |
| 99.95% | 4.38 hours | 21.6 minutes | 5.04 minutes |
| 99.99% | 52.6 minutes | 4.32 minutes | 1.01 minutes |
| 99.999% | 5.26 minutes | 25.9 seconds | 6.05 seconds |
A single kernel update with a reboot takes a minute or two, so a lone server can comfortably reach three nines but cannot promise five on its own. Higher figures come from designs where one machine can restart while others keep serving.
What does the uptime command show?
On Linux, uptime prints how long the system has been running since the last boot, the number of logged-in users and the load averages over 1, 5 and 15 minutes:
uptime -p uptime -s cat /proc/uptime last -x reboot shutdown | head -8 journalctl --list-boots | tail -5
-p gives a friendly duration, -s the boot time. last -x lists recent reboots and shutdowns from the wtmp log, and journalctl --list-boots shows each boot with its time range. Note that a long host uptime is not a goal in itself: a machine up for 600 days is also a machine that has skipped 600 days of kernel fixes. Check CPU usage and load explains the load figures.
How should uptime be measured honestly?
From the user's point of view, not the server's. A machine can be up while the web server is stuck, the database is full or DNS points elsewhere. Useful measurement:
- Probes from outside the machine, ideally from several regions, that request a real page or API endpoint and check the response content, not only the status code.
- Checks at least every minute, so short outages are not missed.
- Separate records for planned maintenance and unplanned outages.
- Service-level indicators that match what users care about, such as the share of requests answered successfully within 500 ms.
Open source tools such as Uptime Kuma, Prometheus with the blackbox exporter, or Gatus run on a small second machine. Placing the monitor in a different city from the service, for example monitoring a Chicago machine from Seattle, avoids blind spots. Latency covers what those probes measure.
What causes downtime on a single server?
- Planned work: kernel and firmware updates, reboots, migrations.
- Software faults: crashes, memory leaks, full disks, expired certificates.
- Configuration mistakes: a bad firewall rule or web server config, often the most common cause.
- Hardware faults: a failed drive, memory module or power supply, handled by support after a ticket.
- Upstream events: network incidents or attacks, many of which edge DDoS filtering absorbs before they reach the machine.
Most outages are self-inflicted and preventable with monitoring, staged changes and good habits like running nginx -t before a reload.
How do I raise the uptime of a service?
- Mirror drives so one failure does not stop the machine; Two-drive mirror (RAID 1) shows how.
- Restart policies:
Restart=on-failurein systemd units brings crashed services back in seconds. - Watch disk space and certificate expiry with alerts well before the limit.
- Run two machines behind DNS failover or a load balancer, ideally in different cities, so maintenance on one leaves the other serving.
- Replicate databases so a standby can take over; High availability covers designs.
- Practice recovery: time a restore from backup and a reinstall from the panel before you need them.
systemctl edit shopfront.service # add the two lines below in the override [Service] Restart=on-failure RestartSec=3s
How do I schedule maintenance with the least impact?
Pick the quietest hour from your own traffic graphs rather than a guess; for a site serving Asia from Singapore, that is rarely the same hour as for one serving the United States. Announce planned work in advance, drain traffic to a second machine if you have one, apply updates, reboot, and run the same external checks your monitor uses before declaring the window closed. Tools like needrestart on Debian and Ubuntu, or dnf needs-restarting -r on the Red Hat family, tell you whether a reboot is actually required, so you only take the hit when it buys something.
How does uptime relate to SLAs?
A service level agreement turns an availability target into a promise, usually with credits when it is missed. When you offer an SLA to your own customers, base it on measured history and on your architecture, not on the uptime of individual parts. Two machines that each manage 99.9 percent can deliver far more together if either one can serve alone, while a chain of components that all must work delivers less than its weakest link.
Which machines make a sensible redundant pair?
Two identical machines in different cities give the cleanest failover. A pair of S3 boxes at $80.38 a month each, both with 2x 1 TB NVMe for local mirroring, suits a typical web app. Larger databases pair well on two D5 machines with 256 GB DDR4 each.
Machines That Pair Well for Failover
| Server | Processor | Cores / threads | Memory | Storage | Network | Per month | Smallest order |
|---|---|---|---|---|---|---|---|
| S2 | Intel Xeon E-2356G | 6 / 12 | 64 GB DDR4 | 1x 1 TB NVMe | 2x 10 Gbps | $58.39 | $58.39 (1 month) |
| S3 | Intel Xeon E-2356G | 6 / 12 | 64 GB DDR4 | 2x 1 TB NVMe | 2x 10 Gbps | $80.38 | $80.38 (1 month) |
| D5 | 2x Intel Xeon Gold 5315Y | 16 / 32 | 256 GB DDR4 | 2x 2 TB NVMe | 2x 25 Gbps | $305.34 | $305.34 (1 month) |
Keep Reading
High availability
Keep a service up through a dead machine using two cities, DNS failover, replicated data and tested runbooks.
OpenTwo-drive mirror (RAID 1)
How RAID 1 keeps a full copy of your data on two drives, which machines have two drives and how to check it with mdadm.
OpenProduction server
The machine that serves real users and real data, how it differs from development and staging, and the habits that keep it stable.
OpenFAQ
Quick Answers
About 43 minutes of allowed downtime in a 30-day month, or roughly 8.8 hours over a year.
Run uptime -p for a readable duration or uptime -s for the boot time. last -x reboot lists earlier reboots.
Not by itself. It often means kernel updates were skipped. Regular planned reboots keep a system patched.
With external probes from another location that request real pages or endpoints every minute and check the response content.
Run two or more machines, ideally in different cities, with failover or load balancing and replicated data.