Skip to content

Node availability and load

The Hub keeps a record of every time a node stopped reporting, and a fortnight of readings of how busy each node was. Both are there to answer two questions: can I rely on this machine? and what happened when it dropped?

A node has an outage from its last heartbeat until its next one, once the Hub has seen it miss its heartbeats long enough to mark it offline (see Node offline). Outages are kept for good: they are a few rows a week.

Terminal window
$ asdl-hub nodes
NODE STATE ADDRESS AGENT MEMORY GB DISK GB APPS LAST SEEN UPTIME 7D LAST OUTAGE
laptop online 10.101.0.2 v2026.10.13-7b28c67 7.3/14.9 64.8/118.8 1 13s ago 84.73% 31m 25s, 8h ago (weak link)
tower online 10.101.0.5 v2026.10.13-7b28c67 3.0/31.1 264.8/319.8 2 9s ago 99.86% 4m 43s, 44h ago (restarted)
pc offline 10.101.0.3 v2026.10.13-7b28c67 2.1/7.1 94.7/115.8 0 5d ago 0.33% ongoing, 5d 3h
  • UPTIME 7D is the share of the last 7 days the node was not in an outage. The node’s page in the dashboard also shows 30 days. Time before the Hub began recording outages doesn’t count, so a node never looks perfect for a period nobody measured. The dashboard says when counting began.
  • LAST OUTAGE is how long the latest one lasted and how long ago it ended, or ongoing while the node is still down.

In the dashboard, open Nodes → the node. The Availability card has the same numbers and lists the latest outages.

When a node comes back, the Hub makes a best guess at the cause from what it knows:

Cause Means
restarted The machine’s own uptime is shorter than the outage, so it rebooted: a power cut, a crash or an update.
weak link The machine stayed up, and its WiFi signal was under 50% or its ping to the Hub over 100 ms just before it went quiet.
connection The machine stayed up and looked fine, so the network or the agent dropped.

It’s a guess, shown in the dashboard next to each outage and in the command line. Outages from before the Hub recorded causes have none.

Terminal window
$ asdl-hub outages laptop
STARTED LASTED LIKELY CAUSE WIFI PING
Oct 22 02:14 2m 38s weak link 35% 180 ms
Oct 21 02:31 2m 10s weak link 41% 140 ms
Oct 19 14:02 8h 2m restarted - -
Oct 18 02:20 3m 1s weak link 38% 120 ms
Causes: 3 weak link, 1 restarted
Pattern: 3 of 4 outages began between 02:00 and 05:00

WIFI and PING are the node’s last readings before it went quiet; a node on a cable has no WiFi reading (-). When at least four outages exist and half of them begin within the same three hours, the Pattern line says so. That’s usually the quickest way to spot a router that restarts nightly or a backup that saturates the link.

On a node’s page, the Load history card graphs CPU, memory, load (1 minute) and ping to the Hub, over the last 6 hours, 24 hours, 7 days or 14 days. Hover a graph to read a value at a point in time.

  • The Hub takes one reading a minute from each node’s heartbeats and keeps them for 14 days.
  • A gap in a line is a time the node wasn’t reporting, so an outage shows up as a break and not as a straight line across it.
  • Longer ranges are averaged down to about 300 points.

These numbers aren’t only for looking at. When the Hub picks a node to move an app to, it prefers nodes that have been steady: see How the target node is chosen.

Request Does
GET /nodes/uptime Every node’s uptime (7 and 30 days), outages in the last 7 days and latest outage.
GET /nodes/:id/details One node with its uptime and its latest outages, each with its cause, wifi_at_start and ping_at_start.
GET /nodes/:id/samples?hours=24 The node’s readings, oldest first: at, cpu_percent, memory_percent, disk_percent, load_1, ping_ms, wifi_signal. hours is 1 to 336.