当前位置:网站首页>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
边栏推荐
- Every time I look at the interface documents of my colleagues, I get confused and have a lot of problems...
- Consolidated expression C case simple variable operation
- Insert sort of sort
- 【雅思阅读】王希伟阅读P4(matching2段落信息配对题【困难】)
- abc 258 G - Triangle(bitset)
- Huawei employs data management experts with an annual salary of 2million! The 100 billion market behind it deserves attention
- 【C】 (written examination questions) pointer and array, pointer
- 雅思考试流程、需要具体注意些什么、怎么复习?
- 打新债开户注册安全吗?有没有风险的?靠谱吗?
- A new method for analyzing the trend chart of London Silver
猜你喜欢
程序员SQL数据脚本编码能力弱,BI做不出来怎么办?
Date time type and format in MySQL
Reasons and solutions of redis cache penetration and avalanche
1189. Maximum number of "balloons"
【C】 (written examination questions) pointer and array, pointer
lambda表达式
Application of multi loop instrument in base station "switching to direct"
Consolidated expression C case simple variable operation
P3304 [sdoi2013] diameter (diameter of tree)
【雅思阅读】王希伟阅读P4(matching2段落信息配对题【困难】)
随机推荐
Tester's algorithm interview question - find mode
The difference between string STR and new string
Safety learning week4
npm install报错 强制安装
JS how to realize array to tree
AcWing164. 可达性统计(拓扑排序+bitset)
GDB常用命令
公司要上监控,Zabbix 和 Prometheus 怎么选?这么选准没错!
skimage: imread & imsave & imshow
Recursive execution mechanism
Microservice
||Interview questions you will encounter
He worked as a foreign lead and paid off all the housing loans in a year
巩固表达式C# 案例简单变量运算
const、volatile和restrict的作用和用法总结
【C】 (written examination questions) pointer and array, pointer
P4281 [AHOI2008]紧急集合 / 聚会(LCA)
打新债开户注册安全吗?有没有风险的?靠谱吗?
lambda expressions
P4281 [ahoi2008] emergency assembly / gathering (LCA)