ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission
Keeping RAFT Afloat Cloud Scale Distributed Consensus
Philip Haynes
YOW! Data September 2016
Keeping RAFT Afloat Cloud Scale Distributed Consensus Philip Haynes - - PowerPoint PPT Presentation
Keeping RAFT Afloat Cloud Scale Distributed Consensus Philip Haynes YOW! Data September 2016 ThreatMetrix Confidential Information Do Not Copy or Distribute Without Express Written Permission CONSENSUS? To the general public, consensus
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission
YOW! Data September 2016
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 2
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 3
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 4
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 5
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 6
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 7
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 8 *Our local experiment continues to support this view.
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 9
Odd number of servers to support voting 1. Request Vote RPC to elect leader 2. AppendEntry RPC to replicate log entries 3. When majority of followers append entries the log entry is committed and the state machine may be applied
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 10
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 11
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 12
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 13
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 14
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 15
200 300 400 500 600 700 0.000 0.005 0.010 0.015
Round Trip Time (ms) For 2 Followers (<750ms)
Time (ms) Density Histogram of Service Time (<50ms)
Time (ms) Frequency 15 20 25 30 35 40 45 50 5000 10000 15000
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 16
200 300 400 500 600 700 0.000 0.005 0.010 0.015
Round Trip Time (ms) Density Function (<750ms)
Time (ms) Density Follower 0 Follower 2
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 17
300 350 400 450 500 550 600 650 0.000 0.005 0.010 0.015
Round Trip Time (ms) For 2 Followers (<750ms)
Time (ms) Density
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 18
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 19
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 21
Histogram of Service Time (>100ms)
Time (ms) Frequency 100 150 200 250 10 20 30 40 50 60
ThreatMetrix Confidential Information – Do Not Copy or Distribute Without Express Written Permission 22
Histogram of Service Time (>100ms)
Time (ms) Frequency 100 150 200 250 10 20 30 40 50 60