Mobility in Distributed Computing With Special Emphasis on Data Mobility.

Slides:



Advertisements
Similar presentations
Eventual Consistency Jinyang. Sequential consistency Sequential consistency properties: –Latest read must see latest write Handles caching –All writes.
Advertisements

Replication. Topics r Why Replication? r System Model r Consistency Models r One approach to consistency management and dealing with failures.
L-11 Consistency 1. Important Lessons Replication  good for performance/reliability  Key challenge  keeping replicas up-to-date Wide range of consistency.
1 CS 194: Lecture 10 Bayou, Brewer, and Byzantine.
Computer Science Lecture 16, page 1 CS677: Distributed OS Last Class: Web Caching Use web caching as an illustrative example Distribution protocols –Invalidate.
“Managing Update Conflicts in Bayou, a Weakly Connected Replicated Storage System ” Distributed Systems Κωνσταντακοπούλου Τζένη.
Computer Science Lecture 21, page 1 CS677: Distributed OS Today: Coda, xFS Case Study: Coda File System Brief overview of other recent file systems –xFS.
Department of Electrical Engineering
CSS490 Replication & Fault Tolerance
HA LVS Coda - Devjani Sinha. High Availability-HA n critical commercial applications move on the Internet n An elegant highly available system may have.
Toolkits for Building Mobile Systems 3/28/2002 Michael Ferguson
Distributed Systems Fall 2009 Replication Fall 20095DV0203 Outline Group communication Fault-tolerant services –Passive and active replication Highly.
Real-Time Distributed Databases By: Chris Scardino CSC536 Monday, May 2, 2005.
G Robert Grimm New York University Bayou: A Weakly Connected Replicated Storage System.
Ordering of events in Distributed Systems & Eventual Consistency Jinyang Li.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved Client-Centric.
Concurrency Control & Caching Consistency Issues and Survey Dingshan He November 18, 2002.
Jeff Chheng Jun Du.  Distributed file system  Designed for scalability, security, and high availability  Descendant of version 2 of Andrew File System.
PRASHANTHI NARAYAN NETTEM.
Managing Update Conflicts in Bayou, a Weakly Connected Replicated Storage System D. B. Terry, M. M. Theimer, K. Petersen, A. J. Demers, M. J. Spreitzer.
Mobility Presented by: Mohamed Elhawary. Mobility Distributed file systems increase availability Remote failures may cause serious troubles Server replication.
Client-Server Computing in Mobile Environments
SQL Server Replication By Karthick P.K Technical Lead, Microsoft SQL Server.
Update Propagation with Variable Connectivity Prasun Dewan Department of Computer Science University of North Carolina
Replication and Consistency. References r The Case for Non-transparent Replication: Examples from Bayou Douglas B. Terry, Karin Petersen, Mike J. Spreitzer,
Feb 7, 2001CSCI {4,6}900: Ubiquitous Computing1 Announcements.
CS Storage Systems Lecture 14 Consistency and Availability Tradeoffs.
1 CS 268: Lecture 20 Classic Distributed Systems: Bayou and BFT Ion Stoica Computer Science Division Department of Electrical Engineering and Computer.
Feb 7, 2001CSCI {4,6}900: Ubiquitous Computing1 Announcements Tomorrow’s class is officially cancelled. If you need someone to go over the reference implementation.
Bayou. References r The Case for Non-transparent Replication: Examples from Bayou Douglas B. Terry, Karin Petersen, Mike J. Spreitzer, and Marvin M. Theimer.
Replication and Consistency. Reference The Dangers of Replication and a Solution, Jim Gray, Pat Helland, Patrick O'Neil, and Dennis Shasha. In Proceedings.
1 Consistency of Replicated Data in Weakly Connected Systems CS444N, Spring 2002 Instructor: Mary Baker.
Copyright © George Coulouris, Jean Dollimore, Tim Kindberg This material is made available for private study and for direct.
Replication March 16, Replication What is Replication?  A technique for increasing availability, fault tolerance and sometimes, performance 
Distributed File Systems Overview  A file system is an abstract data type – an abstraction of a storage device.  A distributed file system is available.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation Data Versioning Lecturer.
Introduction to DFS. Distributed File Systems A file system whose clients, servers and storage devices are dispersed among the machines of a distributed.
DISCONNECTED OPERATION IN THE CODA FILE SYSTEM J. J. Kistler M. Sataynarayanan Carnegie-Mellon University.
CODA: A HIGHLY AVAILABLE FILE SYSTEM FOR A DISTRIBUTED WORKSTATION ENVIRONMENT M. Satyanarayanan, J. J. Kistler, P. Kumar, M. E. Okasaki, E. H. Siegel,
IM NTU Distributed Information Systems 2004 Replication Management -- 1 Replication Management Yih-Kuen Tsay Dept. of Information Management National Taiwan.
Mobile File System Byung Chul Tak. AFS  Andrew File System Distributed computing environment developed at CMU provides transparent access to remote shared.
Mobile Data Access1 Replication, Caching, Prefetching and Hoarding for Mobile Computing.
CS425 / CSE424 / ECE428 — Distributed Systems — Fall 2011 Some material derived from slides by Prashant Shenoy (Umass) & courses.washington.edu/css434/students/Coda.ppt.
Distributed File Systems
Information/File Access and Sharing Coda: A Case Study J. Kistler, M. Satyanarayanan. Disconnected operation in the Coda File System. ACM Transaction on.
Ing. Erick López Ch. M.R.I. Replicación Oracle. What is Replication  Replication is the process of copying and maintaining schema objects in multiple.
Caching Consistency and Concurrency Control Contact: Dingshan He
Fault Tolerance and Replication
Replication (1). Topics r Why Replication? r System Model r Consistency Models r One approach to consistency management and dealing with failures.
Write Conflicts in Optimistic Replication Problem: replicas may accept conflicting writes. How to detect/resolve the conflicts? client B client A replica.
An Architecture for Mobile Databases By Vishal Desai.
Overview of Mobile File Systems Presented by Steve Todd For WSU CS 898T Mobile and Wireless Networks Class 5/3/04.
Bayou: Replication with Weak Inter-Node Connectivity Brad Karp UCL Computer Science CS GZ03 / th November, 2007.
Eventual Consistency Jinyang. Review: Sequential consistency Sequential consistency properties: –All read/write ops follow some total ordering –Read must.
Highly Available Services and Transactions with Replicated Data Jason Lenthe.
THE EVOLUTION OF CODA M. Satyanarayanan Carnegie-Mellon University.
Mobility Victoria Krafft CS /25/05. General Idea People and their machines move around Machines want to share data Networks and machines fail Network.
Mobile File Systems.
Nomadic File Systems Uri Moszkowicz 05/02/02.
Example Replicated File Systems
Disconnected Operation in the Coda File System
Introduction There are many situations in which we might use replicated data Let’s look at another, different one And design a system to work well in that.
Today: Coda, xFS Case Study: Coda File System
Consistency and Replication
Outline Announcements Lab2 Distributed File Systems 1/17/2019 COP5611.
Outline The Case for Non-transparent Replication: Examples from Bayou Douglas B. Terry, Karin Petersen, Mike J. Spreitzer, and Marvin M. Theimer. IEEE.
Outline Review of Quiz #1 Distributed File Systems 4/20/2019 COP5611.
Last Class: Web Caching
Ch 6. Summary Gang Shen.
System-Level Support CIS 640.
Presentation transcript:

