当前位置:网站首页>Paxos 入门
Paxos 入门
2022-07-05 00:36:00 【51CTO】
莱斯利-兰伯特 于1990年提出的一种基于消息传递的一致性算法。
Basic-Paxos
角色介绍
- Client 请求发起者,系统外部角色
- Proposer 接收Client请求,向集群提出提议。起到冲突调节的作用
- Acceptor 提出议票和接受者,只有在行程法定人数(Quorum)时,提议才会最终被接受。(仲裁系统)
- Learner 提议接受者,备份,对集群一致性没有影响(不参与投票)
步骤和阶段
- 1、Prepare
Proposer提出一个提案,编号为N,此N大于这个Proposer之前提出提案编号。请求acceptor的quorum接收
- 2、Promise
如果N大于此acceptor之前接收的任何提案编号则接受,否则拒绝
- 3、Accept
如果达到了多数派,proposer会发出acceptor请求,此请求包含提案编号N,以及内容
- 4、Accepted
如果此acceptor在此期间没有收到任何大于N的提案,则接受此提案的内容,否则忽略
流程图
- 部分节点失效,还是可以达成共识
- Proposer失败,
潜在问题--活锁
实现难,效率低(2轮RPC)
Multi Paxos
Fast Paxos
边栏推荐
- TS快速入门-函数
- Get to know ROS for the first time
- abc 258 G - Triangle(bitset)
- [Yocto RM]11 - Features
- P4281 [ahoi2008] emergency assembly / gathering (LCA)
- Design of emergency lighting evacuation indication system for urban rail transit station
- PyTorch: In-place Operation
- Verilog tutorial (11) initial block in Verilog
- Application of fire fighting system based on 3D GIS platform
- 华为200万年薪聘请数据治理专家!背后的千亿市场值得关注
猜你喜欢
Sorting selection sorting
2022.07.03 (LC 6108 decryption message)
公司要上监控,Zabbix 和 Prometheus 怎么选?这么选准没错!
Two numbers replace each other
Application of fire fighting system based on 3D GIS platform
How to avoid arc generation—— Aafd fault arc detector solves the problem for you
Illustrated network: what is gateway load balancing protocol GLBP?
abc 258 G - Triangle(bitset)
Every time I look at the interface documents of my colleagues, I get confused and have a lot of problems...
雅思考试流程、需要具体注意些什么、怎么复习?
随机推荐
IT转测试岗,从迷茫到坚定我究竟付出了什么?
lambda表达式
skimage: imread & imsave & imshow
Hologres query management and timeout processing
Huawei employs data management experts with an annual salary of 2million! The 100 billion market behind it deserves attention
他做国外LEAD,用了一年时间,把所有房贷都还清了
Get to know ROS for the first time
P4281 [AHOI2008]紧急集合 / 聚会(LCA)
Relationship between classes and objects
人生无常,大肠包小肠, 这次真的可以回家看媳妇去了。。。
兩個數相互替換
Deux nombres se remplacent
P4281 [ahoi2008] emergency assembly / gathering (LCA)
abc 258 G - Triangle(bitset)
Complete knapsack problem (template)
基本放大电路的学习
Robot reinforcement learning synergies between pushing and grassing with self supervised DRL (2018)
URL和URI
[paper reading] Tun det: a novel network for meridian ultra sound nodule detection
公司要上监控,Zabbix 和 Prometheus 怎么选?这么选准没错!