Managing Update Conflicts in Bayou. Lucy Youxuan Jiang, Hiwot Tadese Kassa

Similar documents
G Bayou: A Weakly Connected Replicated Storage System. Robert Grimm New York University

Managing Update Conflicts in Bayou, a Weakly Connected Replicated Storage System

Distributed Systems 8L for Part IB. Additional Material (Case Studies) Dr. Steven Hand

Anti-entropy works as follows: periodically, a server P randomly chooses a server Q and then the two exchange databases. Three modes of anti-entropy a

Important Lessons. Today's Lecture. Two Views of Distributed Systems

Anti-entropy works as follows: periodically, a server P randomly chooses a server Q and then the two exchange databases. Three modes of anti-entropy a

Linearizability CMPT 401. Sequential Consistency. Passive Replication

Decentralized Replication Mechanisms in Deno

Availability versus consistency. Eventual Consistency: Bayou. Eventual consistency. Bayou: A Weakly Connected Replicated Storage System

CS6450: Distributed Systems Lecture 13. Ryan Stutsman

Last Class: Web Caching. Today: More on Consistency

CS /15/16. Paul Krzyzanowski 1. Question 1. Distributed Systems 2016 Exam 2 Review. Question 3. Question 2. Question 5.

BRANCH:IT FINAL YEAR SEVENTH SEM SUBJECT: MOBILE COMPUTING UNIT-IV: MOBILE DATA MANAGEMENT

DYNAMO: AMAZON S HIGHLY AVAILABLE KEY-VALUE STORE. Presented by Byungjin Jun

INF-5360 Presentation

CSE 444: Database Internals. Lecture 25 Replication

CS Amazon Dynamo

Replication and Consistency

CSE 544 Principles of Database Management Systems. Alvin Cheung Fall 2015 Lecture 14 Distributed Transactions

Consistency and Replication. Why replicate?

Computing Parable. The Archery Teacher. Courtesy: S. Keshav, U. Waterloo. Computer Science. Lecture 16, page 1

Asynchronous Replication and Bayou. Jeff Chase CPS 212, Fall 2000

Designing and Implementing Asynchronous Collaborative Applications with Bayou

Chapter 19: Distributed Databases

The Case for Non-transparent Replication: Examples from Bayou

Consistency in Distributed Systems

Distributed KIDS Labs 1

CS 138: Dynamo. CS 138 XXIV 1 Copyright 2017 Thomas W. Doeppner. All rights reserved.

Chapter 11 - Data Replication Middleware

SCALABLE CONSISTENCY AND TRANSACTION MODELS

Consistency and Replication (part b)

Consistency examples. COS 418: Distributed Systems Precept 5. Themis Melissaris

Flexible Update Propagation for Weakly Consistent Replication

Distributed Transaction Management

Outline. INF3190:Distributed Systems - Examples. Last week: Definitions Transparencies Challenges&pitfalls Architecturalstyles

Database Management Systems

CSE 444: Database Internals. Section 9: 2-Phase Commit and Replication

TAPIR. By Irene Zhang, Naveen Sharma, Adriana Szekeres, Arvind Krishnamurthy, and Dan Ports Presented by Todd Charlton

Transaction Management. Pearson Education Limited 1995, 2005

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Distributed System Engineering: Spring Quiz I Solutions. Grade histogram for Quiz I

Consistency and Replication. Some slides are from Prof. Jalal Y. Kawash at Univ. of Calgary

Chapter 19: Distributed Databases

Defining Weakly Consistent Byzantine Fault-Tolerant Services

Eventual Consistency 1

Eventual Consistency. Eventual Consistency

CAP Theorem, BASE & DynamoDB

Replication & Consistency Part II. CS403/534 Distributed Systems Erkay Savas Sabanci University

Flexible Update Propagation for Weakly Consistent Replication

Practical Byzantine Fault Tolerance

Outline. Non-Standard Database Systems. Distributed Database System. Outline. Distributed Databases

10. Replication. Motivation

Mobile and Heterogeneous databases Distributed Database System Transaction Management. A.R. Hurson Computer Science Missouri Science & Technology

MDCC MULTI DATA CENTER CONSISTENCY. amplab. Tim Kraska, Gene Pang, Michael Franklin, Samuel Madden, Alan Fekete

