Distributed Systems Principles and Paradigms

Similar documents
Distributed Systems Principles and Paradigms. Chapter 11: Distributed File Systems

Distributed Systems Principles and Paradigms

Error Numbers of the Standard Function Block

Internet Routing. IP Packet Format. IP Fragmentation & Reassembly. Principles of Internet Routing. Computer Networks 9/29/2014.

COMPUTER EDUCATION TECHNIQUES, INC. (WEBLOGIC_SVR_ADM ) SA:

2 Computing all Intersections of a Set of Segments Line Segment Intersection

A distributed edit-compile workflow

Shared Memory Architectures. Programming and Synchronization. Today s Outline. Page 1. Message passing review Cosmic Cube discussion

To access your mailbox from inside your organization. For assistance, call:

CS 340, Fall 2016 Sep 29th Exam 1 Note: in all questions, the special symbol ɛ (epsilon) is used to indicate the empty string.

Minimal Memory Abstractions

Inter-domain Routing

CS453 INTRODUCTION TO DATAFLOW ANALYSIS

CS553 Lecture Introduction to Data-flow Analysis 1

COSC 6374 Parallel Computation. Dense Matrix Operations

Greedy Algorithm. Algorithm Fall Semester

Distance vector protocol

CS 241 Week 4 Tutorial Solutions

A Tautology Checker loosely related to Stålmarck s Algorithm by Martin Richards

Introduction to Algebra

Rolling Back Remote Provisioning Changes. Dell Command Integration for System Center

Architecture and Data Flows Reference Guide

Duality in linear interval equations

Pattern Matching. Pattern Matching. Pattern Matching. Review of Regular Expressions

How to Design REST API? Written Date : March 23, 2015

Lexical Analysis: Constructing a Scanner from Regular Expressions

UTMC APPLICATION NOTE UT1553B BCRT TO INTERFACE PSEUDO-DUAL-PORT RAM ARCHITECTURE INTRODUCTION ARBITRATION DETAILS DESIGN SELECTIONS

McAfee Web Gateway

Troubleshooting. Verify the Cisco Prime Collaboration Provisioning Installation (for Advanced or Standard Mode), page

Type Checking. Roadmap (Where are we?) Last lecture Context-sensitive analysis. This lecture Type checking. Symbol tables

Midterm Exam CSC October 2001

Slides for Data Mining by I. H. Witten and E. Frank

LINX MATRIX SWITCHERS FIRMWARE UPDATE INSTRUCTIONS FIRMWARE VERSION

Class Overview. Database Design. Database Design Process. Database Design. Introduction to Data Management CSE 414

File Manager Quick Reference Guide. June Prepared for the Mayo Clinic Enterprise Kahua Deployment

Architecture and Data Flows Reference Guide

COSC 6374 Parallel Computation. Non-blocking Collective Operations. Edgar Gabriel Fall Overview

COSC 6374 Parallel Computation. Communication Performance Modeling (II) Edgar Gabriel Fall Overview. Impact of communication costs on Speedup

Quiz2 45mins. Personal Number: Problem 1. (20pts) Here is an Table of Perl Regular Ex

PARALLEL AND DISTRIBUTED COMPUTING

CS Summer Lecture #23: Network and End-to-End layers

Fig.25: the Role of LEX

Reducing a DFA to a Minimal DFA

Lesson 4.4. Euler Circuits and Paths. Explore This

Agilent Mass Hunter Software

The Network Layer: Routing in the Internet. The Network Layer: Routing & Addressing Outline

If you are at the university, either physically or via the VPN, you can download the chapters of this book as PDFs.

OUTPUT DELIVERY SYSTEM

Network Layer: Routing Classifications; Shortest Path Routing

UT1553B BCRT True Dual-port Memory Interface

CMPUT101 Introduction to Computing - Summer 2002

Three planes in networks

MTH 146 Conics Supplement

Lecture 10 Evolutionary Computation: Evolution strategies and genetic programming

V = set of vertices (vertex / node) E = set of edges (v, w) (v, w in V)

Software Configuration Management

Blackbaud s Mailwise Service Analyse Records Updated by MailWise

CS 430 Spring Mike Lam, Professor. Parsing

From Dependencies to Evaluation Strategies

COMP 423 lecture 11 Jan. 28, 2008

10.2 Graph Terminology and Special Types of Graphs

Zenoss Resource Manager Installation Guide

Lecture 13: Graphs I: Breadth First Search

Definition of Regular Expression

