Component wiring¶
At startup the node builds its components once and holds them for its lifetime. Most must succeed for the node to start. One can fail and leave the node running with the failure recorded, which is worth knowing before you meet it.
What is built at startup¶
flowchart LR
subgraph DISK["Process-scoped paths, resolved first"]
direction TB
OS[("Outbox spool")]
LS[("Assignment lease state")]
AS[("Audit spool")]
end
subgraph PROC["XRATUD, built once, held for its lifetime"]
direction TB
CPC["Control-plane client<br/>identity, four contract versions"]
KIR["Kernel image resolver<br/>may be absent"]
REST["Every other component<br/>required"]
LOOP["Cycle loop"]
CPC --> LOOP
KIR -.-> LOOP
REST --> LOOP
end
OS --- REST
LS --- REST
AS --- REST
The three paths are resolved before anything in the process box is built, and every component that uses them opens the same files for the life of the process. The dashed edge is the one optional part: a node whose kernel image resolver failed still runs the loop, without it.
Building once rather than per cycle keeps a cycle cheap and a component's state continuous: the outbox, the lease manager and the cursor hold their position between iterations rather than being reconstructed.
Three process-scoped paths are resolved first¶
outbox spool status, events and logs awaiting delivery
assignment lease state the claims this process is renewing
audit spool audit and attestation records awaiting delivery
Each path is named from the node's dataplane_uuid and the process's
dataplane_instance_uuid, and sits in the process's temporary storage. The
files carry reports and claims through the life of one process, including
while the control plane is unreachable or restarting, and a new xratud process
starts with new, empty files. The outbox is bounded at 64 MiB and the audit spool at 128 MiB, both in
rotating segments.
What must outlive the process is held elsewhere: the node's identity and
assignment cursor on its volume, its leases on the control plane's ledger, and
its runtimes' evidence in each kernel's continuity store. See
Durable identity on /var/lib/xratu.
The control-plane client carries the agreement¶
The client is constructed with the node's identity and the four contract versions the link is held to:
They are fixed at construction, so every call the node makes states the same versions. A version disagreement is therefore a property of the node's configuration rather than of an individual call. See Establishing the control plane to data plane link.
One component may fail without stopping the node¶
The kernel image resolver is built from the tenant artifact runtime's endpoint and repository root. If that construction fails, the node keeps the error and starts anyway, with the resolver absent.
| Then | Consequence |
|---|---|
| The node starts | Registration, heartbeat, pull and reporting all work |
| The resolver is absent | Work that needs a kernel image resolved cannot proceed |
| The error is retained | The node can report why rather than failing opaquely |
This is the one partial start a node performs, and it is deliberate: a node whose tenant artifact runtime is misconfigured is still worth having registered and reporting, because that is how the misconfiguration becomes visible.
A node that is healthy on its probes, pulling normally, and failing everything that needs a runtime image is showing this condition rather than a link problem. See Where a symptom points.
Everything else is required¶
Any other component that cannot be built raises, and the process fails rather than starting without it. The reasoning is the same as the run loop's: a node running with an unknown set of parts would act on state nobody had reasoned about.
Configuration comes from one resolution¶
The components are built from one resolved configuration rather than each reading
its own settings. What a node is configured with is answerable as a single
document at start. See
xratud startup and bootstrap wiring.