Skip to main content

nodedb_cluster/bootstrap/
mod.rs

1//! Cluster bootstrap and join protocol.
2//!
3//! Three startup paths:
4//!
5//! 1. **Bootstrap**: First seed node — creates topology, routing table, Raft groups,
6//!    persists to catalog. The cluster is born.
7//!
8//! 2. **Join**: New node contacts a seed, receives full cluster state via
9//!    `JoinResponse`, persists, and registers peers.
10//!
11//! 3. **Restart**: Node loads topology + routing from catalog, reconnects to
12//!    known peers.
13
14pub mod bootstrap_fn;
15pub mod config;
16pub mod handle_join;
17pub mod join;
18pub mod probe;
19pub mod restart;
20pub mod start;
21
22pub use config::{ClusterConfig, ClusterState, JoinRetryPolicy};
23pub use handle_join::handle_join_request;
24pub use start::start_cluster;