All in One Kit. Quick Start Guide CONNECTING WITH OTHER DEVICES SDE-4003/ * 27. English-1

WORKSHOP 9 HEX MESH USING SWEEP VECTOR

Tixeo compared to other videoconferencing solutions

MITSUBISHI ELECTRIC RESEARCH LABORATORIES Cambridge, Massachusetts. Introduction to Matroids and Applications. Srikumar Ramalingam

Lost in Translation: A Reflection on the Ballot Problem and André's Original Method

What are suffix trees?

Lesson6: Modeling the Web as a graph Unit5: Linear Algebra for graphs

In the last lecture, we discussed how valid tokens may be specified by regular expressions.

Data sharing in OpenMP

Network Interconnection: Bridging CS 571 Fall Kenneth L. Calvert All rights reserved

Control Center Installation Guide

Solving Problems by Searching. CS 486/686: Introduction to Artificial Intelligence Winter 2016

c s ha2 c s Half Adder Figure 2: Full Adder Block Diagram

Today. CS 188: Artificial Intelligence Fall Recap: Search. Example: Pancake Problem. Example: Pancake Problem. General Tree Search.

Languages. L((a (b)(c))*) = { ε,a,bc,aa,abc,bca,... } εw = wε = w. εabba = abbaε = abba. (a (b)(c)) *

Announcements. CS 188: Artificial Intelligence Fall Recap: Search. Today. Example: Pancake Problem. Example: Pancake Problem

Graphs with at most two trees in a forest building process

Certificate Replacement. 26 SEP 2017 VMware Validated Design 4.1 VMware Validated Design for Management and Workload Consolidation 4.

Systems I. Logic Design I. Topics Digital logic Logic gates Simple combinational logic circuits

CS 340, Fall 2014 Dec 11 th /13 th Final Exam Note: in all questions, the special symbol ɛ (epsilon) is used to indicate the empty string.

INSTALLING PRIVA GATEWAY FOR PRIVA CONNEXT

Final Exam Review F 06 M 236 Be sure to look over all of your tests, as well as over the activities you did in the activity book

Implementing Automata. CSc 453. Compilers and Systems Software. 4 : Lexical Analysis II. Department of Computer Science University of Arizona

Today. Search Problems. Uninformed Search Methods. Depth-First Search Breadth-First Search Uniform-Cost Search

Certificate Replacement. 21 AUG 2018 VMware Validated Design 4.3 VMware Validated Design for Software-Defined Data Center 4.3

TEMPLATE FOR ENTRY in Encyclopedia of Database Systems: GRID FILE. Yannis Manolopoulos

Zenoss Core Installation Guide

Lecture 8: Graph-theoretic problems (again)

CS143 Handout 07 Summer 2011 June 24 th, 2011 Written Set 1: Lexical Analysis

Chapter 4 Fuzzy Graph and Relation

Midterm 2 Sample solution

View, evaluate, and publish assignments using the Assignment dropbox.

Avocado: A Distributed Virtual Reality Framework

CSCI 446: Artificial Intelligence

Presentation Martin Randers

CSCI 104. Rafael Ferreira da Silva. Slides adapted from: Mark Redekopp and David Kempe

Transcription:

Distriuted Systems Priniples nd Prdigms Christoph Dorn Distriuted Systems Group, Vienn University of Tehnology.dorn@infosys.tuwien..t http://www.infosys.tuwien..t/stff/dorn Slides dpted from Mrten vn Steen, VU Amsterdm, steen@s.vu.nl Chpter 11: Distriuted File Systems

Contents Chpter 01: Introdution 02: Arhitetures 03: Proesses 04: Communition 05: Nming 06: Synhroniztion 07: Consisteny & Replition 08: Fult Tolerne 09: Seurity 10: Distriuted Ojet-Bsed Systems 11: Distriuted File Systems 12: Distriuted We-Bsed Systems 13: Distriuted Coordintion-Bsed Systems DS WS 2014 2 / 14

Distriuted File Systems Generl gol Try to mke file system trnsprently ville to remote lients. 1. File moved to lient Old file New file Requests from lient to ess remote file File stys on server Remote ess model 2. Aesses re done on lient 3. When lient is done, file is returned to Uplod/downlod model DS WS 2014 3 / 14

NFS Exmple: NFS Arhiteture NFS is implemented using the Virtul File System strtion, whih is now used for lots of different operting systems. System ll lyer System ll lyer Virtul file system (VFS) lyer Virtul file system (VFS) lyer Lol file system interfe NFS lient NFS server Lol file system interfe RPC lient stu RPC server stu Network DS WS 2014 4 / 14

