1 Prof. Orhan Gemikonakli Module Leader: Prof. Leonardo Mostarda Università di Camerino Distributes Systems – Consistency (2) Prof. Orhan Gemikonakli -

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

Consistency and Replication Chapter 7 Part II Replica Management & Consistency Protocols.
Consistency and Replication
Consistency and Replication Chapter 6. Object Replication (1) Organization of a distributed remote object shared by two different clients.
Consistency and Replication. Replication of data Why? To enhance reliability To improve performance in a large scale system Replicas must be consistent.
Distributed Systems Fall 2010 Replication Fall 20105DV0203 Outline Group communication Fault-tolerant services –Passive and active replication Highly.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Internet Networking Spring 2006 Tutorial 12 Web Caching Protocols ICP, CARP.
1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #13 Web Caching Protocols ICP, CARP.
Distributed Systems Fall 2009 Replication Fall 20095DV0203 Outline Group communication Fault-tolerant services –Passive and active replication Highly.
Internet Networking Spring 2002 Tutorial 13 Web Caching Protocols ICP, CARP.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved Client-Centric.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 7: Planning a DNS Strategy.
1 6.4 Distribution Protocols Different ways of propagating/distributing updates to replicas, independent of the consistency model. First design issue.
Consistency And Replication
Distributed File Systems
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Consistency.
Distributed Processing and Client/Server
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.
Consistency and Replication Chapter 6. Release Consistency (1) A valid event sequence for release consistency. Use acquire/release operations to denote.
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.
IM NTU Distributed Information Systems 2004 Replication Management -- 1 Replication Management Yih-Kuen Tsay Dept. of Information Management National Taiwan.
 Distributed file systems having transaction facility need to support distributed transaction service.  A distributed transaction service is an extension.
第5讲 一致性与复制 §5.1 副本管理 Replica Management §5.2 一致性模型 Consistency Models
Eduardo Gutarra Velez. Outline Distributed Filesystems Motivation Google Filesystem Architecture The Metadata Consistency Model File Mutation.
Consistency and Replication Chapter 6 Presenter: Yang Jie RTMM Lab Kyung Hee University.
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.
Distributed Systems CS Consistency and Replication – Part IV Lecture 21, Nov 10, 2014 Mohammad Hammoud.
Computer Science Lecture 14, page 1 CS677: Distributed OS Last Class: Concurrency Control Concurrency control –Two phase locks –Time stamps Intro to Replication.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Replication (1). Topics r Why Replication? r System Model r Consistency Models r One approach to consistency management and dealing with failures.
Distributed Systems CS Consistency and Replication – Part IV Lecture 13, Oct 23, 2013 Mohammad Hammoud.
Chapter 7: Consistency & Replication IV - REPLICATION MANAGEMENT By Jyothsna Natarajan Instructor: Prof. Yanqing Zhang Course: Advanced Operating Systems.
Consistency and Replication Chapter 6 Presenter: Yang Jie RTMM Lab Kyung Hee University.
Overview on Web Caching COSC 513 Class Presentation Instructor: Prof. M. Anvari Student name: Wei Wei ID:
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Consistency and Replication CSCI 6900/4900. FIFO Consistency Relaxes the constraints of the causal consistency “Writes done by a single process are seen.
1 Prof. Orhan Gemikonakli Module Leader: Prof. Leonardo Mostarda Università di Camerino Distributed Systems – Consistency Prof. Orhan Gemikonakli - Camerino.
1 Prof. Leonardo Mostarda University of Camerino Distributed Systems – Architectures Prof. Leonardo Mostarda-- Camerino,
1 Prof. Leonardo Mostarda University of Camerino Distributed Systems – intro Prof. Leonardo Mostarda-- Camerino,
PART1 Data collection methodology and NM paradigms 1.
Fault Tolerance Prof. Orhan Gemikonakli
Computer Organization
Prof. Leonardo Mostarda University of Camerino
Distributed Systems – Paxos
Internet Networking recitation #12
Chapter 7: Consistency & Replication IV - REPLICATION MANAGEMENT -Sumanth Kandagatla Instructor: Prof. Yanqing Zhang Advanced Operating Systems (CSC 8320)
EECS 498 Introduction to Distributed Systems Fall 2017
Module IV Memory Organization.
Outline Announcements Fault Tolerance.
Consistency and Replication
Distributed Object-based systems
Consistency and Replication
Active replication for fault tolerance
Distributed Systems CS
EEC 688/788 Secure and Dependable Computing
Outline Announcements Lab2 Distributed File Systems 1/17/2019 COP5611.
Lecture 21: Replication Control
EEC 688/788 Secure and Dependable Computing
Prof. Leonardo Mostarda University of Camerino
DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S
Distributed Systems CS
Replica Placement Model: We consider objects (and don’t worry whether they contain just data or code, or both) Distinguish different processes: A process.
EEC 688/788 Secure and Dependable Computing
Outline Review of Quiz #1 Distributed File Systems 4/20/2019 COP5611.
EEC 688/788 Secure and Dependable Computing
The SMART Way to Migrate Replicated Stateful Services
EEC 688/788 Secure and Dependable Computing
Lecture 21: Replication Control
Presentation transcript:

1 Prof. Orhan Gemikonakli Module Leader: Prof. Leonardo Mostarda Università di Camerino Distributes Systems – Consistency (2) Prof. Orhan Gemikonakli - Camerino,

