DATA CENTRIC CONSISTENCY MODELS

Slides:



Advertisements
Similar presentations
COMP 655: Distributed/Operating Systems Summer 2011 Dr. Chunbo Chu Week 7: Consistency 4/13/20151Distributed Systems - COMP 655.
Advertisements

Linearizability Linearizability is a correctness criterion for concurrent object (Herlihy & Wing ACM TOPLAS 1990). It provides the illusion that each operation.
Replication. Topics r Why Replication? r System Model r Consistency Models r One approach to consistency management and dealing with failures.
Consistency and Replication Chapter Introduction: replication and scalability 6.2 Data-Centric Consistency Models 6.3 Client-Centric Consistency.
Consistency and Replication Chapter Topics Reasons for Replication Models of Consistency –Data-centric consistency models: strict, linearizable,
Shared Memory – Consistency of Shared Variables The ideal picture of shared memory: CPU0CPU1CPU2CPU3 Shared Memory Read/ Write The actual architecture.
Consistency Models Based on Tanenbaum/van Steen’s “Distributed Systems”, Ch. 6, section 6.2.
Consistency and Replication. Replication of data Why? To enhance reliability To improve performance in a large scale system Replicas must be consistent.
Distributed Systems CS Consistency and Replication – Part II Lecture 11, Oct 10, 2011 Majd F. Sakr, Vinay Kolar, Mohammad Hammoud.
Distributed Systems Spring 2009
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Distributed Systems CS Consistency and Replication – Part I Lecture 10, Oct 5, 2011 Majd F. Sakr, Vinay Kolar, Mohammad Hammoud.
Computer Science Lecture 14, page 1 CS677: Distributed OS Consistency and Replication Today: –Introduction –Consistency models Data-centric consistency.
Distributed Systems Fall 2009 Replication Fall 20095DV0203 Outline Group communication Fault-tolerant services –Passive and active replication Highly.
Computer Science Lecture 14, page 1 CS677: Distributed OS Consistency and Replication Introduction Consistency models –Data-centric consistency models.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Consistency.
Consistency and Replication Chapter 7
Consistency and Replication CSCI 4780/6780. Chapter Outline Why replication? –Relations to reliability and scalability How to maintain consistency of.
Consistency and Replication
Consistency And Replication
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Consistency.
Distributed Systems CS Consistency and Replication – Part II Lecture 11, Oct 2, 2013 Mohammad Hammoud.
Reliable Communication in the Presence of Failures Based on the paper by: Kenneth Birman and Thomas A. Joseph Cesar Talledo COEN 317 Fall 05.
ICS362 – Distributed Systems Dr. Ken Cosh Lecture 7.
Consistency and Replication. Replication of data Why? To enhance reliability To improve performance in a large scale system Replicas must be consistent.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Consistency and Replication Distributed Software Systems.
第5讲 一致性与复制 §5.1 副本管理 Replica Management §5.2 一致性模型 Consistency Models
Replication (1). Topics r Why Replication? r System Model r Consistency Models – How do we reason about the consistency of the “global state”? m Data-centric.
Linearizability Linearizability is a correctness criterion for concurrent object (Herlihy & Wing ACM TOPLAS 1990). It provides the illusion that each operation.
Distributed Systems CS Consistency and Replication – Part IV Lecture 21, Nov 10, 2014 Mohammad Hammoud.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Distributed Systems CS Consistency and Replication – Part I Lecture 10, September 30, 2013 Mohammad Hammoud.
Replication (1). Topics r Why Replication? r System Model r Consistency Models r One approach to consistency management and dealing with failures.
Consistency and Replication. Outline Introduction (what’s it all about) Data-centric consistency Client-centric consistency Replica management Consistency.
Linearizability Linearizability is a correctness criterion for concurrent object (Herlihy & Wing ACM TOPLAS 1990). It provides the illusion that each operation.
Distributed Systems CS Consistency and Replication – Part IV Lecture 13, Oct 23, 2013 Mohammad Hammoud.
Client-Centric Consistency Models
Hwajung Lee.  Improves reliability  Improves availability ( What good is a reliable system if it is not available?)  Replication must be transparent.
Linearizability Linearizability is a correctness criterion for concurrent object (Herlihy & Wing ACM TOPLAS 1990). It provides the illusion that each operation.
Replication Improves reliability Improves availability ( What good is a reliable system if it is not available?) Replication must be transparent and create.
Distributed Systems CS Consistency and Replication – Part I Lecture 11, Oct 19, 2015 Mohammad Hammoud.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
1 Prof. Orhan Gemikonakli Module Leader: Prof. Leonardo Mostarda Università di Camerino Distributed Systems – Consistency Prof. Orhan Gemikonakli - Camerino.
Consistency and Replication (1). Topics Why Replication? Consistency Models – How do we reason about the consistency of the “global state”? u Data-centric.
CSE 486/586, Spring 2013 CSE 486/586 Distributed Systems Consistency Steve Ko Computer Sciences and Engineering University at Buffalo.

