Skip to content

Liveness on the control plane link

The link is kept alive by the node using it. Liveness is carried by the calls themselves: the heartbeat proves the node is there, the pull asks for work, and the watch waits for the node's stream to move. This page is what each contributes and what their absence means to the other side.

Three signals, one direction

Signal The node is saying The control plane learns
Heartbeat This node is alive, and here is its state The node exists, with its capacity and health
Pull Give me what is ready for me now The node is taking work
Watch Tell me when my stream passes this revision The node is current at that revision

All three are node-initiated. The control plane answers and never calls.

Heartbeat is state, not just liveness

The heartbeat is emitted once per reconcile cycle, after preparation and before intake. It projects the node's state rather than sending an empty ping, so the control plane's picture of capacity, health and readiness is as fresh as the last heartbeat.

A cycle that cannot prepare does not heartbeat, and a cycle that cannot heartbeat does not take in work. The node degrades from the front, so the control plane's view goes stale before the node starts acting on stale belief.

Watch holds a revision, and only moves forward

A watch names the revision the node already holds and waits for the stream to pass it:

since_revision          the revision the node holds
max_events              how many events one return may carry
max_assignments         how many assignments one return may carry
wait_timeout_seconds    how long the node waits before returning empty

A watch that times out with nothing new returns empty and the node's revision is unchanged. That is the normal quiet case, not a failure.

A watch that fails returns empty with the current revision preserved. The node never advances its position on an error, which is the property that makes a failed watch safe: nothing was skipped, because nothing was marked seen.

Leases are the liveness that matters for work

Heartbeat absence tells the control plane a node is quiet. Lease expiry tells it the node's work is available again. The second is the one that changes anything: a 30 second lease renewed every 10 seconds, requeued by a controller once it lapses.

A node can be silent on the heartbeat and still hold its leases if it is renewing them; a node that stops renewing loses the work whether or not its heartbeat is arriving. Work follows the lease.

Liveness under degradation

When the link is degraded the node stops asking for new work and keeps reporting. Heartbeat and reports continue to be attempted under backoff, because they carry what the control plane needs to understand the node's state, while watch intake is suppressed.

See What continues while the control plane link is down and Assignments and leases during a break.