Last lecture zState machine replication approach zPaxos protocol 2Prof. Orhan Gemikonakli - Camerino,

Outline zReplica management zPermanent replicas zServer initiated replicas zClient initiated replicas zPull versus push protocols zConsistency protocols 3Prof. Orhan Gemikonakli - Camerino,

Learning outcome zTo understand the basic concepts related to replica management yPermanent replicas yServer initiated replicas yClient initiated replicas zTo describe and discuss pull and push protocols zTo understand various consistency protocols 4Prof. Orhan Gemikonakli - Camerino,

REPLICA MANAGEMENT zReplica management includes yplacement ymechanisms to use for keeping the replicas consistent zThe placement problem is split into two sub problems: yplacing replica servers yplacing content 5Prof. Orhan Gemikonakli - Camerino,

Replica Management To decide o where o when and o by whom replicas should be placed. Placement problem* o Placing servers o Placing content * Client aware placement / client unaware placement Prof. Orhan Gemikonakli - Camerino,6

Replica Server Placement Prof. Orhan Gemikonakli - Camerino,7 zFChoosing a proper cell size for server placement.

Content Replication and Placement zThe logical organization of different kinds of copies of a data store into three concentric rings. Prof. Orhan Gemikonakli - Camerino,8

zPermanent replicas can be considered as the initial set of replicas that constitute a distributed data store. zWeb site distribution yfiles that constitute the Web are replicated in different servers, when a request comes in a round robin policy is applied ymirroring (the client choose which mirror to use) 9 Content Replication and Placement Prof. Orhan Gemikonakli - Camerino,

zServer-initiated replicas are copies of a data store that are created to enhance performance. zWeb server placed in New York. yit may happen that over a couple of days a sudden burst of requests come in from an unexpected location far from the server yit may be worthwhile to install a number of temporary replicas in regions where requests are coming from 10 Content Replication and Placement Prof. Orhan Gemikonakli - Camerino,

Server initiated replicas Prof. Orhan Gemikonakli - Camerino,11 zCounting access requests from different clients.

zClient-initiated replicas are more commonly known as (client) caches zIn principle, managing the cache is left entirely to the client. yHowever, there are many occasions in which the client can rely on participation from the data store zData are generally kept in a cache for a limited amount of time zWhenever requested data can be fetched from the local cache, a cache hit is said to have occurred zWhat is the benefit of caching? 12 Content Replication and Placement Prof. Orhan Gemikonakli - Camerino,

zReplica management also deals with propagation of (updated) content to the relevant replica servers. 1.Propagate only a notification of an update. 2.Transfer data from one copy to another. 3.Propagate the update operation to other copies. 13 Content Replication and Placement Prof. Orhan Gemikonakli - Camerino,

zPropagating a notification is what invalidation protocols do. zThe invalidation may specify which part of the data store has been updated zAdvantages ylittle bandwidth is required to transfer the notification ywork best when there are many update operations compared to read operations zFor instance for a large data store 2 updates may happen without a read in the middle. 14 Content Replication and Placement Prof. Orhan Gemikonakli - Camerino,

z Transferring the modified data among replicas is the second alternative ywhen the read-to-write ratio is relatively high z The third approach is not to transfer any data modifications at all, but to tell each replica which update operation it should perform (active replication) 15 Content Replication and Placement Prof. Orhan Gemikonakli - Camerino,

Pull versus Push Protocols zAnother design issue is whether updates are pulled or pushed zIn a push-based approach updates are propagated to other replicas without those replicas even asking for the updates. yServer-based protocols are applied when replicas need to be kept identical. yThe read-to-update ratio at each replica is relatively high 16Prof. Orhan Gemikonakli - Camerino,

Push Technology Prof. Orhan Gemikonakli - Camerino,17 Client registers interest for service, server pushes new content

Pull versus Push Protocols zIn a pull-based approach, a server or client requests another server to send it any updates it has at that moment. yare often used by client caches yis efficient when the read-to-update ratio is relatively low 18Prof. Orhan Gemikonakli - Camerino,

Browser cache zThe browser will first check its local cache to see whether the object requested from an origin server has already been stored locally on hard disk. z If it has, and it is up-to-date, the object will be returned by the cache to the browser. zHTTP supports the determination of whether the object is current via the If-Modified-Since header. 19Prof. Orhan Gemikonakli - Camerino, Do you know how the browser cache works?

CONSISTENCY PROTOCOLS z A consistency protocol describes an implementation of a specific consistency model. zprimary-based protocol yall processes see all write operations in the same order 20Prof. Orhan Gemikonakli - Camerino,

Local-Write Protocols zPrimary-backup protocol in which the primary migrates to the process wanting to perform an update. Prof. Orhan Gemikonakli - Camerino,21

Summary zReplica management zPermanent replicas zServer initiated replicas zClient initiated replicas zPull versus push protocols zConsistency protocols 22Prof. Orhan Gemikonakli - Camerino,

Next Lecture zFault Tolerance yBasic concepts yFault modelling yFailure masking yRPC Semantics in the Presence of Failures yReliable multicast schemes yVirtual Synchrony yTwo phase commit y|Three phase commit yCheckpointing and Message logging Prof. Orhan Gemikonakli - Camerino,23