Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Lecture 7: Raft (3) -- Snapshots, Linearizability, Duplicate Detection

课前阅读

spinnaker,全文

FAQ

  1. What is timeline consistency?
  2. When there is only 1 node up in the cohort, the paper says it鈥檚 still timeline consistency; how is that possible?
  3. What are the trade-offs of the different consistency levels?
  4. How does Spinnaker implement timeline reads, as opposed to consistent reads?
  5. Why are Spinnaker's timeline reads faster than its consistent reads, in Figure 8?
  6. Why do Spinnaker's consistent reads have much higher performance than Cassandra's quorum reads, in Figure 8?
  7. What is the CAP theorem about?
  8. Where does Spinnaker sit in the CAP scheme?
  9. Could Spinnaker use Raft as the replication protocol rather than Paxos?
  10. The paper mentions Paxos hadn't previously been used for database replication. What was it used for?
  11. What is the reason for logical truncation?
  12. What exactly is the key range (i.e. 'r') defined in the paper for leader election?
  13. Is there a more detailed description of Spinnaker's replication protocol somewhere?
  14. How does Spinnaker's leader election ensure there is at most one leader?
  15. Does Spinnaker have something corresponding to Raft's terms?
  16. Section 9.1 says that a Spinnaker leader replies to a consistent read without consulting the followers. How does the leader ensure that it is still the leader, so that it doesn't reply to a consistent read with stale data?
  17. Would it be possible to replace the use of Zookeeper with a Raft-like leader election protocol?
  18. What is the difference between a forced and a non-forced log write?
  19. Step 6 of Figure 7 seems to say that the candidate with the longest long gets to be the next leader. But in Raft we saw that this rule doesn't work, and that Raft has to use the more elaborate Election Restriction. Why can Spinnaker safely use longest log?

课堂讲义

讲义

作业

Please read the paper's Appendices. In Spinnaker a leader to responds to a client request after the leader and one follower have written a log record for the request on persistent storage. Why is this sufficient to guarantee strong consistency even after the leader or the one follower fail?

(This paper relies on Zookeeper, which we will read later.)