Dynamo: Amazon's Highly Available Key-value Store Guiseppe DeCandia, Deniz Hastorun, Madan Jampani, Gunavardhan Kakulapati, Avinash Lakshman, Alex Pilchin,

Slides:



Advertisements
Similar presentations
Dynamo: Amazon’s Highly Available Key-value Store
Advertisements

Dynamo: Amazon’s Highly Available Key-value Store Slides taken from created by paper authors Giuseppe DeCandia, Deniz Hastorun,
Dynamo: Amazon’s Highly Available Key-value Store ID2210-VT13 Slides by Tallat M. Shafaat.
Case Study - Amazon. Amazon r Amazon has many Data Centers r Hundreds of services r Thousands of commodity machines r Millions of customers at peak times.
High throughput chain replication for read-mostly workloads
AMAZON’S KEY-VALUE STORE: DYNAMO DeCandia,Hastorun,Jampani, Kakulapati, Lakshman, Pilchin, Sivasubramanian, Vosshall, Vogels: Dynamo: Amazon's highly available.
D YNAMO : A MAZON ’ S H IGHLY A VAILABLE K EY - V ALUE S TORE Presented By Roni Hyam Ami Desai.
Distributed Hash Tables Chord and Dynamo Costin Raiciu, Advanced Topics in Distributed Systems 18/12/2012.
Amazon’s Dynamo Simple Cloud Storage. Foundations 1970 – E.F. Codd “A Relational Model of Data for Large Shared Data Banks”E.F. Codd –Idea of tabular.
Dynamo: Amazon's Highly Available Key-value Store Distributed Storage Systems CS presented by: Hussam Abu-Libdeh.
Amazon Fay Chang, Jeffrey Dean, Sanjay Ghemawat, Wilson C. Hsieh, Deborah A. Wallach, Mike Burrows, Tushar Chandra, Andrew Fikes, Robert E. Gruber Google,
Dynamo: Amazon’s Highly Available Key-value Store Adopted from slides and/or materials by paper authors (Giuseppe DeCandia, Deniz Hastorun, Madan Jampani,
1 Dynamo Amazon’s Highly Available Key-value Store Scott Dougan.
Dynamo Highly Available Key-Value Store 1Dennis Kafura – CS5204 – Operating Systems.
Dynamo Kay Ousterhout. Goals Small files Always writeable Low latency – Measured at 99.9 th percentile.
Dynamo: Amazon’s Highly Available Key- value Store (SOSP’07) Giuseppe DeCandia, Deniz Hastorun, Madan Jampani, Gunavardhan Kakulapati, Avinash Lakshman,
Rethinking Dynamo: Amazon’s Highly Available Key-value Store --An Offense Shih-Chi Chen Hongyu Gao.
Wide-area cooperative storage with CFS
Dynamo A presentation that look’s at Amazon’s Dynamo service (based on a research paper published by Amazon.com) as well as related cloud storage implementations.
CS162 Operating Systems and Systems Programming Key Value Storage Systems November 3, 2014 Ion Stoica.
IBM Haifa Research 1 The Cloud Trade Off IBM Haifa Research Storage Systems.
Amazon’s Dynamo System The material is taken from “Dynamo: Amazon’s Highly Available Key-value Store,” by G. DeCandia, D. Hastorun, M. Jampani, G. Kakulapati,
Dynamo: Amazon's Highly Available Key-value Store
Dynamo: Amazon’s Highly Available Key-value Store Giuseppe DeCandia, et.al., SOSP ‘07.
Cloud Storage – A look at Amazon’s Dyanmo A presentation that look’s at Amazon’s Dynamo service (based on a research paper published by Amazon.com) as.
Dynamo: Amazon’s Highly Available Key-value Store Presented By: Devarsh Patel 1CS5204 – Operating Systems.
EECS 262a Advanced Topics in Computer Systems Lecture 22 P2P Storage: Dynamo November 14 th, 2012 John Kubiatowicz and Anthony D. Joseph Electrical Engineering.
Distributed Data Stores – Facebook Presented by Ben Gooding University of Arkansas – April 21, 2015.
CSE 486/586, Spring 2012 CSE 486/586 Distributed Systems Case Study: Amazon Dynamo Steve Ko Computer Sciences and Engineering University at Buffalo.
Peer-to-Peer in the Datacenter: Amazon Dynamo Aaron Blankstein COS 461: Computer Networks Lectures: MW 10-10:50am in Architecture N101
Databases with Scalable capabilities Presented by Mike Trischetta.
Dynamo: Amazon’s Highly Available Key-value Store Giuseppe DeCandia et al. [Amazon.com] Jagrut Sharma CSCI-572 (Prof. Chris Mattmann)
Dynamo: Amazon’s Highly Available Key-value Store COSC7388 – Advanced Distributed Computing Presented By: Eshwar Rohit
Fault Tolerance via the State Machine Replication Approach Favian Contreras.
Depot: Cloud Storage with minimal Trust COSC 7388 – Advanced Distributed Computing Presentation By Sushil Joshi.
Cloud Computing Cloud Data Serving Systems Keke Chen.
Dynamo: Amazon's Highly Available Key-value Store Dr. Yingwu Zhu.
Dynamo: Amazon’s Highly Available Key-value Store DeCandia, Hastorun, Jampani, Kakulapati, Lakshman, Pilchin, Sivasubramanian, Vosshall, Vogels PRESENTED.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation Amazon’s Dynamo Lecturer.
D YNAMO : A MAZON ’ S H IGHLY A VAILABLE K EY - VALUE S TORE Presenters: Pourya Aliabadi Boshra Ardallani Paria Rakhshani 1 Professor : Dr Sheykh Esmaili.
Dynamo: Amazon’s Highly Available Key-value Store
Cassandra - A Decentralized Structured Storage System
CSE 486/586 CSE 486/586 Distributed Systems Case Study: Amazon Dynamo Steve Ko Computer Sciences and Engineering University at Buffalo.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation MongoDB Architecture.
Peer to Peer Networks Distributed Hash Tables Chord, Kelips, Dynamo Galen Marchetti, Cornell University.
The Replica Location Service The Globus Project™ And The DataGrid Project Copyright (c) 2002 University of Chicago and The University of Southern California.
Dynamo: Amazon’s Highly Available Key-value Store Giuseppe DeCandia, Deniz Hastorun, Madan Jampani, Gunavardhan Kakulapati, Avinash Lakshman, Alex Pilchin,
DYNAMO: AMAZON’S HIGHLY AVAILABLE KEY-VALUE STORE GIUSEPPE DECANDIA, DENIZ HASTORUN, MADAN JAMPANI, GUNAVARDHAN KAKULAPATI, AVINASH LAKSHMAN, ALEX PILCHIN,
Dynamo: Amazon’s Highly Available Key-value Store DAAS – Database as a service.
DynamoDB. Dynamo Amazon runs a world-wide web store that serves tens of millions of customers at peak times using tens of thousand servers located around.
Department of Computer Science, Johns Hopkins University EN Instructor: Randal Burns 24 September 2013 NoSQL Data Models and Systems.
Big Data Yuan Xue CS 292 Special topics on.
Kitsuregawa Laboratory Confidential. © 2007 Kitsuregawa Laboratory, IIS, University of Tokyo. [ hoshino] paper summary: dynamo 1 Dynamo: Amazon.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation Amazon’s Dynamo Lecturer.
Cofax Scalability Document Version Scaling Cofax in General The scalability of Cofax is directly related to the system software, hardware and network.
CS 540 Database Management Systems NoSQL & NewSQL Some slides due to Magda Balazinska 1.
CSCI5570 Large Scale Data Processing Systems NoSQL Slide Ack.: modified based on the slides from Peter Vosshall James Cheng CSE, CUHK.
CSCI5570 Large Scale Data Processing Systems
Amazon Simple Storage Service (S3)
CSE 486/586 Distributed Systems Case Study: Amazon Dynamo
CS 440 Database Management Systems
P2P: Storage.
Dynamo: Amazon’s Highly Available Key-value Store
Scaling Out Key-Value Storage
CS 440 Database Management Systems
Dynamo Recap Hadoop & Spark
EECS 498 Introduction to Distributed Systems Fall 2017
Key-Value Tables: Chord and DynamoDB (Lecture 16, cs262a)
Apollo Facebook is trying to address problems with latencies by switching to a NoSQL database called Apollo. Facebook created Apollo internally, and it.
CSE 486/586 Distributed Systems Case Study: Amazon Dynamo
Presentation transcript:

Dynamo: Amazon's Highly Available Key-value Store Guiseppe DeCandia, Deniz Hastorun, Madan Jampani, Gunavardhan Kakulapati, Avinash Lakshman, Alex Pilchin, Swami Sivasubramanian, Peter Vosshall, and Werner Vogels Presented by Steve Schlosser Big Data Reading Group October 1, 2007

What Dynamo is Dynamo is a highly available distributed key- value storage system  put(), get() interface  Sacrifices consistency for availability  Provides storage for some of Amazon's key products (e.g., shopping carts, best seller lists, etc.)‏  Uses “synthesis of well known techniques to achieve scalability and availability” Consistent hashing, object versioning, conflict resolution, etc.

Scale Amazon is busy during the holidays  Shopping cart: tens of millions of requests for 3 million checkouts in a single day  Session state system: 100,000s of concurrently active sessions Failure is common  Small but significant number of server and network failures at all times “Customers should be able to view and add items to their shopping cart even if disks are failing, network routes are flapping, or data centers are being destroyed by tornados.”

Flexibility Minimal need for manual administration Nodes can be added or removed without manual partitioning or redistribution Apps can control availability, consistency, cost- effectiveness, performance  Can developers know this up front?  Can it be changed over time?

Assumptions & requirements Simple query model  values are small (<1MB) binary objects No ACID properties  Weaker consistency  No isolation guarantees  Single key updates Stringent latency requirements  99.9th percentile Non-hostile environment

Service level agreements SLAs are used widely at Amazon Sub-services must meet strict SLAs  e.g., 300ms response time for 99.9% of requests at peak load of 500 requests/s  Average-case SLAs are not good enough  Mentioned a cost-benefit analysis that said 99.9% is the right number Rendering a single page can make requests to 150 services

Consistency Eventual consistency “Always writable”  Can always write to shopping cart  Pushes conflict resolution to reads Application-driven conflict resolution  e.g., merge conflicting shopping carts  Or Dynamo enforces last-writer-wins  How often does this work?

Other stuff Incremental scalability  Minimal management overhead Symmetry  No master/slave nodes Decentralized  Centralized control leads to too many failures Heterogeneity  Exploit capabilities of different nodes

Interface get(key) returns object replica(s) for key, plus a context object  context encodes metadata, opaque to caller put(key, context, object) stores object

Variant of consistent hashing A B C D E F G Key K Each node is assigned to multiple points in the ring (e.g., B, C, D store keyrange (A, B) # of points can be assigned based on node’s capacity If node becomes unavailable, load is distributed to others

Replication A B C D E F G Key K Coordinator for key K D stores (A, B], (B, C], (C, D] B maintains a preference list for each data item specifying nodes storing that item Preference list skips virtual nodes in favor of physical nodes

Data versioning put() can return before update is applied to all replicas Subsequent get()s can return older versions  This is okay for shopping carts  Branched versions are collapsed  Deleted items can resurface A vector clock is associated with each object version  Comparing vector clocks can determine whether two versions are parallel branches or causally ordered  Vector clocks passed by the context object in get()/put() Application must maintain this metadata?

Vector clock example

“Quorum-likeness” get() & put() driven by two parameters:  R: the minimum number of replicas to read  W: the minimum number of replicas to write R + W > N yields a “quorum-like” system Latency is dictated by the slowest R (or W) replicas Sloppy quorum to tolerate failures  Replicas can be stored on healthy nodes downstream in the ring, with metadata specifying that the replica should be sent to the intended recipient later

Adding and removing nodes Explicit commands issued via CLI or browser Gossip-style protocol propagates changes among nodes  New node chooses virtual nodes in the hash space

Implementation Persistent store either Berkeley DB Transactional Data Store, BDB Java Edition, MySQL, or in-memory buffer w/ persistent backend All in Java! Common N, R, W setting is (3, 2, 2) Results are from several hundred nodes configured as (3, 2, 2)  Not clear whether they run in a single datacenter…

One tick = 12 hours

One tick = 1 hour

One tick = 30 minutes During periods of high load popular objects dominate During periods of low load, fewer popular objects are accessed

Quantifying divergent versions In a 24 hour trace  99.94% of requests saw exactly one version  % received 2 versions  % received 3 versions  % received 4 versions Experience showed that diversion came usually from concurrent writers due to automated client programs (robots), not humans

Conclusions Scalable:  Easy to shovel in more capacity at Christmas Simple:  get()/put() maps well to Amazon’s workload Flexible:  Apps can set N, R, W to match their needs Inflexible:  Apps have to set N, R, W to match their needs  Apps may have to do their own conflict resolution  They claim it’s easy to set these – does this mean that there aren’t many interesting points? Interesting?