Why is it not enough to catch a stale node by comparing each node's height against the median of your own fleet?
- A fleet-wide stall (a missed fork upgrade, a shared client bug, a network partition affecting your region) leaves every node equally behind, so the median moves with them and nothing alerts. Self-referential comparisons cannot detect correlated failure.
- The median is expensive to compute. Computation cost is irrelevant here.
- Nodes differ in hardware, so heights are never comparable. Heights are comparable; the problem is the reference, not the nodes.
- Medians hide outliers by design. It would catch a single outlier; it is the correlated case that defeats it.
If the whole fleet stalls together, the median stalls with it and nothing alerts; compare against an outside reference.
Use an independent reference: a different client implementation, an external endpoint, or the consensus layer's head. Then alert on two things, "this node is behind the fleet" and "the fleet is behind the world", because they have different causes and different responses.
Answering about statistics ('medians hide outliers'). The median catches a single straggler fine; it is the fleet-wide stall it cannot see.