当前位置:网站首页>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
边栏推荐
- 开发说,“ 这个不用测,回归正常流程就行 “,测试人员怎么办?
- 2022年6月编程语言排行,第一名居然是它?!
- Want to open an account, is it safe to open an account of Huatai Securities online?
- MIT最新论文《对可解释特征的需求:动机和分类》:在机器学习模型的组成元素中建立可解释性
- 金融壹账通拟7月4日香港上市:2年亏近30亿 市值蒸发超90%
- 编译调试Net6源码
- Unittest框架中测试用例编写规范以及如何运行测试用例
- 谷歌新论文-Minerva:用语言模型解决定量推理问题
- Win平台下influxDB导出、导入
- 银行卡借给别人是否构成犯罪
猜你喜欢
JS基础--数据类型
Intel Labs announces new progress in integrated photonics research
编译调试Net6源码
田溯宁投的天润云上市:市值22亿港元 年利润下降75%
Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
Handling distributed transactions with powerful dbpack (PHP tutorial)
Brief analysis of edgedb architecture
“目标检测”+“视觉理解”实现对输入图像的理解及翻译(附源代码)
Combination of Oracle and JSON
Half of 2022 has passed, isn't it sudden?
随机推荐
金鱼哥RHCA回忆录:DO447使用Ansible与API通信--使用Ansible Tower API启动作业
Technology sharing | introduction to linkis parameters
LeetCode.515. 在每个树行中找最大值___逐一BFS+DFS+按层BFS
基金国际化的发展概况
Have the bosses ever done the operation of sink shunting and writing to Clickhouse or other databases.
Mutual conversion of pictures in fluent uint8list format and pictures in file format
CVPR 2022 | Virtual Correspondence: Humans as a Cue for Extreme-View Geometry
Brief analysis of edgedb architecture
Uncover the secrets of new products! Yadi Guanneng 3 multi product matrix to meet the travel needs of global users
Web foundation of network security note 02
网站源码整站下载 网站模板源代码下载
Unittest 框架介绍及第一个demo
The idea runs with an error command line is too long Shorten command line for...
Infinite innovation in cloud "vision" | the 2022 Alibaba cloud live summit was officially launched
How to realize the four isolation levels of MySQL (brief)
Several cases of index failure
提问:测试工程师应该具备哪些职业素养?
价值1000毕业设计校园信息发布平台网站源码
MySQL IN 和 NOT IN () 空列表报错
TEMPEST HDMI泄漏接收 5