没有合适的资源?快使用搜索试试~ 我知道了~
consensus bridging theory and practice
5星 · 超过95%的资源 需积分: 9 198 下载量 162 浏览量
2016-06-14
13:18:18
上传
评论
收藏 5.04MB PDF 举报
温馨提示
试读
258页
consensus bridging theory and practice
资源推荐
资源详情
资源评论
CONSENSUS: BRIDGING THEORY AND PRACTICE
A DISSERTATION
SUBMITTED TO THE DEPARTMENT OF COMPUTER SCIENCE
AND THE COMMITTEE ON GRADUATE STUDIES
OF STANFORD UNIVERSITY
IN PARTIAL FULFILLMENT OF THE REQUIREMENTS
FOR THE DEGREE OF
DOCTOR OF PHILOSOPHY
Diego Ongaro
August 2014
c
2014 Diego Ongaro
This work is licensed under the Creative Commons
Attribution 4.0 International License.
http://creativecommons.org/licenses/by/4.0/
This dissertation expands on a paper written by Diego Ongaro and John Ousterhout
entitled In Search of an Understandable Consensus Algorithm [89]. Most of the
paper’s content is included in some form in this dissertation. It is reproduced in
this dissertation and licensed under the Creative Commons Attribution license with
permission from John Ousterhout.
This dissertation is distributed by Stanford University online:
http://purl.stanford.edu/qr033xr6097
The L
A
T
E
X source files used to create this document are available online:
https://github.com/ongardie/dissertation/
ii
I certify that I have read this dissertation and that, in my opinion, it is fully adequate
in scope and quality as a dissertation for the degree of Doctor of Philosophy.
John Ousterhout, Principal Adviser
I certify that I have read this dissertation and that, in my opinion, it is fully adequate
in scope and quality as a dissertation for the degree of Doctor of Philosophy.
Mendel Rosenblum
I certify that I have read this dissertation and that, in my opinion, it is fully adequate
in scope and quality as a dissertation for the degree of Doctor of Philosophy.
David Mazi
`
eres
Approved for the Stanford University Committee on Graduate Studies.
Patricia J. Gumport, Vice Provost for Graduate Education
This signature page was generated electronically. An original signed hard
copy of the signature page is on file in Stanford University Archives.
iii
Abstract
Distributed consensus is fundamental to building fault-tolerant systems. It allows a collection of
machines to work as a coherent group that can survive the failures of some of its members. Unfortu-
nately, the most common consensus algorithm, Paxos, is widely regarded as difficult to understand
and implement correctly.
This dissertation presents a new consensus algorithm called Raft, which was designed for un-
derstandability. Raft first elects a server as leader, then concentrates all decision-making onto the
leader. These two basic steps are relatively independent and form a better structure than Paxos,
whose components are hard to separate. Raft elects a leader using voting and randomized timeouts.
The election guarantees that the leader already stores all the information it needs, so data only flows
outwards from the leader to other servers. Compared to other leader-based algorithms, this reduces
mechanism and simplifies the behavior. Once a leader is elected, it manages a replicated log. Raft
leverages a simple invariant on how logs grow to reduce the algorithm’s state space and accomplish
this task with minimal mechanism.
Raft is also more suitable than previous algorithms for real-world implementations. It performs
well enough for practical deployments, and it addresses all aspects of building a complete system,
including how to manage client interactions, how to change the cluster membership, and how to
compact the log when it grows too large. To change the cluster membership, Raft allows adding or
removing one server at a time (complex changes can be composed from these basic steps), and the
cluster continues servicing requests throughout the change.
We believe that Raft is superior to Paxos and other consensus algorithms, both for educational
purposes and as a foundation for implementation. Results from a user study demonstrate that Raft
is easier for students to learn than Paxos. The algorithm has been formally specified and proven,
its leader election algorithm works well in a variety of environments, and its performance is equiv-
alent to Multi-Paxos. Many implementations of Raft are now available, and several companies are
deploying Raft.
iv
剩余257页未读,继续阅读
资源评论
- 混蛋收容所已被注册2018-09-29很好的一篇论文,讲解的很深入和全面。
- Scape19892017-02-24一致性算法raft的博士论文,赞一个
- ed350072018-09-06一致性算法raft的博士论文,感谢啊,赞
- asonglsl2017-09-07一致性算法raft的博士论文,赞一个
renzhewh
- 粉丝: 39
- 资源: 101
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功