Skip to content

Mass restart recovery

A fleet-wide restart is the case where every node comes back at once: a cluster upgrade, a zone recovery, a control-plane restore. The individual node paths are the same ones a single restart follows. What changes is the order between the planes and the checks that gate each step.

This page covers the restore order, the conditions that stop it, and the forced resync path for a node whose state cannot be proven.

The restore order

flowchart TB
  subgraph CP["CONTROL PLANE"]
    direction TB
    STORE[("Metadata store")]
    DISP["Dispatch controllers<br/>and assignment watch"]
    MONO{{"Watch revision monotonic,<br/>health green?"}}
  end
  subgraph DPN["EACH DATA PLANE NODE"]
    direction TB
    NODE["xratud"]
    NCUR[("Watch cursor")]
  end
  GATES{{"Convergence and<br/>lineage gates"}}
  STORE -->|"1. restore"| DISP
  DISP -->|"2. validate"| MONO
  MONO -->|"3. restart nodes"| NODE
  NCUR -->|"4. cursor loaded,<br/>or forced resync"| NODE
  NODE -->|"4. snapshot and delta<br/>when the cursor is refused"| DISP
  DISP -->|"5. pull, claim, report"| NODE
  NODE -->|"6. converged"| GATES

The control plane is restored and validated first because every node resyncs against Dispatch controllers and assignment watch. Step 4 is where a node either continues from Watch cursor or takes a snapshot and delta from the control plane, and Convergence and lineage gates close the recovery.

What stops the order

Checkpoint Stop condition Go condition
Control-plane restore The API is unavailable, or the assignment watch revision is not monotonic Health and readiness green, and the watch revision monotonic
Node restart A node's runtime identity sits in quarantined with no recovery transition Identity returns to healthy and the watch resumes
Cursors and spools An invalid cursor digest, acknowledgement watermark corruption, or an unresolved replay gap A forced resync accepted and the target revision converged
Assignment fence A stale fence write accepted, or ownership ambiguity observed Stale fence writes refused fail-closed, one active owner per key
Lineage A payload lineage mismatch accepted A mismatch blocked with its fail-closed reason code

Each stop condition is a state that makes the next step unsafe. A node whose identity is quarantined holds no proven authority to claim work, so it is not admitted.

Forced resync

A node is given a forced resync when its own state cannot be proven:

cursor corruption or a digest mismatch
a replay gap the delta cannot bridge
ambiguity about what the spool held

The resync uses the snapshot and delta cutover: the control plane sends every assignment in an active status whose lease the node holds, plus the revision to continue from, with an explicit reason code. The node converges to the current stream revision before it accepts ordinary replay again. See Gap handling.

Many nodes resyncing at once

Three mechanisms keep a simultaneous return from overwhelming the control plane.

The deployment-level rate limits bound how often any node may watch, pull and report, so the aggregate load is a function of the fleet size and those figures. A node that cannot reach the control plane marks its transport degraded, suppresses intake and backs off, which spreads the retries. The performance governor adapts each node's pull rate and concurrency from its own observed pressure.

{
  "message": "control-plane transport degraded; suppressing assignment watch intake",
  "details": { "mode": "degraded_cp_unreachable", "operation": "watch", "retry_in_seconds": 2.0 }
}

See Sizing and capacity planning and Scaling and the performance governor.

What the operator records

A fleet recovery is an audited event. For each incident the record carries the incident identifier, the acting actor and the reason code, the start and end of each plane's restore, the resync reason and target revision, the gate results, and the final decision with its approver. The per-node evidence fields are workspace_uuid, dataplane_uuid, runtime_instance_uuid, enrollment_uuid, trace_id, reason_code, control_epoch, fence_token and stream_key.