Glossary

Uptime

Uptime is the time a system is running and doing its job, usually expressed as a percentage of a period, such as a month or a year. Its counterpart, downtime, is the time it is not.

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:

AvailabilityDowntime per yearPer 30-day monthPer week
99%3.65 days7.2 hours1.68 hours
99.5%1.83 days3.6 hours50.4 minutes
99.9%8.77 hours43.2 minutes10.1 minutes
99.95%4.38 hours21.6 minutes5.04 minutes
99.99%52.6 minutes4.32 minutes1.01 minutes
99.999%5.26 minutes25.9 seconds6.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-failure in 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

ServerProcessorCores / threadsMemoryStorageNetworkPer monthSmallest order
S2Intel Xeon E-2356G6 / 1264 GB DDR41x 1 TB NVMe2x 10 Gbps$58.39$58.39 (1 month)
S3Intel Xeon E-2356G6 / 1264 GB DDR42x 1 TB NVMe2x 10 Gbps$80.38$80.38 (1 month)
D52x Intel Xeon Gold 5315Y16 / 32256 GB DDR42x 2 TB NVMe2x 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.

Open

Two-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.

Open

Production server

The machine that serves real users and real data, how it differs from development and staging, and the habits that keep it stable.

Open

Ordering guide

Every step from choosing hardware to the first root login, with costs and timing.

Open

FAQ

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.