xratud, the node daemon¶
xratud is the daemon at the centre of a node: one process per node, running a
single loop whose phases run in order. Every call the node makes to the control
plane, and every command it sends to its kernels, comes from it. The SPIRE agent
and the fabric agent run beside it as peers, and the project and model runtimes
it deploys run as their own workloads.
For what a node deployment contains and how it is installed, see Deploying a data plane.
xratud in its surroundings¶
flowchart LR
CP["Control plane"]
subgraph NODE["THE NODE"]
direction TB
subgraph XD["XRATUD, one process"]
direction TB
PRB["Probe server"]
LOOP["Cycle loop"]
end
DISK[("Identity, assignment cursor<br/>on the volume")]
TMPS[("Queue, lease state, spools<br/>process-scoped")]
SP["SPIRE agent"]
XD --- DISK
XD --- TMPS
XD --> SP
end
subgraph YI["YOUR CLUSTER AND STORAGE"]
direction TB
K8S["Kubernetes API"]
K["Kernels"]
REG[("Registry, bucket")]
end
LOOP -->|"register, pull, report"| CP
LOOP -->|"operator lane"| K
LOOP --> K8S
LOOP --> REG
Every edge leaves the process box: nothing on this diagram calls into xratud.
Of the two stores beside it, the one on the volume makes a restart a
continuation, and the process-scoped one lives and ends with the process.
The probe server is started before the loop and stopped after it, so a node answers health probes for its whole lifetime including while it is draining. A node that is reachable on its probes but doing nothing is a different state from one that is not answering at all.
It initiates everything¶
Every exchange the data plane takes part in starts here: registration, heartbeat, pull and watch to the control plane, reports back to it, and the dialled operator lane into each kernel it owns.
Nothing calls into xratud to give it work. That single direction is why a node
needs outbound reachability and no inbound exposure. See
The two links.
One loop, phases in order¶
A cycle runs five phases in sequence, each taking the previous phase's output as input. They are not concurrent, which is why a node degrades from the front: a cycle that cannot prepare does not heartbeat, and one that cannot heartbeat does not take in work.
See The reconcile cycle.
What it owns on the node¶
| Owns | Meaning | Lifetime |
|---|---|---|
| Identity state | The node's identity, making a restart a continuation | The node's volume |
| Assignment cursor | Where it is in the control plane's stream | The node's volume |
| Local queue | Assignments admitted and not yet worked | The process |
| Lease state | The claims it is renewing | The process |
| Outbox and audit spools | Reports produced and not yet delivered | The process |
A restarted node reads back its identity and its cursor, and starts its queue, lease state and spools empty. What it no longer holds locally is held at the source: its leases on the control plane's ledger, which lapse and requeue if nobody renews them, and its runtimes' evidence in each kernel's continuity store, which it resumes from the acknowledged position. For the volume, see Durable runtime state.
What it does not decide¶
A node contributes facts about itself and executes what it was assigned. It does not author governance, resolve policy, choose its own destination registry, or decide its own placement. Those are recorded centrally and arrive in the assignment. See Control plane as source of truth.
When it exits¶
A cycle can report that shutdown is ready, and the loop returns rather than being interrupted. A non-transient error is raised instead of being absorbed, so the process fails and is restarted by its supervisor rather than continuing in an unknown state.
See The run loop.