Exmple: NFS Arhiteture Essene VFS provides stndrd file system interfe, nd llows to hide differene etween essing lol or remote file system. Question Is NFS tully file system? DS WS 2014 5 / 14

NFS File Opertions Oper. v3 v4 Desription Crete Yes No Crete regulr file Crete No Yes Crete nonregulr file Link Yes Yes Crete hrd link to file Symlink Yes No Crete symoli link to file Mkdir Yes No Crete sudiretory Mknod Yes No Crete speil file Renme Yes Yes Chnge the nme of file Remove Yes Yes Remove file from file system Rmdir Yes No Remove n empty sudiretory Open No Yes Open file Close No Yes Close file Lookup Yes Yes Look up file y mens of nme Reddir Yes Yes Red the entries in diretory Redlink Yes Yes Red the pth nme in symoli link Getttr Yes Yes Get the ttriute vlues for file Setttr Yes Yes Set one or more file-ttriute vlues Red Yes Yes Red the dt ontined in file Write Yes Yes Write dt to file DS WS 2014 6 / 14

Cluster-Bsed File Systems Oservtion With very lrge dt olletions, following simple lient-server pproh is not going to work for speeding up file esses, pply striping tehniques y whih files n e fethed in prllel. File lok of file File lok of file e d e d e d e Whole-file distriution e d d d e e DS WS 2014 File-striped 7 / 14 system

GFS lient Exmple: Google File System file nme, hunk index Mster ontt ddress Instrutions Chunk-server stte Chunk ID, rnge Chunk dt Chunk server Linux file system Chunk server Linux file system Chunk server Linux file system The Google solution Divide files in lrge 64 MB hunks, nd distriute/replite hunks ross mny servers: The mster mintins only (file nme, hunk server) tle in min memory miniml I/O Files re replited using primry-kup sheme; the mster is kept out of the loop DS WS 2014 8 / 14

Prolem When deling with distriuted file systems, we need to tke into ount the ordering of onurrent red/write opertions nd expeted semntis (i.e., onsisteny). Single mhine Originl file File shring semntis mhine #1 Proess A 2. Write "" File server 1. Red "" Proess A 3. Red gets "" mhine #2 Proess B Proess B 1. Write "" 2. Red gets "" () DS WS 2014 9 / 14 ()

File shring semntis Semntis UNIX semntis: red opertion returns the effet of the lst write opertion n only e implemented for remote ess models in whih there is only single opy of the file Trnstion semntis: the file system supports trnstions on single file issue is how to llow onurrent ess to physilly distriuted file Session semntis: the effets of red nd write opertions re seen only y the lient tht hs opened ( lol opy) of the file wht hppens when file is losed (only one lient my tully win) DS WS 2014 10 / 14

Essene Exmple: File shring in Cod Cod ssumes trnstionl semntis, ut without the full-fledged pilities of rel trnstions. Note: Trnstionl issues repper in the form of this ordering ould hve tken ple. Session S A Open(RD) File f Invlidte Close Open(WR) File f Close Session S B Time DS WS 2014 11 / 14

Consisteny nd replition Oservtion In modern distriuted file systems, lient-side hing is the preferred tehnique for ttining performne; server-side replition is done for fult tolerne. Oservtion s re llowed to keep (lrge prts of) file, nd will e notified when ontrol is withdrwn servers re now generlly stteful 1. sks for file 2. delegtes file Old file Lol opy 3. rells delegtion 4. sends returns file Updted file DS WS 2014 12 / 14

Exmple: -side hing in Cod A Session S A Session SA Open(RD) File f Invlidte (llk rek) Close Open(RD) File f Close File f OK (no file trnsfer) Open(WR) Open(WR) Close Close B Session S B Session S B Time Note By mking use of trnstionl semntis, it eomes possile to further improve performne. DS WS 2014 13 / 14

Exmple: -side replition in Cod S 1 S 3 A S 2 Broken network B Min issue Ensure tht onurrent updtes re deteted: Eh lient hs n Aessile Volume Storge Group (AVSG): is suset of the tul VSG. Version vetor CVV i (f )[j] = k S i knows tht S j hs seen version k of f. Exmple: A updtes f S 1 = S 2 = [+1,+1,+0]; B updtes f S 3 = [+0,+0,+1]. DS WS 2014 14 / 14