Expand description
Cluster (multi-node) mode startup orchestrator.
StructsΒ§
EnumsΒ§
- Cluster
Startup Error - Discovery
Impl π - Enum dispatch β
Discoverytrait usesasync fn(not dyn-compatible).
FunctionsΒ§
- build_
shuffle_ πreceiver - Bind the ShuffleReceiver. When gossip discovery is active, publish
the bound address under
SHUFFLE_ADDR_KEYso peer senders can discover it on first send. - build_
shuffle_ πsender - Build an outbound shuffle sender. When gossip discovery is active,
publish
advertise_addrunderSHUFFLE_ADDR_KEYso peers find us, and give the sender a KV handle for reverse lookup. Static discovery has no KV tier, so we hand back a bare sender β peers must be registered explicitly by whatever sets up the shuffle topology. - num_
cpus π - resolve_
vnode_ πassignment - Boot-time vnode assignment. If an
AssignmentSnapshotexists in shared storage (written by a prior cluster incarnation or a peer that raced here first), every node adopts it β the fresh node doesnβt fight over vnodes that are already claimed. Otherwise we compute a round-robin split of this nodeβs known peers and CAS-create the snapshot; losers of the CAS race re-load and adopt. - shuffle_
advertise_ πaddr - Compute the address peers should use to reach our
ShuffleReceiver. - spawn_
membership_ πwatcher - Watches membership changes and logs peer join/leave/crash events.
- start_
cluster - Start a LaminarDB server in cluster (multi-node) mode.