跳转到内容
简体中文

KeepOldest

此内容尚不支持你的语言。

Defined in: src/cluster/downing/KeepOldest.ts:23

“Keep oldest” — whichever partition contains the oldest cluster member survives; the other side is downed. “Oldest” is the lowest address when addresses are compared lexicographically — consistent with the leader election in this project.

Which means the name promises something it does not deliver, and it is worth being blunt about it because an operator picks this strategy for its tiebreak: no join sequence travels in the gossip payload, so a member that joined a minute ago outranks one that has been up for a week whenever its address sorts lower. Choose it for a deterministic, agreed tiebreak and pin the address of the node that should survive — not in the expectation that a long-running coordinator wins (#525).

new KeepOldest(options?): KeepOldest

Defined in: src/cluster/downing/KeepOldest.ts:26

KeepOldestOptions = {}

KeepOldest

decide(view): DowningDecision

Defined in: src/cluster/downing/KeepOldest.ts:30

Return addresses to forcibly down. The empty set means “not yet — wait for stability or more heartbeats”.

ClusterPartitionView

DowningDecision

DowningProvider.decide