Backend and profile latching¶
Two storage choices are fixed when a control plane is finalized: which backend it runs on and which durability profile it uses. Both are recorded on the identity latch, and both are checked on every startup.
The two latched values¶
Each is validated against its closed set at activation, so an unrecognised value cannot be latched and discovered later.
Startup checks validity, then parity¶
flowchart TB
A["Latch resolved"]
B["Latched values recognised?"]
C["Do they match what the runtime has?"]
D["Serve"]
E["Refuse with 503"]
A --> B
B -->|no| E
B -->|yes| C
C -->|no| E
C -->|yes| D
Where the two values come from¶
flowchart LR
subgraph ST["STORE"]
direction TB
LT[("Identity latch<br/>locked_db_backend,<br/>locked_store_profile")]
end
subgraph RT["STARTING RUNTIME"]
direction TB
OB["Observed backend<br/>and profile"]
end
CMP{{"Startup check<br/>validity, then parity"}}
LT -->|"latched"| CMP
OB -->|"observed"| CMP
CMP -->|"match"| SV["Serve"]
CMP -.->|"drift"| RF["503"]
One value is read from the store and one from the runtime that is starting, and the check compares them before anything is served.
Drift is refused with both values named:
A latch that was never set correctly and a runtime pointed at the wrong store are different problems, and the two checks keep them distinguishable. See Finalization invariants and fail-closed startup.
The profiles differ in durability, not in content¶
The three profiles store the same things. What changes is how durably a write is committed, which trades write latency against how much a sudden loss of the host can cost.
| Profile | Suits |
|---|---|
lightweight |
Development and evaluation, where throughput matters more than a lost write |
standard |
The ordinary production choice |
durable |
Deployments where a write must survive an abrupt host loss |
Why these are latched rather than configured¶
A deployment's records were written under a backend and a profile. Changing either without a new identity would produce a control plane whose records claim a continuity they do not have.
Latching makes that state unreachable. Changing the backend or the profile is a
new finalization, and an attempt to change a latched value is refused with
CONTROL_PLANE_IDENTITY_LATCH_IMMUTABLE. See
Control-plane identity latch.
Choosing before you finalize¶
The profile is the one storage decision that cannot be revisited in place, so it is worth making deliberately. The question it answers is how much a lost write costs this deployment, and the answer differs between an evaluation environment and a production control plane holding governance records.
Node behaviour is unaffected. The latch governs the control plane's own store; what nodes hold and how they spool is theirs. See What continues while the control plane link is down.
The latch is also the node's anchor¶
A node's registration carries the cp_instance_uuid it enrolled against, so
the same latch that prevents a store swap also prevents a node from silently
attaching to a different control plane at the same endpoint.