-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Newly added followers do not participate in quorum until they catch u…
…p with the log An opt-in ability of a cluster to ignore newly joined member until it catches up with the log: New = #{id => Id, ini_non_voter => ra:new_nvid()}, {ok, _, _} = ra:add_member(ServerRef, New), ok = ra:start_server(default, ClusterName, New, add_machine(), [ServerRef]), Voter status is stored in the cluster map of the server state and is part of every $ra_cluster_update. Additionally, nodes store their own status at the top level for ease of matching. Nodes also store their own satus in ra_state ETS table (breaking change), and present in overview. On every #append_entries_reply leader may choose to promote non-voter by issuing new `$ra_join` with desired voter status. Currently, only one promotion condition is implemented `{nonvoter, #{target := ra_index()}`. Non-voter will be promoted when it reaches the leaders log index at the time of joining.
- Loading branch information
Alex Valiushko
committed
Sep 14, 2023
1 parent
a67f2e6
commit 824fb46
Showing
11 changed files
with
735 additions
and
66 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
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
Oops, something went wrong.