Mobility in Distributed Computing With Special Emphasis on Data Mobility

Computing Culture Culture - The predominating attitudes and behavior that characterize the functioning of a group or organization. 1 Computing Culture MUST align with social culture to be effective

Culture and Mobility “People want to be together; but at the same time they want the opportunity for some small amount of privacy, without giving up community” 2

What is Mobility? 1. Access to shared resources through multiple “hard points” 2. Access to shared resources through dynamic “soft points” 3. Ability to easily move in and out of a network 4. Access to computing resources regardless of physical location

Mobility “through the ages” ( ) ENIAC Computer Time Sharing System ARPANETPC’sLaptopsEthernet

Contemporary Mobility (1990 – Present) Data –Example: Files Computing –Example: Specialized Processing Code –Example: Downloadable GUI

Presentation Emphasis Mobility of Data Two Examples –Coda File System –Bayou Anti-Entropy Protocol

Challenges of Data Mobility Designing the following characteristics of data mobility is not trivial: –Outside Availability –Outside Semantics –Consistency –Concurrency Even different systems may have different mobility goals (For example….)

Goal Comparison Transparency (looks like UNIX) Scalability –Push Functionality to Clients –Avoid System-wide Rapid Change Balance Availability and Consistency Support for devices w/ limited resources High Availability Application-specific resolution of conflicts Application awareness of underlying system (NOT transparent) CodaBayou