CS6320 – Performance L. Grewe.
Distributed Systems CS
CSE 486/586 Distributed Systems Consistency --- 1
Consistency and Replication
Consistency and Replication
Replication and Consistency
Consistency Models.
Replication and Consistency
Distributed Systems CS
Linearizability Linearizability is a correctness criterion for concurrent object (Herlihy & Wing ACM TOPLAS 1990). It provides the illusion that each operation.
IS 651: Distributed Systems Consistency
CSE 486/586 Distributed Systems Consistency --- 1
Replication Improves reliability Improves availability
Consistency and Replication
DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S
Distributed Systems CS
CONSISTENCY IN DISTRIBUTED SYSTEMS
Replication Chapter 7.
Consistency and Replication
CSE 486/586 Distributed Systems Consistency --- 3
CSE 486/586 Distributed Systems Consistency --- 1
Replication and Consistency
Outline Theoretical Foundations
Presentation transcript:

DATA CENTRIC CONSISTENCY MODELS RUSHITHA METTU

Data-Centric Consistency Models A data-store can be read from or written to by any process in a distributed system. A local copy of the data-store (replica) can support “fast reads”. However, a write to a local replica needs to be propagated to all remote replicas. Various consistency models help to understand the various mechanisms used to achieve and enable this.

What is a Consistency Model? A “consistency model” is a CONTRACT between a DS data-store and its processes. If the processes agree to the rules, the data-store will perform properly and as advertised. We have two approaches to consistency model: Continuous consistency Consistent ordering of operations

Continuous Consistency Introduced by Yu and Vadhat (2002) Here we measure inconsistency by exactly what can be tolerated in an application. There are different ways for applications to specify what inconsistencies they can tolerate. Deviation in numerical values Deviation in staleness (last update time) between replicas Deviation with respect to the number and ordering of updates

Consistent Ordering of Operations Strictly consistency Sequential Consistency Causal Consistency Strict consistency: Any read on a data x returns a value corresponding to the result of the most recent write on x. Behavior of two processes, operating on the same data item: A strictly consistent data-store. A data-store that is not strictly consistent. So, other, less strict (or “weaker”) models have been developed …

Sequential Consistency A weaker consistency model, which represents a relaxation of the rules. In Sequential consistency, all processes see the same interleaving set of operations, regardless of what that interleaving is.

Sequential Consistency Diagrams A sequentially consistent data-store – the “first” write occurred after the “second” on all replicas. A data-store that is not sequentially consistent – it appears the writes have occurred in a non-sequential order, and this is NOT allowed.

Problem with Sequential Consistency With this consistency model, adjusting the protocol to favour reads over writes (or vice-versa) can have a devastating impact on performance. For this reason, other weaker consistency models have been proposed and developed.

Causal Consistency This model distinguishes between events that are “causally related” and those that are not. If event B is caused or influenced by an earlier event A, then causal consistency requires that every other process see event A, then event B. Operations that are not causally related are said to be concurrent.

More on Causal Consistency A causally consistent data-store obeys this condition: Writes that are potentially causally related must be seen by all processes in the same order. Concurrent writes may be seen in a different order on different machines (i.e., by different processes). This sequence is allowed with a causally-consistent store, but not with sequentially or strictly consistent store. Note: it is assumed that W2(x)b and W1(x)c are concurrent.

Consistency Model Diagram Notation Wi(x)a – a write by process ‘i’ to item ‘x’ with a value of ‘a’. That is, ‘x’ is set to ‘a’. (Note: The process is often shown as ‘Pi’). Ri(x)b – a read by process ‘i’ from item ‘x’ producing the value ‘b’. That is, reading ‘x’ returns ‘b’. Time moves from left to right in all diagrams.

Future Work While Implementing Sequential consistency to an application we can apply continuous consistency approach of deviation of staleness between replicas to make the application more consistent.

Thank you