当前位置:网站首页>Getting started with Paxos
Getting started with Paxos
2022-07-05 00:36:00 【51CTO】
Leslie - Lambert On 1990 A consistency algorithm based on message passing was proposed in .
Basic-Paxos
Role Introduction
- Client Request originator , External role of the system
- Proposer receive Client request , Propose to the cluster . Play the role of conflict regulation
- Acceptor Propose votes and recipients , Only in the trip quorum (Quorum) when , The proposal will eventually be accepted .( Arbitration system )
- Learner Propose to the recipient , Backup , It has no impact on cluster consistency ( Don't vote )
Steps and stages
- 1、Prepare
Proposer Put forward a proposal , The number is N, this N Greater than this Proposer Previous proposal number . request acceptor Of quorum receive
- 2、Promise
If N More than that acceptor Any proposal number previously received is accepted , Otherwise, refuse
- 3、Accept
If we reach the majority ,proposer Will be issued acceptor request , This request contains the proposal number N, And the content
- 4、Accepted
If so acceptor No greater than... Was received during this period N Proposal for , Then accept the content of this proposal , Otherwise ignore
flow chart
- Some nodes fail , We can still reach a consensus
- Proposer Failure ,
Potential problems -- Live lock
Difficulty in realization , Low efficiency (2 round RPC)
Multi Paxos
Fast Paxos
边栏推荐
- MySQL uses the explain tool to view the execution plan
- 【报错】 “TypeError: Cannot read properties of undefined (reading ‘split‘)“
- XML的解析
- Five papers recommended for the new development of convolutional neural network in deep learning
- Summary of the function and usage of const, volatile and restrict
- 2022.07.03(LC_6109_知道秘密的人数)
- 企业应用业务场景,功能添加和修改C#源码
- Detailed explanation of openharmony resource management
- [Peking University] tensorflow2.0-1-opening
- Several simplified forms of lambda expression
猜你喜欢
How to avoid arc generation—— Aafd fault arc detector solves the problem for you
[IELTS reading] Wang Xiwei reads P4 (matching2 paragraph information matching question [difficult])
Oracle case: SMON rollback exception causes instance crash
同事的接口文档我每次看着就头大,毛病多多。。。
海思3559万能平台搭建:YUV422的踩坑记录
What did I pay for it transfer to testing post from confusion to firmness?
2022.07.03 (LC 6108 decryption message)
华为百万聘请数据治理专家!背后的千亿市场值得关注
【雅思阅读】王希伟阅读P4(matching1)
abc 258 G - Triangle(bitset)
随机推荐
[paper reading] Tun det: a novel network for meridian ultra sound nodule detection
AcWing164. 可达性统计(拓扑排序+bitset)
企业应用业务场景,功能添加和修改C#源码
海思3559万能平台搭建:YUV422的踩坑记录
Continuous modification of business scenario functions
6. Scala operator
Binary conversion problem
Skills in analyzing the trend chart of London Silver
Fs8b711s14 electric wine bottle opener MCU IC scheme development special integrated IC
Five papers recommended for the new development of convolutional neural network in deep learning
Hisilicon 3559 universal platform construction: YUV422 pit stepping record
How many triangles are there in the golden K-line diagram?
Application of fire fighting system based on 3D GIS platform
业务实现-日志写到同一个行数据里面
Parsing of XML
1189. Maximum number of "balloons"
JS how to realize array to tree
巩固表达式C# 案例简单变量运算
【雅思阅读】王希伟阅读P4(matching2段落信息配对题【困难】)
Actual combat simulation │ JWT login authentication