General Comparison Coda supports disconnected operations on “cached” versions of shared files Upon reconnection, clients and servers “synch” their file variants. The Bayou AEP allows updates to propagate between participants sharing replicas Write operations are stored and propagated pair-wise (even possibly between clients*) CodaBayou

Critical Common Concern Optimistic vrs Pessimistic Replication –Pessimistic avoids conflicts by restriction –Optimistic detects and resolves conflicts if, and when, necessary It should be noted that data mobility all but requires optimistic replication

Coda Disconnected Operation (simplified view) * User explicitly specifies files he/she wants available offline * Coda makes a best-effort attempt to keep those files in cache * On disconnect, user can access files in cache normally * On reconnect, client and server update one another and resolve any conflicts (write-write only)

And Now, For Something Completely Different… The Bayou Anti-Entropy Protocol attempts to solve a more complex problem Not accidentally, the Bayou AEP is also more complex than Coda It doesn’t help that the paper “Flexible Update Propagation for Weakly Consistent Replication” is hard to understand

Helpful Bayou Papers The Bayou Architecture: Support for Data Sharing among Mobile Users Managing Update Conflicts in Bayou, a Weakly Connected Replicated Storage System Dealing with Tentative Data Values in Disconnected Work Groups

Let’s Start at the Very Beginning Bayou is designed to run in a mobile computing environment with less than ideal network connectivity Bayou assumes that mobile users want to share their data despite intermittent network connectivity

Supporting Devices with Limited Resources Servers store data (replicas) in database Clients read/write data PDA are generally only clients Laptops often operate in both roles

Achieving High Availability with Significant Concurrency Any user can read from or write to any copy of the “database” Because Bayou assumes that partitions can and do happen, it offers no guarantee of timeliness of write propagation This means that replicated databases are only weakly consistent

What is a “write”? Write MergeProc. Updates DependencyCheck

What is the Database? D 0 = Null D 1 = W 1 (D 0 ) D 2 = W 2 (D 1 ) : D n = W n (D n-1 ) Where D i represents the data after Applying write W 0 – W i in order

Getting the Right Write Propagation <100,2> <100,2> <100,2>

A Few Notes… The only requirement for timestamps is that they be monotonically increasing at each server If timestamps are based on rt-clocks, keeping server’s clocks close is best Bayou servers maintain a logical clocks to timestamp new writes (initially synched with rt-clock, then updated during AEP)

Stabilizing AEP A write is stable when it’s order will never change Bayou uses “primary commit protocol” “Primary” server commits a write Tentative writes always come after committed writes NOTE: This is somewhat arbitrary

Bayou’s Propagation of Committed Writes Since committed writes are totally ordered by their CSNs, the highest CSN represents the committed portion of the write-log In an update, committed writes are transmitted (or a commitment notice sent) before uncommitted writes

Stabilizing Images Primary Secondary Secondary Secondary

More Bayou “Light Reading” Session Guarantees Transportable Media Modifications Write Log Truncation Server creation/retirement

But… Throughout our discussion of Bayou, we’ve covered conflict resolution only lightly How does Bayou conflict resolution work? How does it compare to Coda conflict resolution?

Conflict Resolution In Coda, conflicts are assumed to be small. When they occur, the user is expected to resolve the conflict (once). In Bayou, each write is assumed to have its own conflict resolution suite (the dependency check and merge procedure)

Now Wait a Minute… “one crucial assumption is that reordering of concurrent updates, either conflicting or non- conflicting, will result in the same updates to the database. This mandates ‘perfect’ conflict- resolving methods, which seems hard to find for a lot of applications.” 3

Unanswered Questions Do these solutions solve the “real” problem? Or, are they solutions looking for a problem? Would YOU use either one? Do they solve problems best left to applications? (The end-to-end question)

Beyond Data Mobility “Agile Application-Aware Adaptation for Mobility”, Satyanarayanan, et al “Rover: A Toolkit for Mobile Information Access”, Joseph, et al

References C. Alexander, “A Pattern Language”, Oxford University Press, New York, NY, 1977, page ayou.htm ayou.htm ayou.htm