Hi Charlie,
It's a bit hard to handle preferences in who becomes leader in Raft,
since only a server with an up-to-date log is eligible. That puts two
orderings on the elections at once: log up-to-dateness and priority,
and sometimes these are in conflict. You might be able to get it to
elect a leader quickly in most cases, but it seems subtle and/or
fragile. I think the text you're referring to is the last paragraph of
Section 5.2 "Leader Election" in the paper or Section 3.4 in my
thesis.
My current thoughts on this are to leave elecctions alone but, if
there are preferences on who becomes leader, to do "transfer
leadership'' from one server to another. I describe what I think would
be a good approach to this in my thesis (
http://ramcloud.stanford.edu/~ongaro/thesis.pdf ):
- Section 3.10 "Leadership transfer extension" describes the idea.
- The last paragraph of Section 5.3.3 "Disruptive servers" adds a small tweak.
- Section 11.2.2 "Selecting a new leader and ensuring it has all
committed entries" discusses it again in the context of related work.
I like this approach because it doesn't mess with normal elections at
all, but it still leverages the safety of normal elections and falls
back to a normal election in case something goes wrong.
Best,
Diego
> --
> You received this message because you are subscribed to the Google Groups
> "raft-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
raft-dev+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.