Control. CS432: Distributed Systems Spring 2017

Flexible Update Propagation for Weakly Consistent Replication

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Winter 2015 Lecture 14 NoSQL

Distributed Database Management System UNIT-2. Concurrency Control. Transaction ACID rules. MCA 325, Distributed DBMS And Object Oriented Databases

Chapter 4: Distributed Systems: Replication and Consistency. Fall 2013 Jussi Kangasharju

Horizontal or vertical scalability? Horizontal scaling is challenging. Today. Scaling Out Key-Value Storage

Distributed Data Management Replication

Consistency and Replication 1/65

Dynamo: Amazon s Highly Available Key-value Store

Transactions. A Banking Example

Dynamo: Amazon s Highly Available Key-value Store

Intra-cluster Replication for Apache Kafka. Jun Rao

Introduction to Distributed Data Systems

10. Replication. CSEP 545 Transaction Processing Philip A. Bernstein Sameh Elnikety. Copyright 2012 Philip A. Bernstein

A REPLICATED FILE SYSTEM FOR RESOURCE CONSTRAINED MOBILE DEVICES 1

Practical Byzantine Fault

PNUTS: Yahoo! s Hosted Data Serving Platform. Reading Review by: Alex Degtiar (adegtiar) /30/2013

11. Replication. Motivation

Building Consistent Transactions with Inconsistent Replication

Caching and Replication in Mobile Data Management

Consistency and Replication

Dynamo. Smruti R. Sarangi. Department of Computer Science Indian Institute of Technology New Delhi, India. Motivation System Architecture Evaluation

RSA Ready Implementation Guide for. GlobalSCAPE EFT Server 7.3

CollabDraw: Real-time Collaborative Drawing Board

MongoDB Distributed Write and Read

DISTRIBUTED COMPUTER SYSTEMS

Scaling Out Key-Value Storage

416 practice questions (PQs)

State of the Dolphin Developing new Apps in MySQL 8

Consistency: Relaxed. SWE 622, Spring 2017 Distributed Software Engineering

DrRobert N. M. Watson

Distributed Systems. Fall 2017 Exam 3 Review. Paul Krzyzanowski. Rutgers University. Fall 2017

Module 7 - Replication

Database Architectures

Replication in Distributed Systems

Concurrency control CS 417. Distributed Systems CS 417

Dynamo: Amazon s Highly Available Key-value Store. ID2210-VT13 Slides by Tallat M. Shafaat

Distributed Systems 8L for Part IB

Design and development of a distributed, secure and resilient vault management system

EaSync: A Transparent File Synchronization Service across Multiple Machines

Building Consistent Transactions with Inconsistent Replication

Megastore: Providing Scalable, Highly Available Storage for Interactive Services & Spanner: Google s Globally- Distributed Database.

Dynamo: Key-Value Cloud Storage

CS555: Distributed Systems [Fall 2017] Dept. Of Computer Science, Colorado State University

BIG DATA AND CONSISTENCY. Amy Babay

Eventual Consistency Today: Limitations, Extensions and Beyond

Abstract Specifications for Weakly Consistent Data

Transcription:

Managing Update Conflicts in Bayou Lucy Youxuan Jiang, Hiwot Tadese Kassa

Outline! Background + Motivation! Bayou Model Dependency checking for conflict detection Merge procedures for conflict resolution Replica consistency! Storage System Implementation! Experimental Results + Conclusion

Background (1995) Mobile Environment We have strong connection! I can connect! I can barely connect... I lost connection!!!

Problem: Weak Connectivity Replication What s happening to other replicas?! Can t Reach Device 1 Device 2 Device 3

Bayou! Previous Attempts Focused on transparent replicated data support for storage systems! Bayou Insights! Goal Applications should be aware of the risks of weak connectivity and must help detect and resolve those conflicts Provide an infrastructure for collaborative applications to manage conflicts between concurrent activities relying on weak connectivity

Two Applications Meeting Room Scheduler! At most one person (or group) can reserve the room for any given period of time. Bibliographic database! Users cooperatively manage databases of bibliographic entries (e.g., append, update) Tentative: Waiting to be confirmed or reject due to possible conflicts

