当前位置:网站首页>Getting started with Paxos
Getting started with Paxos
2022-07-01 11:09:00 【Hua Weiyun】
Paxos The algorithm is Leslie - Lambert On 1990 A consistency algorithm based on message passing was proposed in .
wiki
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), The following two algorithms are proposed
- Multi Paxos
- Fast Paxos
边栏推荐
- y48.第三章 Kubernetes从入门到精通 -- Pod的状态和探针(二一)
- “目标检测”+“视觉理解”实现对输入图像的理解及翻译(附源代码)
- Mall applet source code open source version - two open
- PHP realizes lottery function
- 基金管理人的内部控制
- Guys, how to export iceberg data to MySQL? What tools are there? Neither sqoop nor dataX
- JS foundation -- data type
- Several cases of index failure
- Win平台下influxDB导出、导入
- PHP有哪些优势和劣势
猜你喜欢

y48.第三章 Kubernetes从入门到精通 -- Pod的状态和探针(二一)

Ten years of sharpening a sword: unveiling the secrets of ant group's observability platform antmonitor

TEMPEST HDMI泄漏接收 5

CVPR22 |CMT:CNN和Transformer的高效结合(开源)

BAIC bluevale: performance under pressure, extremely difficult period

CVPR 2022 | Virtual Correspondence: Humans as a Cue for Extreme-View Geometry

数据库实验报告(二)

kubernetes之ingress探索实践

Mall applet source code open source version - two open

The exclusive collection of China lunar exploration project is limited to sale!
随机推荐
LeetCode. One question of the day: offer II 091 Paint the house (DP problem)
Want to open an account, is it safe to open an account of Huatai Securities online?
CPI教程-异步接口创建及使用
价值1000毕业设计校园信息发布平台网站源码
sdp 协议中的packetization-mode方式和三种流传输模式
Google's new paper Minerva: solving quantitative reasoning problems with language models
数据库实验报告(二)
[.net6] use ml.net+onnx pre training model to liven the classic "Huaqiang buys melons" in station B
mysql如何把 一个数据库中的表数据 复制到 另一个数据库中(两个数据库不在同一个数据库链接下)
node版本管理器nvm安装及切换
flutter path_ Provider: ^2.0.10 can get temporary directory
How to realize the four isolation levels of MySQL (brief)
flutter path_provider: ^2.0.10可以获取临时目录
When is testing not unit testing- When is a Test not a Unit-test?
PHP有哪些优势和劣势
想请教一下,我在广州,到哪里开户比较好?现在网上开户安全么?
Compliance management of fund managers
Neurips 2022 | cell image segmentation competition officially launched!
数据库实验报告(一)
LeetCode.每日一题 剑指 Offer II 091. 粉刷房子 (DP问题)