forked from redpanda-data/redpanda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
r/consensus: prefer availability over voter priority
Redpanda Raft implementation exposes an API allowing to override a voter priority. This is used by the drain manager when a node is in maintenance mode. In current implementation when the only voter is in maintenance mode the Raft group is not able to elect a leader as the reported priority it to low (the priority override in maintenance is set to 0). Fixed Raft implementation to make sure that it prioritize an availability over the user priority preference. If a node is the only voter the priority override is ignored. Fixes: redpanda-data/cloudv2#6174 Signed-off-by: Michal Maslanka <[email protected]>
- Loading branch information
1 parent
e13a04d
commit 1b21f83
Showing
3 changed files
with
26 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters