当前位置:网站首页>Paxos 入门
Paxos 入门
2022-07-01 11:04:00 【华为云】
Paxos 算法是莱斯利-兰伯特 于1990年提出的一种基于消息传递的一致性算法。
wiki
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
边栏推荐
- Handling distributed transactions with powerful dbpack (PHP tutorial)
- 力扣(LeetCode)181. 超过经理收入的员工(2022.06.29)
- 中国探月工程独家藏品限量发售!
- PHP realizes lottery function
- Dotnet console uses microsoft Maui. Getting started with graphics and skia
- A new round of popularity of digital collections opens
- Give up high paying jobs in Shenzhen and go back home
- Global filter (processing time format)
- 想请教一下,我在广州,到哪里开户比较好?现在网上开户安全么?
- LeetCode 438. Find all letter ectopic words in the string__ sliding window
猜你喜欢
CVPR 2022 | Virtual Correspondence: Humans as a Cue for Extreme-View Geometry
[AI information monthly] 350 + resources! All the information and trends that can't be missed in June are here! < Download attached >
[matytype] insert MathType inter line and intra line formulas in CSDN blog
Combinaison Oracle et json
[.net6] use ml.net+onnx pre training model to liven the classic "Huaqiang buys melons" in station B
Addition, deletion, modification and query of database
Applymiddleware principle
NeurIPS 2022 | 细胞图像分割竞赛正式启动!
Value 1000 graduation project campus information publishing platform website source code
MIT最新论文《对可解释特征的需求:动机和分类》:在机器学习模型的组成元素中建立可解释性
随机推荐
Want to open an account, is it safe to open an account of Huatai Securities online?
Project0:小游戏
PHP有哪些优势和劣势
Give up high paying jobs in Shenzhen and go back home
dotnet 控制台 使用 Microsoft.Maui.Graphics 配合 Skia 进行绘图入门
applyMiddleware 原理
Submission lottery - light application server essay solicitation activity (may) award announcement
英特尔实验室公布集成光子学研究新进展
Neurips 2022 | cell image segmentation competition officially launched!
Node version manager NVM installation and switching
I'd like to know where I can open an account in Guangzhou? Is it safe to open an account online now?
使用强大的DBPack处理分布式事务(PHP使用教程)
[paper reading] trajectory guided control prediction for end to end autonomous driving: a simple yet strong Ba
想请教一下,我在广州,到哪里开户比较好?现在网上开户安全么?
Global filter (processing time format)
Can I choose to open an account on CICC securities? Is it safe?
Huawei equipment is configured with large network WLAN basic services
2022年已经过去一半了,是不是很突然呢?
Compliance management of fund managers
Leetcode 181 Employees exceeding the manager's income (June 29, 2022)