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

The Persistence of Data

The Persistence of Data

Slides from my talk at http://www.nycsoftware.org/events/59254322/ in New York City.

Tom Santero

August 16, 2012
Tweet

More Decks by Tom Santero

Other Decks in Technology

Transcript

  1. $

  2. whoami $ Name: Tom Santero $ ./presentation Title: Technical Evangelist

    Company: Basho Technologies Twitter: @tsantero
  3. Consistent Hashing • 160-bit integer keyspace • divided into !xed

    number of evenly-sized partitions 32 partitions 0 2160/2 2160/4
  4. Consistent Hashing • 160-bit integer keyspace • divided into !xed

    number of evenly-sized partitions • partitions are claimed by nodes in the cluster 32 partitions node 0 node 1 node 2 node 3 0 2160/2 2160/4
  5. Consistent Hashing • 160-bit integer keyspace • divided into !xed

    number of evenly-sized partitions • partitions are claimed by nodes in the cluster • replicas go to the N partitions following the key node 0 node 1 node 2 node 3
  6. Consistent Hashing • 160-bit integer keyspace • divided into !xed

    number of evenly-sized partitions • partitions are claimed by nodes in the cluster • replicas go to the N partitions following the key node 0 node 1 node 2 node 3 hash(“meetups/NYSE”) N=3
  7. Add twice as much X to get twice as much

    Y horizontal scalability
  8. Add twice as much X to get twice as much

    Y horizontal scalability vertical scalability
  9. Disaster Scenario • node fails • requests go to fallback

    hash(“meetups/NYSE”) X X X X X X X X
  10. Disaster Scenario • node fails • requests go to fallback

    • node comes back hash(“meetups/NYSE”)
  11. Disaster Scenario • node fails • requests go to fallback

    • node comes back • “Hando"” - data returns to recovered node hash(“meetups/NYSE”)
  12. Disaster Scenario • node fails • requests go to fallback

    • node comes back • “Hando"” - data returns to recovered node • normal operations resume hash(“meetups/NYSE”)