Upgrade to Pro — share decks privately, control downloads, hide ads and more …

etcd & Raft

etcd & Raft

8dfa4d1af5c7bb536a71e68a749d41ce?s=128

Christine Koppelt

December 03, 2014
Tweet

Transcript

  1. etcd and Raft Christine Koppelt 3. December 2014

  2. CoreOS Source: https://coreos.com (modified)

  3. etcd etcd core-host4 core-host3 core-host2 core-host5 core-host1 Source: https://coreos.com/

  4. etcd Cluster etcd etcd etcd etcd etcd Leader Follower etcd

    etcd
  5. Client Interaction curl ­L http://127.0.0.1:4001/v2/keys/x ­XPUT ­d value="7" { "action":

    "set", "node": { "createdIndex": 2, "key": "/x", "modifiedIndex": 2, "value": "7" }, "prevNode": { "createdIndex": 1, "key": "/x", "value": "0", "modifiedIndex": 1 } }
  6. Writing an entry‒ Part 1

  7. Writing an entry‒ Part 2

  8. Log compaction & Snapshots Source: https://ramcloud.stanford.edu/raft.pdf (modified)

  9. Follower Crash etcd etcd etcd etcd etcd Leader Follower etcd

    etcd
  10. Leader Crash & Leader election etcd etcd etcd etcd etcd

    new Leader Follower etcd etcd
  11. Questions? @ckoppelt Christine.Koppelt@gmail.com