为什么 Leader 要提交之前任期的日志?
因为 Leader 复制先前任期的日志时,不将日志的任期修改为当前任期。因此会出现先前任期的日志被复制到多数派,但仍未提交的情况。只有当前任期的日志被复制到多数派才算提交,Log Matching Property 确保了当前日志被提交时所有之前的日志均被提交。
节点的
currentTerm是否一定和本地 log 中最新的 entry 的任期相同?不一定。
currentTerm在选举时递增,会存在currentTerm比 log 的 term 更新的情况。
[Paper Note] in Search of an Understandable Consensus Algorithm
[Paper Note] ZooKeeper Wait-Free Coordination for Internet-Scale Systems
Redis Cluster 的设计
[Paper Note] F4 Facebook’s Warm BLOB Storage System
背景
Facebook 的 BLOB(Binary Large OBject)工作负载有以下特征:
- Write Once Read Many
- 冷热分区
- 不可变数据
Finding a needle in haystack Facebook’s photo storage 的目标是高 IOPS,但存储成本高。面对冷热分区的工作负载,Facebook 设计了暖存储系统 f4,专为第存储成本和高容错设计,填补 Facebook BLOB 存储系统的最后一块拼图。
![Featured image for [Paper Note] ZooKeeper wait-free coordination for internet-scale systems](/posts/zookeeper-wait-free-coordination-for-internet-scale-systems/images/ZooKeeper-componets.png)

![Featured image for [Paper Note] f4 Facebook’s Warm BLOB Storage System](/posts/f4-facebooks-warm-blob-storage-system/images/overall-blob-storage-architecture.png)
