您好,欢迎光临本网站![请登录][注册会员]  
文件名称: Paxos implementation
  所属分类: 其它
  开发工具:
  文件大小: 535kb
  下载次数: 0
  上传时间: 2019-03-02
  提 供 者: tal****
 详细说明:raft simplify Paxos algorithm you deserved it since it so powfulThe Paxos Approach Decompose the problem · Basic Paxos(“ single decree") One or more servers propose values System must agree on a single value as chosen Only one value is ever chosen o Muti-Paxos Combine several instances of basic paxos to agree on a series of values forming the log March 1.2013 Implementing Replicated Logs with Paxos Slide 3 Requirements for Basic Paxos Safety Only a single value may be chosen a server never learns that a value has been chosen unless it really has been o Liveness(as long as majority of servers up and communicating with reasonable timeliness) Some proposed value is eventually chosen If a value is chosen, servers eventually learn about it The term"consensus problem"typically refers to this single-value formulation March 1.2013 Implementing Replicated Logs with Paxos Slide 4 Paxos Components Proposers Active: put forth particular values to be chosen Handle client requests Acceptors Passive: respond to messages from proposers Responses represent votes that form consensus Store chosen value, state of the decision process Want to know which value was chosen For this presentation Each Paxos server contains both components March 1.2013 Implementing Replicated Logs with Paxos Slide 5 Strawman: Single Acceptor Simple(incorrect) approach Proposers a single acceptor chooses value o What if acceptor crashes add )(jmp( shl )(sub after choosing? e Solution: quorum Acceptor Multiple acceptors (3, 5,..) Value v is chosen if accepted by mp majority of acceptors If one acceptor crashes, chosen value still available March 1.2013 mplementing Replicated Logs with PaXos Slide 6 Problem: Split Votes Acceptor accepts only first value it receives? o If simultaneous proposals, no value might be chosen accept?(red) accepted(red accepted(red 2 accept? (blue) accepted(blue) accepted(blue) accept? (green) accepted(green) 5 time Acceptors must sometimes accept multiple(different) values March 1.2013 mplementing Replicated Logs with PaXos Slide 7 Problem: Conflicting Choices Acceptor accepts every value it receives? Could choose multiple values Red chosen accept? (red)I accepted(red) accepted(red 2 H accepted(red)i i accepted (blue ) 3 i accepted (blue S, i accepted(blue) 5 t accept? (blue) time Blue Chosen Once a value has been chosen, future proposals must propose/choose that same value(2-phase protocol) March 1.2013 Implementing Replicated Logs with Paxos Slide 8 Conflicting Choices, cont'd Red chosen?? accept? (red)accepted (red accepted (red)H 2 ..·····..........······· i accepted(blue) accepted(red accepted(blue) 4 .·。。· accepted (blue) prop(blue) time Blue chosen o Ss neednt propose red (it hasnt been chosen yet) S,s proposal must be aborted(s3 must reject it) Must order proposals, reject old ones March 1.2013 mplementing Replicated Logs with PaXos Slide 9 Proposal Numbers o Each proposal has a unique number Higher numbers take priority over lower numbers It must be possible for a proposer to choose a new proposal number higher than anything it has seen/used before One simple approach: Proposal number Round Number Server ld Each server stores maxRound the largest round number it has seen so far To generate a new proposal number ●| increment maxround Concatenate with Server d Proposers must persist max Round on disk must not reuse proposal numbers after crash/restart March 1.2013 Implementing Replicated Logs with Paxos Slide 10
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: paxos
 输入关键字,在本站1000多万海量源码库中尽情搜索: