These are chat archives for atomix/atomix
So thinking out loud, if I were to take a stab at implementing prioritized elections inside Raft, I'd look at the election protocol... Nodes' election timers timeout, they transition state and vote for themselves and then request votes from other nodes. Votes are granted if the candidate's log is as up to date as the voter's log.
I imagine one way to prioritize an election could be to add additional conditions to voters to prevent them from voting for nodes that are lower priority than themselves if their log is as up-to-date as the candidate's. Raft guarantees a majority of the nodes can win in an election. Rejecting vote requests by priority should cause the cluster to tend towards the highest priority leader.