pub struct ClusterConfig {
pub node_name: String,
pub listen_address: SocketAddr,
pub seed_nodes: Vec<SocketAddr>,
pub cookie: String,
}Expand description
Beamr distribution for copies of one server on a trusted network.
Federation provides the network between servers; a cluster joins replicas of the same server using an explicitly configured shared secret cookie.
Fields§
§node_name: StringUnique node name advertised to the beamr distribution cluster.
listen_address: SocketAddrSocket address this node binds for inbound distribution links from peers.
This is distinct from ServerConfig::listen_address (the client wire
port): a clustered node listens on two ports — one for clients, one for
peer distribution traffic.
seed_nodes: Vec<SocketAddr>Seed node socket addresses used to join an existing cluster.
Required secret distribution handshake cookie. Every node in a cluster
must explicitly set the same cookie or the OTP handshake is rejected.
An omitted cookie fails deserialization; an empty cookie or the public
DEFAULT_COOKIE fails configuration validation.