Files

41 lines
2.3 KiB
Markdown
Raw Permalink Normal View History

# Thor
Out-of-band host and cluster health for the LotusGuild cluster.
**Status: planning.** There is no code yet. See the "Plan Thor" issue.
## Why
On 2026-11-23, compute-storage-01 was caught in an OOM loop, which stalled Ceph across the cluster.
- hwmonDaemon, running on that host, never noticed.
- Gandalf, the network monitor, misread the symptoms as a network failure (Tinker 615797777, gandalf#57).
A monitor that runs on a failing host is least reliable exactly when it's needed. Thor watches the servers from outside.
## Who owns what
| App | Owns | Rule |
|---|---|---|
| **gandalf** | Networking: switches, links, WAN, modem, and later checking from several places | "Is the network the problem?" |
| **hwmonDaemon** | What only the host itself can read: SMART, NVMe wear, ECC/EDAC, the hardware event log, kernel hardware errors, disk firmware | "Only the box knows this." |
| **thor** | Host and cluster health seen from outside, using Prometheus, Loki, the Proxmox API and Ceph | "Someone else has to notice this." |
**Test for any new check:** if node_exporter or Loki already exposes the data, it belongs to thor. If only the host can read it, it belongs to hwmonDaemon. If it's the network, it belongs to gandalf.
## Planned scope (to be refined)
- **Host health:**
- memory exhaustion and OOM kills, naming the guest that caused them
- CPU saturation
- hosts that are stalled rather than down
- **Proxmox:** HA events, guests that crash-loop, and guest storage use. This takes over hwmonDaemon's LXC storage check.
- **Ceph:** one cluster-wide view instead of the same warning reported from every node (hwmonDaemon #29, #35).
- **One ticket per root cause:** group the symptoms of one incident, auto-resolve with a note, and handle recurring or expected conditions (hwmonDaemon #31, #33).
## Principles
- **Run off the hardware it watches.** Not on a cluster node, and preferably not on the same box as Gandalf.
- **One incident, one ticket.** A shared dedupe contract between gandalf, hwmonDaemon and thor, so the three apps never open three tickets for one event.
- **A ticket cutter and correlator, not a dashboard.** Grafana already draws the graphs.
## Related
- hwmonDaemon#39: interim OOM check, which moves here later.
- hwmonDaemon#40: the boundary, and which checks move here.
- gandalf#57: Gandalf stops calling non-network faults "network".