Class ClusterCoordinator
Main cluster coordination service.
Runs a background loop: heartbeat → leader election → (if leader) dead-node detection + rebalance.
Non-leader nodes poll their assignments and start/stop modules accordingly.
public sealed class ClusterCoordinator : IClusterCoordinator
Inheritance
Implements
Properties
Methods
RebalanceAsync(CancellationToken)
Triggers an immediate rebalance (used by API or topology changes).
public Task RebalanceAsync(CancellationToken ct = default)
StartAsync(CancellationToken)
Starts the cluster coordination loop.
public Task StartAsync(CancellationToken ct = default)
StopAsync(CancellationToken)
Stops the cluster coordination loop and deregisters the node.
public Task StopAsync(CancellationToken ct = default)