Expand description
Cluster bootstrap and join protocol.
Three startup paths:
-
Bootstrap: First seed node — creates topology, routing table, Raft groups, persists to catalog. The cluster is born.
-
Join: New node contacts a seed, receives full cluster state via
JoinResponse, persists, and registers peers. -
Restart: Node loads topology + routing from catalog, reconnects to known peers.
Structs§
- Cluster
Config - Configuration for cluster formation.
- Cluster
State - Result of cluster startup — everything needed to run the Raft loop.
Functions§
- handle_
join_ request - Build a JoinResponse from current cluster state.
- start_
cluster - Start the cluster — bootstrap, join, or restart depending on state.