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

ZooKeeper. Taming your server farm.

ZooKeeper. Taming your server farm.

The presentation was given on the local gathering of Ulyanovsk software engineers — ULCAMP::DEV (http://ulcamp.ru/dev) on April 5th, 2013.

Alexander Zhuravlev

April 05, 2013
Tweet

More Decks by Alexander Zhuravlev

Other Decks in Programming

Transcript

  1. “A distributed system is one in which the failure of

    a computer you didn't even know existed can render your own computer unusable.” — Laslie Lamport
  2. 1. The network is reliable. 2. Latency is zero. 3.

    Bandwidth is infinite. 4. The network is secure. 5. Topology doesn't change. 6. There is one administrator. 7. Transport cost is zero. 8. The network is homogeneous.
  3. “You can’t sacrifice partition tolerance. In the event of failures,

    which will this system sacrifice? Consistency or availability?” — Coda Hale
  4. “ZooKeeper is a centralized service for maintaining configuration information, naming,

    providing distributed synchronization, and providing group services”
  5. TIMELINE June 2007: First version, Yahoo Oct 2007: Sourceforge June

    2008: Move to Apache Nov 2010: Top level project
  6. TAO OF ZOOKEEPER ZooKeepers keep order ZooKeepers are reliable ZooKeepers

    are efficient ZooKeepers are timely ZooKeepers avoid contention ZooKeepers are ambition free
  7. FOLLOWER FOLLOWER LEADER ENSEMBLE CLIENT CLIENT CLIENT X=9 X=9 X=9

    getData “/X”, true SET WATCH return 9
  8. SHAMELESS PLUG If you are interested in learning about topics

    like this, get in touch with us, we are looking for interns [email protected]
  9. ATTRIBUTION Photos from "The Field Museum Library" http://www.flickr.com/photos/field_museum_library/3405476048/ http://www.flickr.com/photos/field_museum_library/3405475952/ http://www.flickr.com/photos/field_museum_library/4586895529/

    http://www.flickr.com/photos/field_museum_library/3404663989/ http://www.flickr.com/photos/field_museum_library/4986435461/ http://www.flickr.com/photos/field_museum_library/3795473195/ http://www.flickr.com/photos/field_museum_library/4986457001/ Photos from "Powerhouse Museum Collection" http://www.flickr.com/photos/powerhouse_museum/2759437054/ Throughput and latency graphs from Flavio Junqueira's presentation "Distributed Coordination via ZooKeeper": https://cwiki.apache.org/confluence/download/attachments/24193445/keynote-hic-2011-web.pdf