OptionalhealthActive health-check configuration. When onCheck is provided,
SfuCluster.startHealthChecks polls each node on an interval and
marks it failed (triggering a rebalance) when the check returns false.
OptionalfailureThreshold?: numberConsecutive failed sweeps required before a node is marked failed. Higher values suppress flapping from a single transient timeout.
OptionalintervalMs?: numberInterval between health-check sweeps, in milliseconds.
OptionalonCheck?: (nodeId: string) => Promise<boolean>Probe returning whether the node with nodeId is currently healthy.
OptionalprobeTimeoutMs?: numberMilliseconds a single probe may run before being treated as failed. Guards against a hung probe wedging a node.
OptionalrecoveryThreshold?: numberConsecutive passing sweeps required before a failed node is marked recovered.
OptionalloggerLogger used for cluster-level diagnostics. Defaults to a no-op logger.
OptionalmembershipOptional membership source. When provided, the cluster reconciles its node set against it automatically, adding and removing nodes as membership changes.
OptionalnodeFactory that builds an SfuNode from membership NodeInfo. Only used when SfuClusterOptions.membership is set.
OptionalonCallback invoked for each drained or failed node during a rebalance, so the host can migrate that node's rooms elsewhere.
OptionalplacementNode-selection policy used by SfuCluster.assignNode.
a new LeastLoadedStrategy
Construction options for an SfuCluster.