Skip to content

Daemon lifecycle and the reconcile loop

How a node starts, what one turn of its loop does, and what bounds the work in it. These pages are the mechanism behind a node's rhythm, which is what most "why is this node not doing anything" questions resolve to.

The daemon

flowchart LR
  subgraph PROC["XRATUD PROCESS"]
    direction TB
    PRB["Probe server<br/>up for the whole lifetime"]
    subgraph LOOP["RUN LOOP"]
      direction TB
      CY["One cycle<br/>five phases"]
      SL["Sleep<br/>interval or backoff"]
      CY --> SL --> CY
    end
  end
  DISK[("Volume<br/>seed, identity, cursor")]
  CP["Control plane"]
  K["Kernels"]
  DISK --- PROC
  CY -->|"outbound only"| CP
  CY -->|"dialled"| K

The probe server wraps the loop, and the loop is the only thing that reaches outward. What the process knows between restarts is on the disk beside it.

In this section