Back to notes

NOTE 003 / DATA AVAILABILITY / 2026-11 / 11 MIN READ

Silence is not death: what a remote control plane may conclude from a missing heartbeat

Abstract. When a database node managed by a remote control plane stops reporting, the network path, the message broker, the agent or the node itself may have failed, and only the last of these justifies replacing the node. We describe a model of evidence for that decision: silence only marks a node unreachable, destructive actions need corroboration that does not depend on the silent node, and correlated silence is a channel event rather than many failures. The model borrows from cluster membership and failure detection, for an observer outside the failure domain that sees the world through one lossy channel. We also cover what is easy to get wrong in practice: a breaker that cannot fire, clocks that jump, and two periodic clocks that drift against each other.

One observer, one channel

Consider a bring-your-own-cloud managed database platform. The database clusters run in the customer's cloud account, and an agent on each node keeps one outbound connection to a message broker that we operate (NATS, in our case). Over it the agent publishes a status report every few seconds, at most once, with no persistence and no acknowledgement: a lost report is corrected by the next one. That is the right delivery class for monitoring and the wrong foundation for anything irreversible.

The control plane reads this stream, and it is the component that would replace a node that has died. When a node goes quiet, at least four things may have failed:

  • The network path: a customer firewall change, NAT exhaustion, a DNS failure.
  • The broker: a restart, a rolling upgrade, or the broker dropping a client it considers slow.
  • The agent: a crash, a restart, a bad configuration.
  • The node itself.

Only the last justifies a destructive action. Replacing a healthy primary because a firewall rule changed turns a monitoring gap into an outage, and if the old node is still serving when its replacement is promoted, the platform has manufactured a split brain by itself.

customer cloud account cluster members see each other directly agent agent agent egress: firewall, NAT, DNS message broker control plane cloud provider API instance status probe 1 2 3 4
Figure 1. Four places where silence can originate. The control plane sees all four through the same arrow, and only one of them is a dead node.

What is familiar, and what is not

