Scaling and rebalancing
Scaling a confidential service usually means provisioning a new TDX VM, attesting it by hand, copying keys onto it and moving data in a maintenance window. On Calimero a new node attests itself to get its keys, and the cluster moves replicas onto it while the apps keep serving.
How a cluster grows
Section titled “How a cluster grows”- A node is added. It boots the attested image and gets the cluster’s storage key from mero-kms only after its attestation matches the signed release.
- The rebalancer moves replicas. Calimero’s rebalancer reads the cluster’s placement (ids and counts only, never
app data) and makes one move at a time, in this order:
- drain nodes that are leaving,
- replicate each app up to three replicas (or as many eligible nodes as there are),
- balance apps evenly across nodes and zones.
- The move is live. The new node joins the app’s Raft group as a learner, catches up, and becomes a voter; the node it replaces then stops the group and deletes its copy. Reads and writes continue throughout. See Replica moves.
- Drained nodes go away. A node that has been drained and holds no replica is removed, and its VM deleted.
Moves follow your approvals
Section titled “Moves follow your approvals”A move is how data would reach a new machine, so it obeys the same rule as anything else: an app’s replica can move only onto a node running a release approved for that app. A node on an unapproved image is skipped, and the app stays where it is. See Your data, your decision and The operator & the Ops API.