Cycle summary and heartbeat projection¶
The control plane places work on a node by what the node says about itself, so that account has to be complete, current and in one shape. Once per reconcile cycle the node projects its state into a heartbeat: its health, the assignments it holds, its free capacity, and a metadata section for every subsystem that can hold work back or lose reports, including its telemetry spools. At the end of the same cycle it produces a cycle summary, the record of what the cycle did. This page covers the heartbeat's fields, how the node's status is derived, what each metadata section tells the control plane, and the cycle summary.
Two projections per cycle¶
flowchart TB
subgraph PREP["PREPARATION"]
direction LR
H[("Health, identity state")]
Q[("Queue, capacity,<br/>governor decision")]
T[("Trace layer, audit spool,<br/>mux state")]
X[("Transport, drain,<br/>lease recovery, cache,<br/>build runtime, fabric")]
end
HP{{"Heartbeat projection"}}
CP["Control plane<br/>rollup, scheduler capability record"]
WK["Intake and assignment reconciliation"]
CS{{"Cycle summary<br/>completion phase"}}
RLP["Run loop<br/>continue, or exit when drained"]
PREP --> HP --> CP
HP --> WK --> CS --> RLP
The heartbeat is projected from the state preparation captured, before the cycle takes new work, so the control plane places work against the state the node was in when it asked. The cycle summary is produced at the end and records what the cycle did with it.
The heartbeat¶
The heartbeat is sent once per cycle while the node holds a registration:
| Field | Holds |
|---|---|
status |
The node's health status |
active_assignments |
The identifiers of the assignments it holds |
capacity_available |
Its free worker slots |
metadata |
One section per subsystem |
The control plane updates the node's rollup and its scheduler capability record from it. See Registration and heartbeat emit and Heartbeat rollup and log append.
How the status is derived¶
The status starts as the node's health status, warming until the node's
health has been evaluated. The node's runtime identity can override it:
| Runtime identity state | status |
health_reason |
|---|---|---|
healthy |
The health status | The health reason |
degraded_revocation_freshness_unknown |
degraded |
The identity's reason code |
quarantined |
failed |
The identity's reason code, or RUNTIME_IDENTITY_QUARANTINED |
When the control-plane transport is anything other than active, the
health_reason is degraded_cp_unreachable. A node whose identity cannot be
trusted reports so itself, and placement sees it without waiting for the
identity to expire. See
Runtime identity refresh.
The metadata sections¶
| Section | Tells the control plane |
|---|---|
health_phase, health_reason |
Where the node is in its lifecycle, and why it is not ready |
queue_depth, queue_backpressure_active, queue_depth_by_priority |
How much admitted work waits locally |
runtime_active_count, ipc_backpressure |
Running kernels, and whether a kernel is pushing back |
governor |
The performance governor's decision, reason and limits, including the flush gates |
identity_mode, identity_channel, runtime_identity_state |
How the node authenticates, and the state of its runtime identity |
shutdown |
Whether a shutdown is requested, and why |
runtime_drain |
The drain's progress |
lease_recovery |
The lease reconciliation performed at startup |
cache |
The cache manager's metrics |
build_runtime |
Build executor state |
trace_runtime |
The trace layer's buffered metrics and logs, and its bound context |
audit_runtime |
The audit and attestation spool's counts, sizes and chain state |
telemetry_mux |
The mux profile in force, its last refresh, and the refresh error |
control_plane_transport |
The transport's mode, backoff and last error |
fabric |
The private fabric routes the node holds |
The telemetry sections answer the question a stalled report raises. A growing
audit_total_bytes or outbox backlog means the node is holding records the
control plane has not taken; a telemetry_mux.last_refresh_error means the
node is running on its previous profile; governor.limits.flush_logs at 0
means logs are being held back on purpose. See
Where a symptom points.
The heartbeat also carries cp_transport_mode alongside the payload.
The cycle summary¶
The completion phase produces the cycle summary, the return value of one cycle:
| Field | Holds |
|---|---|
registered |
Whether the node held a registration |
pulled, queued_accepted, queued_rejected |
Assignments pulled, and admitted or refused by the local queue |
processed, failed |
Assignments the worker phase ran, and how many failed |
queue, runtime, ipc_backpressure, runtime_drain |
Queue, kernel and drain state after the cycle |
governor, health, lease_recovery, cache, build_runtime |
As captured in preparation |
control_plane_transport, probe |
The transport and the health probes after the cycle |
observability, audit |
The trace layer and audit spool after the flush |
flushed |
Records sent per channel: status, events, logs |
shutdown_requested, shutdown_reason, shutdown_ready_to_exit |
The drain decision |
The run loop reads shutdown_ready_to_exit from each summary and ends when it
is true. A cycle that fails on a transient control-plane error produces no
summary; the loop marks the transport degraded, backs off, and runs the next
cycle at once. See
The run loop and
Cycle flush.