CPC G07C 13/00 (2013.01) [G06F 11/187 (2013.01); G06N 20/00 (2019.01); H04L 9/0643 (2013.01); H04N 21/4758 (2013.01)] | 20 Claims |
1. A method comprising:
activating an elector in a group of participant nodes, wherein:
the group of participant nodes includes a leader node and a follower node,
the leader node is configured to replicate changes to a local object store to the follower node according to a consensus protocol,
the elector comprises an elector state data structure stored in a shared storage, and
the shared storage is accessible by each node in the group of participant nodes;
in response to a request for an election for leadership of the group of participant nodes from a particular participant node from the group of participant nodes, determining, by the particular participant node, whether the particular participant node will receive a vote from the elector based on contents of the elector state data structure;
in response to determining that the particular participant node will receive the vote from the elector, modifying the elector state data structure in the shared storage based on whether the particular participant node received the vote from the elector; and
determining a new leader for the group of participant nodes based at least in part on whether the particular participant node received the vote from the elector,
wherein the method is performed by one or more computing devices.
|