当前位置:网站首页>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
边栏推荐
- 22-07-02周总结
- Get to know ROS for the first time
- 模板的进阶
- Ap8022 switching power supply small household appliances ACDC chip offline switching power supply IC
- Skills in analyzing the trend chart of London Silver
- JS convert pseudo array to array
- [selenium automation] common notes
- 人脸识别5- insight-face-paddle-代码实战笔记
- 同事的接口文档我每次看着就头大,毛病多多。。。
- Is it safe to open and register new bonds? Is there any risk? Is it reliable?
猜你喜欢

Learn C language from scratch day 024

Face recognition 5- insight face padding code practice notes

【C】(笔试题)指针与数组,指针

【雅思阅读】王希伟阅读P3(Heading)

他做国外LEAD,用了一年时间,把所有房贷都还清了

abc 258 G - Triangle(bitset)

js如何实现数组转树

【雅思阅读】王希伟阅读P4(matching1)

Design of emergency lighting evacuation indication system for urban rail transit station

2022.07.03(LC_6111_统计放置房子的方式数)
随机推荐
Reasons and solutions of redis cache penetration and avalanche
C语言中sizeof操作符的坑
Ap8022 switching power supply small household appliances ACDC chip offline switching power supply IC
TS快速入门-函数
Upload avatar on uniapp
Learning of basic amplification circuit
分布式BASE理论
(脚本)一键部署redis任意版本 —— 筑梦之路
初识ROS
[paper reading] cavemix: a simple data augmentation method for brain vision segmentation
Application of fire fighting system based on 3D GIS platform
How to effectively monitor the DC column head cabinet
海思3559万能平台搭建:YUV422的踩坑记录
How many triangles are there in the golden K-line diagram?
The difference between string STR and new string
Introduction to ACM combination counting
Insert sort of sort
Summer challenge brings you to play harmoniyos multi terminal piano performance
兩個數相互替換
Complete knapsack problem (template)