Cluster Operations
Introspection
SHOW CLUSTER;
SHOW NODES;
SHOW RAFT GROUPS;
Adding Nodes
New nodes join the cluster and receive vShard assignments during rebalancing.
Shard Rebalancing
When nodes join or leave, vShards redistribute automatically:
- Coordinator selects vShards based on load metrics
- Target node replicates the vShard's data
- Ownership transfers atomically
- Old node drops the vShard data
Transparent to clients — requests forward during migration.
Rolling Upgrades
- Drain a node (move its vShard leadership to other nodes)
- Upgrade the binary
- Restart the node
- Repeat for each node
Raft leader election handles temporary unavailability.
Failure Recovery
- Single node failure — Raft elects new leaders for affected vShards
- Minority failure — Cluster remains available with quorum
- Majority failure — Cluster becomes read-only until quorum restores