Skip to content

High availability and recovery

How roles divide the control plane's work at runtime, how leadership moves when a replica is lost, and how the loops recover what was left behind. Choosing a posture and sizing it is High availability; deploying it is Deploying the control plane.

A failover

flowchart LR
  subgraph R1["REPLICA 1, lost"]
    direction TB
    C1["controller"]
  end
  subgraph R2["REPLICA 2"]
    direction TB
    C2["controller<br/>new holder"]
    RC["Recovery controllers"]
    C2 --> RC
  end
  subgraph ST["STORE, survives"]
    direction TB
    L[("xratu-controller-manager<br/>lease")]
    Q[("Dispatch queue")]
    LED[("Assignment ledger")]
    RUNS[("Runs")]
  end
  C1 -. "stopped renewing" .-> L
  C2 ==>|"claims after expiry"| L
  RC --> Q
  RC --> LED
  RC --> RUNS

Nothing moves from the lost replica to the new holder. Everything the new holder needs is in the store, and the recovery controllers that run on it are the same loops that run every cycle.

In this section

  • HA topology covers the role vocabulary, the two skip answers, and what replication can and cannot duplicate.
  • Leadership and failover covers the lease, failover by expiry, and what survives it.
  • Recovery paths covers the five recovery controllers, why they are idempotent, and what the control plane does not recover.