Hi Heidi,
With apologies to Barbara, James, and Brian. VR introduced some great
ideas, and VRR was a huge improvement in clarity. I think the industry
would be in a better place now with respect to consensus if it had
paid less attention to Paxos and more to VR.
You're right, Heidi, that Raft and VR/VRR are similar, and we
acknowledge this in the first page of the paper.
At a high level, you could argue they're exactly the same. Lamport
would probably call them both Paxos. Their messaging pattern is
similar. Why they work is similar, and their proofs of correctness
could be similar.
At a low level, you could argue they're very different. Raft's
mechanism is compact (VRR uses 10 message types where Raft uses 4 to
accomplish the same tasks). Raft spells out how to do leader election
with randomized timeouts and how to avoid transferring entire logs.
And of course membership changes are entirely different.
Now (2015), there's a huge difference in completeness. Raft has
several implementations including membership changes and log
compaction, some evaluation, a proof or two, my dissertation (a lot of
discussion about design choices), and many online resources to help
people learn. I don't think VR/VRR is competitive with any of that
currently. For example, I just searched GitHub for "Viewstamped
Replication" and found only one project; searching "VRR" yields noise.
Paper-wise, I'm biased, but I think the Raft paper is more accessible
to beginners. That's because the Raft paper explains the why, and the
VRR paper just tells you the what.
I also think the leader election algorithm in the original VR is
better than in VRR. I discuss this in the related work in my
dissertation. The original VR has the view manager tell the new leader
to start, yes, but it doesn't have to transmit any log entries. And I
still don't feel great about the leader being a function of the view
(term) number. It feels misleading, since of course different servers
might be in different views, especially during leader changes. But I
haven't implemented or evaluated that approach.
We (John and I) actually didn't know about the VRR paper until after
we had started Raft. I think the earliest time someone mentioned it to
us was three days before our first paper submission on Raft, in
September 2012, buried in an email with a bunch of other pointers.
Would we have used VRR instead of creating Raft if we knew abut it in
time? I'm not sure, but it definitely would have been a better
starting point for us.
Know of any performance evaluation between these two protocols? Nope.
Normal-case operation would be the same, so you'd probably have to
compare leader changes. And I feel like that depends on the details of
how you "optimize" VRR, so I don't know if it'd be apples-to-apples.
Hope I haven't offended anyone, and hope this helps,
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.