Files
scoutfs/kmod
Auke Kok 5f77e135a9 Avoid taking over lead from a healthy leader at rejoin.
A partitioned cluster may have members attempt elections while
partitioned off from a healthy cluster. These members degrade from
server to follower and can hold elections in rapid succession, but
never win. Fencing should shut them down regardless within a certain
amount of time, but they may already hold elections and record them
as incremented TERMs.

When rejoining the quorum with a higher TERM they tend to usurp
a healthy leader, but, there is no reason to. We can postpone this
by carefully looking at heartbeats and what is in the quorum blocks.
These followers will not have been elected with a TERM higher than
the one we may hear heartbeats from.

Signed-off-by: Auke Kok <auke.kok@versity.com>
2026-08-05 12:39:07 -07:00
..