Skip to content

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.

new KeepMajority(settings?): KeepMajority

Defined in: src/cluster/downing/KeepMajority.ts:24

KeepMajoritySettings = {}

KeepMajority

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”.

ClusterPartitionView

DowningDecision

DowningProvider.decide