KeepMajority
Defined in: src/cluster/downing/KeepMajority.ts:23
“Keep majority” — if the reachable side has strictly more than half of the known members, the minority (unreachable) side is downed. The minority side, seeing itself in the minority, downs itself. Ties (exactly 50/50) stay pending — the operator must intervene or another strategy must take over.
With a role restriction only role-tagged members are counted; useful
when you run stateful and stateless nodes in the same cluster.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new KeepMajority(
settings?):KeepMajority
Defined in: src/cluster/downing/KeepMajority.ts:24
Parameters
Section titled “Parameters”settings?
Section titled “settings?”KeepMajoritySettings = {}
Returns
Section titled “Returns”KeepMajority
Methods
Section titled “Methods”decide()
Section titled “decide()”decide(
view):DowningDecision
Defined in: src/cluster/downing/KeepMajority.ts:26
Return addresses to forcibly down. The empty set means “not yet — wait for stability or more heartbeats”.