Consistency in Distributed Systems

Slides:



Advertisements
Similar presentations
Replication. Topics r Why Replication? r System Model r Consistency Models r One approach to consistency management and dealing with failures.
Advertisements

Is SC + ILP = RC? Presented by Vamshi Kadaru Chris Gniady, Babak Falsafi, and T. N. VijayKumar - Purdue University Spring 2005: CS 7968 Parallel Computer.
Cache Coherent Distributed Shared Memory. Motivations Small processor count –SMP machines –Single shared memory with multiple processors interconnected.
Using DSVM to Implement a Distributed File System Ramon Lawrence Dept. of Computer Science
Online Educational Game of Snakes and Ladders -Shalini Pradhan -Manali Joshi -Uttara Paingankar -Seema Joshi.
Objektorienteret Middleware Presentation 2: Distributed Systems – A brush up, and relations to Middleware, Heterogeneity & Transparency.
A Dependable Auction System: Architecture and an Implementation Framework
Virtual Synchrony Jared Cantwell. Review Multicast Causal and total ordering Consistent Cuts Synchronized clocks Impossibility of consensus Distributed.
Scaling Distributed Machine Learning with the BASED ON THE PAPER AND PRESENTATION: SCALING DISTRIBUTED MACHINE LEARNING WITH THE PARAMETER SERVER – GOOGLE,
Computer Science Lecture 14, page 1 CS677: Distributed OS Consistency and Replication Today: –Introduction –Consistency models Data-centric consistency.
EEC-681/781 Distributed Computing Systems Lecture 3 Wenbing Zhao Department of Electrical and Computer Engineering Cleveland State University
Distributed Systems Fall 2009 Replication Fall 20095DV0203 Outline Group communication Fault-tolerant services –Passive and active replication Highly.
Replication and Consistency CS-4513 D-term Replication and Consistency CS-4513 Distributed Computing Systems (Slides include materials from Operating.
Computer Science Lecture 16, page 1 CS677: Distributed OS Last Class:Consistency Semantics Consistency models –Data-centric consistency models –Client-centric.
PRASHANTHI NARAYAN NETTEM.
IBM Haifa Research 1 The Cloud Trade Off IBM Haifa Research Storage Systems.
Orbe: Scalable Causal Consistency Using Dependency Matrices & Physical Clocks Jiaqing Du, EPFL Sameh Elnikety, Microsoft Research Amitabha Roy, EPFL Willy.
Extreme scale Lack of decomposition for insight Many services have centralized designs Impacts of service architectures  an open question Using Simulation.
Multiple Processor Systems. Multiprocessor Systems Continuous need for faster and powerful computers –shared memory model ( access nsec) –message passing.
Distributed Shared Memory: A Survey of Issues and Algorithms B,. Nitzberg and V. Lo University of Oregon.
Copyright © George Coulouris, Jean Dollimore, Tim Kindberg This material is made available for private study and for direct.
CS 5204 (FALL 2005)1 Leases: An Efficient Fault Tolerant Mechanism for Distributed File Cache Consistency Gray and Cheriton By Farid Merchant Date: 9/21/05.
The Replica Location Service The Globus Project™ And The DataGrid Project Copyright (c) 2002 University of Chicago and The University of Southern California.
DISTRIBUTED COMPUTING
Distributed Systems CS Consistency and Replication – Part I Lecture 10, September 30, 2013 Mohammad Hammoud.
Distributed Computing Systems CSCI 4780/6780. Scalability ConceptExample Centralized servicesA single server for all users Centralized dataA single on-line.
Distributed databases A brief introduction with emphasis on NoSQL databases Distributed databases1.
System Models Advanced Operating Systems Nael Abu-halaweh.
Distributed Computing Systems Replication Dr. Sunny Jeong. Mr. Colin Zhang With Thanks to Prof. G. Coulouris,
Lecture 17 Page 1 CS 188,Winter 2015 A Design Problem in Distributed Systems CS 188 Distributed Systems March 10, 2015.
Chapter 1 Characterization of Distributed Systems
CSCI5570 Large Scale Data Processing Systems
Designing the Physical Architecture
Last Class: Introduction
CS6320 – Performance L. Grewe.
Wiera: Towards Flexible Multi-Tiered Geo-Distributed Cloud Storage Instances Zhe Zhang.
Introduction to Load Balancing:
Distributed Shared Memory
Distributed Systems – Paxos
Alternative system models
Distributed Systems CS
Introduction to NewSQL
Chapter 18 MobileApp Design
Failure recovery and Checkpointing in Distributed Systems
The SNOW Theorem and Latency-Optimal Read-Only Transactions
Replication and Availability in Distributed systems
Replication Middleware for Cloud Based Storage Service
Chapter 7: Consistency & Replication IV - REPLICATION MANAGEMENT -Sumanth Kandagatla Instructor: Prof. Yanqing Zhang Advanced Operating Systems (CSC 8320)
Storage Systems for Managing Voluminous Data
Distributed Shared Memory
CAP THEOREM Have the rules really changed?
Page Replacement.
Outline Midterm results summary Distributed file systems – continued
EECS 498 Introduction to Distributed Systems Fall 2017
Fault Tolerance Distributed Web-based Systems
PERSPECTIVES ON THE CAP THEOREM
Process Migration Troy Cogburn and Gilbert Podell-Blume
By: Greg Boyarko, Jordan Sutton, and Shaun Parkison
Replication and Availability in Distributed Systems
Distributed File Systems
CS510 - Portland State University
Distributed Systems CS
CONSISTENCY IN DISTRIBUTED SYSTEMS
EEC 688/788 Secure and Dependable Computing
Outline Review of Quiz #1 Distributed File Systems 4/20/2019 COP5611.
Database System Architectures
EEC 688/788 Secure and Dependable Computing
Global Distribution.
Distributed Systems (15-440)
Implementing Consistency -- Paxos
Presentation transcript:

Consistency in Distributed Systems By Amanda Carbonari and Thaddeus M. Diede 9/22/2018 CS 455: Introduction to distributed systems Dept. of computer science, Colorado state university

Why is Consistency Important? Consistency – The state of shared and replicated resources amongst the servers and nodes of a distributed computing system Agreement on the value by all components: consistent state. Fundamental feature in a distributed system design Reliability, scalability, system performance Consistency issues arose out of employing remote replication for Increased reliability Better load balancing 9/22/2018 CS 455: Introduction to distributed systems Dept. of computer science, Colorado state university

Problem Characterization Viewed from client side or server side Fundamental types of consistency (server side): Strong – Perpetual consistency, immediate consistency Optimistic – Implements values locally, then propagates values remotely. Conflicts resolved using revision histories Causal – Updates first at nodes with causal relationship to datum, uses eventual consistency for non-causal members. Sequential – Similar to strong, specifies a strict order of instructions to be propagated. Cache – The value read is the most recent value stored on the local or nearest system. 9/22/2018 CS 455: Introduction to distributed systems Dept. of computer science, Colorado state university

Trade-off Space for Solutions in Consistency CAP Theorem and PACELC extension CAP: Designers must choose between two of the three properties PACELC: evaluates tradeoff space depending on system operation (normal or partitioned) Consistency vs. Availability Increasing consistency reduces availability by introducing more latency in the system Consistency vs. Scalability Some consistency models require more memory or messages as the system scales up, hindering scalability 9/22/2018 CS 455: Introduction to distributed systems Dept. of computer science, Colorado state university

Dominant Approaches to Consistency Approaches vary by system type Paxos Server to client distributed systems Servers can fail and restart, must reload information Node types: Acceptors, Proposers, Learners Issue: Live lock problem General Distributed Shared Memory (DSM) Algorithm Sequential, causal, cache models available User selects which to use For each process, all writes in a cycle are written to one message to minimize network load Issues: scalability and fault tolerance 9/22/2018 CS 455: Introduction to distributed systems Dept. of computer science, Colorado state university

Insights Gleaned There is no single general solution PAXOS – server to client interaction The trade-offs require development of creative solutions for each application The modern network-collaboration tools rely heavily on consistency The accuracy, reliability, and scalability of these services can be seen in the effect they have had on contemporary culture, politics, and economics Virtual communities – Reddit, Facebook Disaster response – Google Person Finder Public mobilization – Twitter, FireChat 9/22/2018 CS 455: Introduction to distributed systems Dept. of computer science, Colorado state university

The Problem Space in the Future The future of consistency will depends on advances in . . . Distributed Systems Clock synchronization, scalability, reduced network overhead, and in-memory processing Computer Architecture Faster CPU or IO speeds and cheaper memory The use of distributed systems Current Trend: “put everything on the cloud” Possible directions Mainstream use: home computer systems, computer stick, etc. Gaming: multiplayer online virtual reality games (Samsung Oculus Rift) 9/22/2018 CS 455: Introduction to distributed systems Dept. of computer science, Colorado state university

Trade-off Space and Solutions in the Future Similar to current trade-off space Scalability and Fault Tolerance Low Latency Solutions Flexible “out of the box” algorithms: Allow users to choose model for system Only include beneficial models for that system Achieving consistency in some areas will be easier, some will be harder Distributed home computer system = easy Virtual Reality Multiplayer Online gaming = difficult 9/22/2018 CS 455: Introduction to distributed systems Dept. of computer science, Colorado state university

Conclusion There will not be single general solution for all systems CAP/PACELC Theorem Developers must determine solution per system based on trade-offs System Requirements Consistency Models Weaker consistency models tend to be the dominant approach Provide more flexibility with system implementation OVERALL: CAP will always dictate solutions in distributed system consistency 9/22/2018 CS 455: Introduction to distributed systems Dept. of computer science, Colorado state university

Questions? 9/22/2018 CS 455: Introduction to distributed systems Dept. of computer science, Colorado state university