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
Tweet

More Decks by Chris Fidao

Other Decks in Technology

Transcript

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

    server)
  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 http://127.0.0.1:4001/v2/keys/some-key \ -d “value=some-value” $ curl http://127.0.0.1:4001/v2/keys/some-key
  8. DEMO

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