Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Lecture 5: Raft (1)

课前阅读

In Search of an Understandable Consensus Algorithm (Extended Version), to end of Section 5

FAQ

  1. Does Raft sacrifice anything for simplicity?
  2. Is raft used in real-world software, or do companies generally roll their own flavor of Paxos (or use a different consensus protocol)?
  3. What is Paxos? In what sense is Raft simpler?
  4. How long had Paxos existed before the authors created Raft? How widespread is Raft's usage in production now?
  5. How does Raft's performance compare to Paxos in real-world applications?
  6. Why are we learning/implementing Raft instead of Paxos?
  7. Are there systems like Raft that can survive and continue to operate when only a minority of the cluster is active?
  8. In Raft, the service which is being replicated is not available to the clients during an election process. In practice how much of a problem does this cause?
  9. Are there other consensus systems that don't have leader-election pauses?
  10. How are Raft and VMware FT related?
  11. Why can't a malicious person take over a Raft server, or forge incorrect Raft messages?
  12. The paper mentions that Raft works under all non-Byzantine conditions. What are Byzantine conditions and why could they make Raft fail?
  13. In Figure 1, what does the interface between client and server look like?
  14. What if a client sends a request to a leader, the the leader crashes before sending the client request to all followers, and the new leader doesn't have the request in its log? Won't that cause the client request to be lost?
  15. If there's a network partition, can Raft end up with two leaders and split brain?
  16. Suppose a new leader is elected while the network is partitioned, but the old leader is in a different partition. How will the old leader know to stop committing new entries?
  17. When some servers have failed, does "majority" refer to a majority of the live servers, or a majority of all servers (even the dead ones)?
  18. What if the election timeout is too short? Will that cause Raft to malfunction?
  19. Why randomize election timeouts?
  20. Can a candidate declare itself the leader as soon as it receives votes from a majority, and not bother waiting for further RequestVote replies?
  21. Can a leader in Raft ever stop being a leader except by crashing?
  22. When are followers' log entries sent to their state machines?
  23. Should the leader wait for replies to AppendEntries RPCs?
  24. What happens if more than half of the servers die?
  25. Why is the Raft log 1-indexed?
  26. When network partition happens, wouldn't client requests in minority partitions be lost?
  27. Is the argument in 5.4.3 a complete proof?

课堂讲义

讲义

FAQ ANSWERS

作业

Suppose we have the scenario shown in the Raft paper's Figure 7: a cluster of seven servers, with the log contents shown. The first server crashes (the one at the top of the figure), and cannot be contacted. A leader election ensues. For each of the servers marked (a), (d), and (f), could that server be elected? If yes, which servers would vote for it? If no, what specific Raft mechanism(s) would prevent it from being elected?