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

Intro to etcd

Chris Fidao
February 12, 2014

Intro to etcd

Covering what etcd is, what it's used for and a demo showing getting/setting data via the REST api, showing leader election and finally using the "watch" ability to watch for when a key's value is updated.

Chris Fidao

February 12, 2014

More Decks by Chris Fidao

Other Decks in Technology


  1. etcd Chris Fidao (how to propagate your mistakes to every

  2. what is etcd? Key-Value Storage key-a value-a key-b value-b user

    some-user password some-password
  3. what is etcd? • highly-available key-value store • written in

    Go • good for • shared configuration • service discovery • feature flags
  4. ok, so… what is etcd? highly-available key value store! Raft:

    A Distributed Consensus Protocol https://speakerdeck.com/benbjohnson/raft-the- understandable-distributed-consensus-protocol
  5. a cluster behind a proxy m f f etcd Proxy

    App A App B Web Proxy setups
  6. setups as part of each app/server App Server A m

    f App Server B f App Server C Web Proxy
  7. using etcd is it easy?! (yes) REST api! $ curl

    -X PUT \ -d “value=some-value” $ curl
  8. DEMO

  9. thnx @fideloper ServersForHackers.com https://github.com/fideloper/ Vaprobash/ Vaprobash! Vagrant Provisioning Bash Scripts