Skip to content

KeepOldest

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

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

new KeepOldest(settings?): KeepOldest

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

KeepOldestSettings = {}

KeepOldest

decide(view): DowningDecision

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

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

ClusterPartitionView

DowningDecision

DowningProvider.decide