Skip to content

Registration and heartbeat emit

Registration is how a running process tells the control plane what it is and what it can run; the heartbeat is how it keeps that picture current, once a cycle. Both feed the node's own readiness probe, so the probe's reason names which of them is missing. This page is what each carries, when each is sent, and how a lost registration is repaired without a restart.

Registration and heartbeat

flowchart LR
  subgraph XD["XRATUD"]
    direction TB
    PREP["Preparation<br/>register if needed"]
    HB["Heartbeat<br/>once per cycle"]
    PRB[("Readiness probe<br/>reason")]
    PREP --> HB
    PREP --> PRB
    HB --> PRB
  end
  subgraph CP["CONTROL PLANE"]
    direction TB
    REG[("Registration<br/>dataplane_registration_uuid,<br/>capabilities, lease TTL")]
    RU[("Heartbeat rollup")]
    SC[("Scheduler capability projection")]
    RU --> SC
  end
  PREP -->|"register"| REG
  HB -->|"heartbeat"| RU

The registration identifies the process and what it can run, and each heartbeat refreshes the rollup and the scheduler capability projection made from it. The probe on the left reads whether each call succeeded, which is why a node's readiness answers "is this node registered and reporting" rather than only "is this process alive".

When a node registers

Preparation registers the node when the client holds no registration identifier: at the first cycle after start, and after the control plane reports the registration lost. A successful registration returns a dataplane_registration_uuid, which the client holds for every later heartbeat, pull and watch.

The identifier is held in the process. A restarted process registers again and receives a new one, while its enrollment and dataplane_uuid are unchanged.

What registration carries

node_name                  the node label
capabilities               what this node can run
metadata                   identity, trust and posture facts
lease_ttl_seconds          2 x heartbeat interval, at least 5
dataplane_protocol_version, assignment_schema_version
trust_contract_version, credential_issuer_version

With the default heartbeat interval of 15 seconds the lease TTL is 30 seconds.

The capabilities list names what this node can run:

python, execd, model_runtime
xck_runtime_closure_reconciliation
gpu_sharing:none, gpu_sharing:mig        the GPU sharing modes this node supports
airgapped                                present only on an airgapped node
network_profile:airgapped
policy_hash:sha256:<64 hex>

gpu_sharing:none is always present. A node counts as airgapped when it is configured private-only with a default-deny egress policy, and it then advertises the hash of the airgapped posture it attests to.

The metadata carries the node's identity trust claims and evidence signing identity, the control plane identity and tenancy policy it holds, its tenant_scope and dataplane_pool, and its network and GPU posture.

Repairing a lost registration

When a heartbeat, pull or watch is answered with a lost registration, the node clears its identifier, logs the event, registers again, and retries the call it was making:

agent registration lost; re-registering

A registration that cannot complete because the control plane is unreachable is treated as transient and waits out the backoff. See The control-plane client.

What the heartbeat carries

The heartbeat is sent once per cycle, after preparation and only when the node holds a registration:

status                 the node's projected health
active_assignments     the assignments it holds
capacity_available     the slots it has free
metadata               the cycle's projected state

The control plane updates the node's rollup and projects the report into its scheduler capability record, and placement reads that record. See Heartbeat rollup and log append and Scheduler capabilities.

The readiness probe reads both

After the heartbeat, the node updates its probes. Readiness is granted when the node is registered, the heartbeat succeeded, the transport is active, the projected health is ready, and no shutdown has been requested. Otherwise the reason is the first of these that applies:

Readiness reason Means
ready_for_pull Ready
draining Shutdown has been requested
bootstrap_register_pending The node holds no registration
degraded_cp_unreachable The control-plane transport is degraded
heartbeat_unconfirmed The last heartbeat did not succeed
The health reason The node's projected health is not ready

The startup probe passes the first time registration, heartbeat and transport are all healthy, reported as bootstrap_handshake_ready, and stays passed afterwards as bootstrap_handshake_converged. Before that it reports bootstrap_handshake_pending. Liveness reports process_alive for as long as the process runs.

A node that is live and not ready is answered by its readiness reason, and the reason says which of the calls on this page is failing.