None of the parts is new. Split brain, fencing and quorum are the vocabulary of every high-availability cluster: members watch each other, a majority decides who is alive, and a node that might still be running is fenced (in Pacemaker's terms, shot in the head) before its resources start elsewhere. Chandra and Toueg showed that failure detectors are inherently unreliable and characterised them by completeness and accuracy. The phi accrual detector of Hayashibara and colleagues replaces the binary verdict with a continuous suspicion level derived from the distribution of heartbeat inter-arrival times, and Akka and Cassandra both implement it.

These tools assume an observer inside the failure domain, with its own link to the peer it watches and a vote. A control plane has none of these. It cannot vote, and its view of every node arrives through one shared channel. A phi accrual detector would sharpen the judgement on each stream, but when the broker restarts every stream's suspicion rises at once. Better statistics on one link do not say which link failed.

The end-to-end argument of Saltzer, Reed and Clark names the underlying point: a function can be implemented correctly only with the knowledge of the endpoints. Whether a database node is alive is an endpoint property. The heartbeat channel can say that reports stopped; only something that exchanges real work with the node can say that the node stopped. In a replicated database, those endpoints are the node's own cluster peers.

A model of evidence

We keep two decisions apart: what the platform displays about a node, and what it may do to it.

For display, the vocabulary has four values: reachable, unreachable, initializing and unknown. A missed heartbeat moves a node to unreachable and does nothing else. A node that has never reported reads unknown, not unreachable: it has not stopped, it has not started.

The displayed value comes from one precedence, applied in one place so that every view agrees. An arriving report wins, because it is the node's own voice. Without one, a recent operation that actually contacted the node comes next, then a cloud provider probe result already held in a cache. Reading a status never triggers a probe.

For destructive actions (replacing a node, forcing a failover, re-homing it) the action requires corroboration from a signal independent of the silent node, ranked:

  1. The surviving cluster members' view of the member. The cluster manager on each node already probes its peers. That view is provider independent, and it reaches the control plane through a sibling's report, over a different connection from the silent node's.
  2. The cloud provider's instance status, from a probe of the provider API.

The first signal is not free. A report carrying only the reporter's own role and replication state says nothing about a quiet sibling, so every report carries a bounded per-member view as the reporter's cluster manager sees it: each member's identity, role, state, and whether the manager can see it. Without that field, corroboration falls through to the provider probe and the provider independence that justified the ranking is lost. And a sibling report that does not mention the quiet node is no evidence, which is not the same as a sibling saying the node is fine.

SignalWhat it provesAdmissible for destructive action?
Missed heartbeatReports from the node stopped reaching the control planeNo. Marks the node unreachable only.
Siblings' view of the member, from a fresh sibling reportThe cluster's own members cannot see the node, or see it in a state that is not onlineYes, ranked first, while the channel is healthy.
Cloud provider instance statusThe provider's opinion of the instance, not of the database on itYes, ranked second. The only signal that survives a channel outage.
Broker disconnect, reason is loss of the connectionThe channel to the node diedNo. It restates the silence.
Broker disconnect, reason shows the node acted (authentication failure, permission violation, protocol error, graceful close)The node or its agent was alive and did somethingYes, as evidence about the node rather than the path.
Many nodes silent at onceThe communication plane is impairedNo. Reported as unknown and degraded; destructive rules are suspended.

Why a disconnect event is not evidence

The broker publishes an event, with a reason, when a client's connection closes. It is tempting to treat it as the second signal, but it is not independent. When a node's egress path breaks, the broker emits a disconnect because the channel died, not because the node did. The event restates the silence in other words, and an engine that accepts it as corroboration will destroy a healthy database node on no evidence at all.

The exception is a reason that could only have originated at the node: an authentication failure, a permission violation, a protocol error, or a graceful close by the client. These prove the agent was alive and acted, so they carry information from the node rather than from the path.

A disconnect event still has a use. It names a departing node within the broker's own ping interval, far sooner than a staleness timer, so using it to show a node as unreachable sooner is safe. Using it to authorise destruction is the mistake the model exists to prevent. Detection latency and corroboration are different levers.

Correlated silence is a channel event

When many nodes go quiet at once, the sibling view stops being admissible too, because it travels the suspect channel: a broker outage removes the siblings' reports with everyone else's. Only the provider probe survives, and above it sits a mandatory fleet-wide breaker.

The breaker fires when the control plane's own broker connection is down, or when more than a configured fraction of the population falls silent inside a configured window. It then reports every node it can no longer hear as unknown, flags the channel degraded, suspends destructive rules and alerts. It never reports node failure in that state. A node whose reports still arrive is still read from them: the proportion trigger fires precisely when a minority is still reporting. The flag suppresses the inference from silence, not the evidence from arrival. The record is one row of channel state, not thousands of node transitions: the nodes did not change, our ability to hear them did.

Three guards sit beside it.

  • A minimum count. The proportion does not fire below a minimum number of silent nodes. In one three-node cluster, two real failures are 67 percent, and without the floor the breaker would hide a genuine double failure as a channel event. The population counts only clusters the control plane believes are live, so a planned teardown is not an outage.
  • A rate guard for the outage the control plane cannot see. If the broker's ingress fails while the control plane's own subscription stays up, the first symptom is a collapse in the received message rate. The guard suspends classification before any node is marked, so the outage does not arrive first as fleet-wide node failure.
  • A grace period after our own reconnect. When the subscription returns, every node has been silent for the length of the outage. Classification waits for the full recovery chain: the agent's dead-connection detection at its upper bound, the jittered reconnect ceiling and one publish interval (60 s, 60 s and 3 s at our defaults, shipped as 150 s). The grace runs from the reconnect instant, not over a trailing window, which would contain every node's pre-outage report and end the grace before any node had returned.
healthy silence is swept; probe results usable for display degraded unheard nodes read unknown; destructive rules suspended recovering sweep suspended; unheard nodes read unknown own connection lost, OR silent fraction above threshold within window (and silent count at or above floor), OR message rate collapse condition clear for one full window own subscription re-established grace elapsed, OR recovery fraction of population heard since reconnect In every state, a node whose reports are arriving is read from its reports.
Figure 2. The channel's own state. Node reachability is resolved under it, so a fleet-wide silence becomes one channel transition instead of thousands of node transitions.

A breaker that can never fire

A safety mechanism that is switched on but unable to trigger is worse than none, because everyone believes it is there. Ours could be configured into exactly that state.

Silence is evaluated on a periodic sweep, and a node is classified silent only at the first sweep after its staleness threshold passes. If the breaker window is shorter than the staleness threshold plus one sweep interval, it can close before that sweep runs, never contain a silent node, and never fire. With a 75 s threshold and a 15 s sweep, the window must exceed 90 s; we ship 120 s, and the control plane refuses to start below the sum.

Every derived value gets the same treatment. The staleness threshold must cover at least two publish intervals, because on a deliberately lossy channel one dropped report is expected. It must also exceed the reconnect ceiling plus one interval, because a node sitting out its reconnect jitter after a broker restart is doing what it was told. The dangerous direction is the less intuitive one: raising the publish interval or the reconnect ceiling, not lowering it, pushes legitimate gaps past the threshold.

The cost is real: at the defaults a dead node takes up to 90 s to read as unreachable. Shortening the threshold to beat that reintroduces the fleet-wide false sweep, the larger hazard.

Clocks

Staleness is a duration and must be measured on a monotonic clock. A wall-clock step, such as an NTP correction, ages every last-seen time at once, and the next sweep sees the whole fleet stale together: a correlated false failure produced inside the observer. In Go, normalising a timestamp to UTC strips its monotonic reading, so we compare on the monotonic clock and convert to UTC only where a time is serialised.

The second problem is aliasing. The cluster section of a report comes from the cluster manager, whose feed to its consumers ticks every 3 s. An agent publishing on its own timer at the same nominal period would drift against it: the section would be up to three seconds old, and as the phases slid a report would periodically repeat the previous section while a fresh one was skipped. So the cadence is derived, not chosen. Each upstream ping triggers a report. A cap stops a burst of pings becoming a burst of reports, and it sits strictly below the ping period, at 0.8 of the interval, because a cap exactly on the period it filters turns ordinary jitter into suppressed reports; a report caught by the cap is delayed, not dropped. A fallback timer publishes host metrics alone only when no ping has arrived for 1.5 intervals. The agent refuses an interval below 2.5 s while it reads the cluster manager.

Driving one clock from the other also keeps the end-to-end figure honest. Two intervals are in series, not three: the upstream ping and the console's poll. An unchanged sample is at worst about 6 s old. A state change is published at once with a change marker and is visible in about 3.5 s plus network.

free-running publish timer fresh section skipped repeats old section manager ping 3.0 s agent publish age of the cluster section 0.4 s 1.1 s 1.9 s 2.7 s ping-driven publish manager ping agent publish cap boundary (0.8 x interval) delayed, not dropped
Figure 3. Two clocks at the same nominal period alias. Driving the publish from the upstream ping removes the second clock instead of tuning it.

Open questions

The precedence, the breaker and its guards, the clock handling and the per-member view are built. The engine that would act on them is not, deliberately: corroboration is computed and shown to an operator, and no automation replaces or fences a node.

  • The corroboration rule per provider. The ranking is settled; what each provider's instance status means precisely is not.
  • Detection latency. 90 s is slower than a natural 60 s target. Disconnect events could close the gap, for display only.
  • Separating the classes. Changes sent at once, a liveness heartbeat every 5 to 10 s, and metrics only while someone views a cluster would be the largest reduction in message volume available. It needs a control message the channel does not carry yet.
  • Admissible reasons in practice. On the broker we use, a permission violation goes to the server log rather than to an event, so admitting it means reading that log.
  • The upstream cadence. The 3 s period is corroborated from an existing client of the cluster manager, not a declared protocol constant, and should be measured on a live cluster.

What we would do earlier next time: put every value in the timing chain into one table from the start, including the ones a client library supplies by default. The library's default dead-connection detection was two minutes with two outstanding pings, a four to six minute window that would have dominated every figure derived from it.

Back to notes