Resuming telemetry delivery after a crash¶
The spool is the node's buffer for reports the control plane has not yet
accepted, and a new xratud process starts with an empty one. Each channel's
reports reach the control plane again from the place they came from. This page covers that mapping, channel by channel, and what the control plane sees while it
happens.
Where each channel's content comes back from¶
| Channel | Held after the crash by | How it reaches the control plane again |
|---|---|---|
status |
The control plane's assignment ledger | The assignment's lease lapses, it is dispatched again, and the new attempt reports |
kernel_returns |
The kernel's continuity store | The node re-handshakes and replays the lane |
events |
The operation that produced them, where it is repeated | Re-emitted by the repeated operation |
logs |
Each process, for its own lines | The new process reports its own lines as it runs |
Bodies already written to the observability bucket stay there, and the control plane holds their references. See Payload store runtime.
The kernel return replay¶
flowchart TB
subgraph NODE["NEW XRATUD PROCESS"]
direction TB
SESS["Session recorded again<br/>by deployment reconciliation"]
LANE["Return lane opened<br/>at the position it holds"]
SPOOL[("New outbox spool,<br/>kernel_returns channel")]
FLUSH["Batch report to the control plane"]
end
subgraph KERN["PROJECT KERNEL"]
direction TB
STORE[("Continuity store")]
end
CP["Control plane kernel return ingest"]
SESS --> LANE
STORE -->|"envelopes from the opening sequence"| LANE
LANE -->|"persisted before acknowledgement"| SPOOL
SPOOL --> FLUSH --> CP
After Return lane opened at the position it holds, the node writes each
envelope to New outbox spool, kernel_returns channel before it acknowledges
anything, so an envelope is held in the spool before the kernel is told it
arrived.
Because the return position is process state, a restarted node opens the lane at zero and the kernel replays from the start of what its store still holds. See Runtime handle lifecycle across restarts.
What the control plane sees¶
A batch of kernel return reports is admitted as a whole, and the response counts accepted and duplicate reports separately. A replay therefore arrives as a batch with a high duplicate count and no error, and the node treats accepted and duplicate alike as delivered.
A batch the control plane does not admit completely leaves every record in the spool with its attempt count raised, so a partial admission never results in a partially cleared spool.
The first minutes after a restart¶
a burst of batch deliveries the replay of what the kernel held
a high duplicate count envelopes the control plane already had
a lease recovery log event the claims the previous process left
a rising watch revision the node catching up on its assignment stream
A node that keeps producing those four signals is a node restarting repeatedly. See Telemetry under degradation.
Related¶
- The telemetry outbox cursor for the checkpoint the new spool starts from.
- Telemetry outbox and replay for a record's life in the spool.
- What a break never loses for the guarantees that hold across both links.