当前位置:网站首页>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
边栏推荐
- Complete knapsack problem (template)
- 1189. Maximum number of "balloons"
- The difference between string STR and new string
- [paper reading] cavemix: a simple data augmentation method for brain vision segmentation
- He worked as a foreign lead and paid off all the housing loans in a year
- Design of emergency lighting evacuation indication system for urban rail transit station
- JS how to realize array to tree
- How to avoid arc generation—— Aafd fault arc detector solves the problem for you
- uniapp上传头像
- Life is changeable, and the large intestine covers the small intestine. This time, I can really go home to see my daughter-in-law...
猜你喜欢

分布式BASE理论

初识ROS

leetcode494,474

青海省国家湿地公园功能区划数数据、全国湿地沼泽分布数据、全国省市县自然保护区

Robot reinforcement learning synergies between pushing and grassing with self supervised DRL (2018)

业务场景功能的继续修改

Parsing of XML

Get to know ROS for the first time

Significance of acrel EMS integrated energy efficiency platform in campus construction

圖解網絡:什麼是網關負載均衡協議GLBP?
随机推荐
[IELTS reading] Wang Xiwei reading P4 (matching1)
兩個數相互替換
It's too convenient. You can complete the code release and approval by nailing it!
实战模拟│JWT 登录认证
[IELTS reading] Wang Xiwei reading P3 (heading)
NPM install error forced installation
2022.07.03 (LC 6108 decryption message)
js如何实现数组转树
(脚本)一键部署redis任意版本 —— 筑梦之路
skimage: imread & imsave & imshow
URL和URI
Microservice
OpenHarmony资源管理详解
How many triangles are there in the golden K-line diagram?
Kibana index, mapping, document operation
Upload avatar on uniapp
22-07-02周总结
abc 258 G - Triangle(bitset)
How to avoid arc generation—— Aafd fault arc detector solves the problem for you
Identifiers and keywords