当前位置:网站首页>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
边栏推荐
- 【雅思阅读】王希伟阅读P3(Heading)
- Hisilicon 3559 universal platform construction: YUV422 pit stepping record
- 两个数相互替换
- 【报错】 “TypeError: Cannot read properties of undefined (reading ‘split‘)“
- 圖解網絡:什麼是網關負載均衡協議GLBP?
- How many triangles are there in the golden K-line diagram?
- 1189. Maximum number of "balloons"
- Every time I look at the interface documents of my colleagues, I get confused and have a lot of problems...
- Summary of week 22-07-02
- Summer challenge brings you to play harmoniyos multi terminal piano performance
猜你喜欢
Oracle case: SMON rollback exception causes instance crash
Power operation and maintenance cloud platform: open the new mode of "unattended and few people on duty" of power system
Deux nombres se remplacent
两个数相互替换
Huawei employs data management experts with an annual salary of 2million! The 100 billion market behind it deserves attention
leetcode494,474
【雅思阅读】王希伟阅读P4(matching1)
Face recognition 5- insight face padding code practice notes
业务场景功能的继续修改
What did I pay for it transfer to testing post from confusion to firmness?
随机推荐
巩固表达式C# 案例简单变量运算
打新债开户注册安全吗?有没有风险的?靠谱吗?
22-07-02周总结
海思3559万能平台搭建:YUV422的踩坑记录
P4408 [NOI2003] 逃学的小孩(树的直径)
Summer challenge brings you to play harmoniyos multi terminal piano performance
URLs and URIs
[path planning] RRT adds dynamic model for trajectory planning
Cross domain request
How to effectively monitor the DC column head cabinet
js如何实现数组转树
[STM32] (I) overview and GPIO introduction
【报错】 “TypeError: Cannot read properties of undefined (reading ‘split‘)“
分布式BASE理论
企业应用业务场景,功能添加和修改C#源码
Oracle case: SMON rollback exception causes instance crash
Fs8b711s14 electric wine bottle opener MCU IC scheme development special integrated IC
Several simplified forms of lambda expression
[论文阅读] TUN-Det: A Novel Network for Thyroid Ultrasound Nodule Detection
Remember to build wheels repeatedly at one time (the setting instructions of obsidian plug-in are translated into Chinese)