{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lec14-KeyValue

lec14-KeyValue - CS162 Operating Systems and Systems...

Info icon This preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
Lec 14.1 3/12 Anthony D. Joseph and Ion Stoica CS162 ©UCB Spring 2012 CS162 Operating Systems and Systems Programming Lecture 14 Key Value Storage Systems March 12, 2012 Anthony D. Joseph and Ion Stoica http://inst.eecs.berkeley.edu/~cs162
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Lec 14.2 3/12 Anthony D. Joseph and Ion Stoica CS162 ©UCB Spring 2012 Key Value Storage Handle huge volumes of data, e.g., PBs Store (key, value) tuples Simple interface put (key, value); // insert/write “value” associated with “key” value = get (key); // get/read data associated to “key” Used sometimes as a simpler but more scalable “database”
Image of page 2
Lec 14.3 3/12 Anthony D. Joseph and Ion Stoica CS162 ©UCB Spring 2012 Amazon: Key: customerID Value: customer profile (e.g., buying history, credit card, ..) Facebook, Twitter: Key: UserID Value: user profile (e.g., posting history, photos, friends, …) iCloud/iTunes: Key: Movie/song name Value: Movie, Song Key Values: Examples
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Lec 14.4 3/12 Anthony D. Joseph and Ion Stoica CS162 ©UCB Spring 2012 System Examples Amazon Dynamo: internal key value store used to power Amazon.com Simple Storage System (S3) BigTable/HBase/Hypertable: distributed, scalable data storage Cassandra : “distributed data management system” (developed by Facebook) Memcached: in-memory key-value store for small chunks of arbitrary data (strings, objects) eDonkey: peer-to-peer sharing system
Image of page 4
Lec 14.5 3/12 Anthony D. Joseph and Ion Stoica CS162 ©UCB Spring 2012 Key Value Store Also called a Distributed Hash Table (DHT) Main idea: distributed the hash table (key-values tuples) across many machines key, value
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Lec 14.6 3/12 Anthony D. Joseph and Ion Stoica CS162 ©UCB Spring 2012 Challenges Fault Tolerance: handle machine failures without losing data and without degradation in performance Scalability: Need to scale to thousands of machines Need to allow easy addition of new machines Consistency: maintain data consistency in face of node failures and message losses Heterogeneity (if deployed as peer-to-peer systems): Latency: 1ms to 1000ms Bandwidth: 32Kb/s to 100Mb/s
Image of page 6
Lec 14.7 3/12 Anthony D. Joseph and Ion Stoica CS162 ©UCB Spring 2012 Key Questions put(key, value): where do you store a new (key, value) tuple? get(key): where is the value associated with a given “key” stored? And, do the above while providing Fault Tolerance Scalability Consistency
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Lec 14.8 3/12 Anthony D. Joseph and Ion Stoica CS162 ©UCB Spring 2012 Directory-Based Architecture Have a node maintain the mapping between keys and the machines (nodes) that store the values associated with the keys N1 N2 N3 N50 K5 V5 K14 V14 K105 V105 K5 N2 K14 N3 K105 N50 Master/Directory put(K14, V14) put(K14, V 1 4 )
Image of page 8
Lec 14.9 3/12 Anthony D. Joseph and Ion Stoica CS162 ©UCB Spring 2012 Directory-Based Architecture Have a node maintain the mapping between keys and the machines (nodes) that store the values associated with the keys N1 N2 N3 N50 K5 V5 K14 V14 K105 V105 K5 N2 K14 N3 K105 N50 Master/Directory get(K14) get(K14) V14 V14
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Lec 14.10 3/12 Anthony D. Joseph and Ion Stoica CS162 ©UCB Spring 2012
Image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern