Skip to content

The store

The store is where the control plane keeps what it knows, and it is the only state a control plane has. This page is where the store sits among the control-plane components, what fixes its shape, and what it grows with.

The store

flowchart LR
  subgraph POD["CONTROL-PLANE REPLICAS"]
    direction TB
    API["api"]
    CTL["controller"]
    SCH["scheduler"]
  end
  subgraph ST["THE STORE"]
    direction TB
    LATCH[("Identity latch<br/>backend, profile")]
    REC[("Metadata records")]
    LEASE[("Leases")]
  end
  subgraph YI["YOUR INFRASTRUCTURE"]
    direction TB
    B[("Bucket<br/>payload bodies")]
  end
  API --> REC
  CTL --> REC
  SCH --> REC
  CTL --> LEASE
  SCH --> LEASE
  REC -.->|"reference and digest"| B

Every role in every replica reads and writes the same store, so a replica holds no state of its own and any replica can replace another. The latch sits inside the store and pins what the store is, and the only relationship between the store and your bucket is a reference.

Backend and profile are latched

The store's backend and profile are fixed when the control plane is finalized, and recorded on the identity latch:

locked_db_backend     sqlite or postgres
locked_store_profile  lightweight, standard or durable

A runtime whose backend or profile disagrees with the latched values refuses to serve rather than starting against a different store. Changing either is a new finalization, not a configuration edit. See Control plane as source of truth.

What the store holds

The control plane is a metadata plane, and the store reflects that. It holds tenancy and governance records, run and assignment lineage, pinned version identities, policy snapshots and their digests, audit and history metadata, and object references for payload bodies.

Payload bodies live in your bucket. What the store holds for them is the reference and its digest, which is what allows a hosted control plane to record a run completely without reading anything it produced. See The tenant byte rule.

Each kind of record has one authority that writes it, so a record in an unexpected state has one place to look. See The store layer.

Sizing follows the profile

The three profiles differ in how durably a write is committed rather than in what is stored, so the choice trades write latency against how much a sudden loss of the host can cost. Because the profile is latched, it is chosen at finalization and carried for the life of that control plane. See Storage and persistence for the guarantees each profile makes.