Bayou Model Bayou system is replicated in full at a number of servers Applications running as clients interact with the servers through the Bayou API presents a weakly consistent replication model with a read-any/writeany style of access

Bayou Model Terry, T. and Petersen, D., Managing Update Conflicts in Bayou. In a Weakly Connected Replicated Storage System [C]// Proceedings 15 th Symposium on Operating Systems Principles.

Bayou Model Bayou servers propagate Writes among themselves during pair-wise contacts, called anti-entropy sessions The session is used agree on the set of Bayou Writes they have seen and the order in which to perform them as long as the set of servers is not permanently partitioned each Write will eventually reach all servers

Bayou Model Terry, T. and Petersen, D., Managing Update Conflicts in Bayou. In a Weakly Connected Replicated Storage System [C]// Proceedings 15 th Symposium on Operating Systems Principles.

Bayou Model Terry, T. and Petersen, D., Managing Update Conflicts in Bayou. In a Weakly Connected Replicated Storage System [C]// Proceedings 15 th Symposium on Operating Systems Principles. Conflict

Conflict Detection and Resolution Meeting Room Scheduler! At most one person (or group) can reserve the room for any given period of time. Bibliographic database! Each publication have distinctive key! Application-specific conflict detection and resolution

Conflict Detection and Resolution! Bayou writes include Update function - the actual value to be written Dependency check - used for conflict detection Merge function - decided how the conflict should be resolved

Dependency checks! Consists an application-supplied query and its expected result

Merge procedures! Resolves conflicts detected by its dependency check

Replica consistency! All servers move towards eventual consistency! When a Write is accepted by a Bayou server from a client, it is initially deemed tentative! Eventually, each Write is committed! Servers must be able to undo the effects of some previous tentative execution of a Write operation and reapply

Replica consistency Terry, T. and Petersen, D., Managing Update Conflicts in Bayou. In a Weakly Connected Replicated Storage System [C]// Proceedings 15 th Symposium on Operating Systems Principles. Meeting MAR 19,3:00PM Tentative Meeting MAR 19,3:00PM Tentative

Replica consistency Terry, T. and Petersen, D., Managing Update Conflicts in Bayou. In a Weakly Connected Replicated Storage System [C]// Proceedings 15 th Symposium on Operating Systems Principles. Committed Committed Committed Committed ERROR

Replica consistency! How is consistency achieved? 1. Include timestamp of the update requests 2. When a replica receive a new request re-execute based on timestamp! A write is stable when it is executed for the last time

Replica consistency Terry, T. and Petersen, D., Managing Update Conflicts in Bayou. In a Weakly Connected Replicated Storage System [C]// Proceedings 15 th Symposium on Operating Systems Principles. 3 5 4 3 5 3 4 5 4 4 3 5

Replica consistency Terry, T. and Petersen, D., Managing Update Conflicts in Bayou. In a Weakly Connected Replicated Storage System [C]// Proceedings 15 th Symposium on Operating Systems Principles. 3 Primary 4 5 3 4 What is the problem? 3 4 5 3 2 5 4 5

Storage System Implementation Terry, T. and Petersen, D., Managing Update Conflicts in Bayou. In a Weakly Connected Replicated Storage System [C]// Proceedings 15 th Symposium on Operating Systems Principles.

Read Access Show me your data! Request public/private key access control certificates 1. Authenticate your identity 2. Is your certificate legitimate? OK, access granted! Data Request Client Data Server Replica

Write Access Update your data! 1. Authenticate identity 2. Verify certificate OK, update 1. Authenticate identity 2. Verify certificate OK, update Data Authenticating Info Data Authenticating Info Client Accepting Replica Primary

Evaluation and Performance! Bibliographic database with five different configurations of the database characterized by the number of Writes that are tentative.! measured storage requirements and the execution times for undoing and redoing the effect of all tentative Writes executing a client Read operation against the database adding a new Write to the database

Evaluation and Performance

Evaluation and Performance

Evaluation and Performance

Conclusion! Bayou is a storage infrastructure for mobile applications! the system is built around pair-wise client- server and server-server communications! To provide high availability, Bayou employs weakly consistent replication! Based on Application-specific conflict detection and resolution! guarantees eventual consistency