当前位置:网站首页>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
边栏推荐
- Face recognition 5- insight face padding code practice notes
- [论文阅读] TUN-Det: A Novel Network for Thyroid Ultrasound Nodule Detection
- Advanced template
- [Yocto RM]11 - Features
- Operator explanation
- Relationship between classes and objects
- uniapp微信小程序拿来即用的瀑布流布局demo2(方法二)(复制粘贴即可使用,无需做其他处理)
- uniapp上传头像
- Kibana index, mapping, document operation
- Leetcode70 (Advanced), 322
猜你喜欢
随机推荐
Get to know ROS for the first time
【selenium自动化】常用注解
Liangzai's first program life and annual summary in 2022
IELTS examination process, what to pay attention to and how to review?
[STM32] (I) overview and GPIO introduction
Ap8022 switching power supply small household appliances ACDC chip offline switching power supply IC
abc 258 G - Triangle(bitset)
NPM install error forced installation
7. Scala process control
Parameter passing mechanism of member methods
Complete knapsack problem (template)
Hill sort of sorting
Visual explanation of Newton iteration method
实战模拟│JWT 登录认证
Recursive execution mechanism
The pit of sizeof operator in C language
Leetcode70 (Advanced), 322
How to effectively monitor the DC column head cabinet
初识ROS
AcWing164. 可达性统计(拓扑排序+bitset)








