Skip to main content

nodedb_cluster/bootstrap/
mod.rs

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