KeepOldest
Ce contenu n’est pas encore disponible dans votre langue.
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).
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new KeepOldest(
options?):KeepOldest
Defined in: src/cluster/downing/KeepOldest.ts:26
Parameters
Section titled “Parameters”options?
Section titled “options?”KeepOldestOptions = {}
Returns
Section titled “Returns”KeepOldest
Methods
Section titled “Methods”decide()
Section titled “decide()”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”.
