Lecture #8 Giant-Scale Services CS492 Special Topics in Computer Science: Distributed Algorithms and Systems.

Slides:



Advertisements
Similar presentations
The Google File System Sanjay Ghemawat, Howard Gobioff, and Shun-Tak Leung SOSP 2003 Presented by Wenhao Xu University of British Columbia.
Advertisements

Sanjay Ghemawat, Howard Gobioff and Shun-Tak Leung
The google file system Cs 595 Lecture 9.
THE GOOGLE FILE SYSTEM CS 595 LECTURE 8 3/2/2015.
G O O G L E F I L E S Y S T E M 陳 仕融 黃 振凱 林 佑恩 Z 1.
Sanjay Ghemawat, Howard Gobioff, and Shun-Tak Leung Google Jaehyun Han 1.
The Google File System Authors : Sanjay Ghemawat, Howard Gobioff, Shun-Tak Leung Presentation by: Vijay Kumar Chalasani 1CS5204 – Operating Systems.
GFS: The Google File System Brad Karp UCL Computer Science CS Z03 / th October, 2006.
NFS, AFS, GFS Yunji Zhong. Distributed File Systems Support access to files on remote servers Must support concurrency – Make varying guarantees about.
The Google File System (GFS). Introduction Special Assumptions Consistency Model System Design System Interactions Fault Tolerance (Results)
Google File System 1Arun Sundaram – Operating Systems.
Lecture 6 – Google File System (GFS) CSE 490h – Introduction to Distributed Computing, Winter 2008 Except as otherwise noted, the content of this presentation.
Cloud Computing Lecture #2 Introduction to MapReduce Jimmy Lin The iSchool University of Maryland Monday, September 8, 2008 This work is licensed under.
Lecture 5 – Distributed Filesystems CSE 490h – Introduction to Distributed Computing, Spring 2007 Except as otherwise noted, the content of this presentation.
The Google File System. Why? Google has lots of data –Cannot fit in traditional file system –Spans hundreds (thousands) of servers connected to (tens.
1 The File System Sanjay Ghemawat, Howard Gobioff, Shun-Tak Leung (Google)
Large Scale Sharing GFS and PAST Mahesh Balakrishnan.
1 Lessons from Giant-Scale Services IEEE Internet Computing, Vol. 5, No. 4., July/August 2001 Eric A. Brewer University of California, Berkeley, and Iktomi.
Cloud Computing Lecture #2 From Lisp to MapReduce and GFS
The Google File System.
Google File System.
Northwestern University 2007 Winter – EECS 443 Advanced Operating Systems The Google File System S. Ghemawat, H. Gobioff and S-T. Leung, The Google File.
Case Study - GFS.
Google Distributed System and Hadoop Lakshmi Thyagarajan.
Sanjay Ghemawat, Howard Gobioff, and Shun-Tak Leung Google∗
1 The Google File System Reporter: You-Wei Zhang.
CSC 456 Operating Systems Seminar Presentation (11/13/2012) Leon Weingard, Liang Xin The Google File System.
The Google File System Ghemawat, Gobioff, Leung via Kris Molendyke CSE498 WWW Search Engines LeHigh University.
Homework 1 Installing the open source cloud Eucalyptus Groups Will need two machines – machine to help with installation and machine on which to install.
The Google File System Presenter: Gladon Almeida Authors: Sanjay Ghemawat Howard Gobioff Shun-Tak Leung Year: OCT’2003 Google File System14/9/2013.
The Google File System Sanjay Ghemawat, Howard Gobioff, Shun-Tak Leung
MapReduce and GFS. Introduction r To understand Google’s file system let us look at the sort of processing that needs to be done r We will look at MapReduce.
CENG334 Introduction to Operating Systems Erol Sahin Dept of Computer Eng. Middle East Technical University Ankara, TURKEY Network File System Except as.
Presenters: Rezan Amiri Sahar Delroshan
GFS : Google File System Ömer Faruk İnce Fatih University - Computer Engineering Cloud Computing
Eduardo Gutarra Velez. Outline Distributed Filesystems Motivation Google Filesystem Architecture The Metadata Consistency Model File Mutation.
GFS. Google r Servers are a mix of commodity machines and machines specifically designed for Google m Not necessarily the fastest m Purchases are based.
MapReduce Computer Engineering Department Distributed Systems Course Assoc. Prof. Dr. Ahmet Sayar Kocaeli University - Fall 2015.
EE324 DISTRIBUTED SYSTEMS FALL 2015 Google File System.
Presenter: Seikwon KAIST The Google File System 【 Ghemawat, Gobioff, Leung 】
Eduardo Gutarra Velez. Outline Distributed Filesystems Motivation Google Filesystem Architecture Chunkservers Master Consistency Model File Mutation Garbage.
Google File System Robert Nishihara. What is GFS? Distributed filesystem for large-scale distributed applications.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Lecture 24: GFS.
Google File System Sanjay Ghemwat, Howard Gobioff, Shun-Tak Leung Vijay Reddy Mara Radhika Malladi.
The Google File System Sanjay Ghemawat, Howard Gobioff, and Shun-Tak Leung Presenter: Chao-Han Tsai (Some slides adapted from the Google’s series lectures)
GFS: The Google File System Brad Karp UCL Computer Science CS GZ03 / M th October, 2008.
Dr. Zahoor Tanoli COMSATS Attock 1.  Motivation  Assumptions  Architecture  Implementation  Current Status  Measurements  Benefits/Limitations.
1 CMPT 431© A. Fedorova Google File System A real massive distributed file system Hundreds of servers and clients –The largest cluster has >1000 storage.
Sanjay Ghemawat, Howard Gobioff, Shun-Tak Leung
Cloud Computing Platform as a Service The Google Filesystem
Google File System.
The Google File System (GFS)
Google Filesystem Some slides taken from Alan Sussman.
Google File System CSE 454 From paper by Ghemawat, Gobioff & Leung.
Gregory Kesden, CSE-291 (Storage Systems) Fall 2017
Gregory Kesden, CSE-291 (Cloud Computing) Fall 2016
The Google File System Sanjay Ghemawat, Howard Gobioff and Shun-Tak Leung Google Presented by Jiamin Huang EECS 582 – W16.
The Google File System (GFS)
The Google File System (GFS)
The Google File System (GFS)
The Google File System (GFS)
CENG334 Introduction to Operating Systems
The Google File System (GFS)
Cloud Computing Storage Systems
THE GOOGLE FILE SYSTEM.
by Mikael Bjerga & Arne Lange
The Google File System Sanjay Ghemawat, Howard Gobioff, and Shun-Tak Leung Google SOSP’03, October 19–22, 2003, New York, USA Hyeon-Gyu Lee, and Yeong-Jae.
The Google File System (GFS)
Presentation transcript:

Lecture #8 Giant-Scale Services CS492 Special Topics in Computer Science: Distributed Algorithms and Systems

Lessons from Giant-Scale Services Eric Brewer UC Berkeley and Inktomi IEEE Internet Computing July/August 2001

Trade-Offs Memory CPU speed Hard Disk Operating Systems 3

“Giant-Scale” Services Key real-world challenges – High avaiability – Evolution – Growth 4

Advantages of Giant-Scale Services Access anywhere, anytime Availability via multiple devices Groupware support Lower overall cost Simplified service updates

Basic Model for Giant-Scale Services

Assumptions Service provide has limited control over clients/network Queries drive the service Read-only queries greatly outnumber updates

Google Data Centers 8 Craig Mitchelldyer/Getty Images Brian Nettles/The Post and Courier

Load Management Round-Robin DNS “Layer 4” switch “Layer 7” switch

Comparison

Availability Metrics Uptime – Uptime = (MTBF – MTTR) / MTBF Mean-time-between-failure (MTBF) Mean-time-to-repair (MTTR) Yield = queries completed/queried offered Harvest = data available/complete data

DQ Principle Data per query x queries per second -> constant – Amount of data that has to be moved per sec

Yield vs Harvest Replicated – Map faults to reduced capacity – Yield drops 50% when half dies Partitioned – Map faults to reduced harvest – Yield remains, but harvest drops 50% But both halve in DQ – Replicated: Q – Partitioned: D 13

Bottom Line Is … When you double capacity, make sure your DQ doubles 14

Graceful Degradation Peak-to-avg ratio = 1.6:1 to 6:1 Single-event bursts can generate far above-average traffic Some faults are not independent Explicit process of managing the effect of saturation – Cost-based access control – Priority or value-based access control – Reduced data freshness

Online Evolution and Growth “Internet time” - frequent product releases Maintenance and upgrades = controlled failures = “online evolution” Fast reboot Rolling upgrade Big flip

Lessons Get the basics right Decide on your availability metrics Focus on MTTR at least as much as MTBF Understand load redirection during faults Graceful degradation Use DQ analysis on all upgrades Automate upgrades as much as possible

Questions from last class How many copies of a chunk? How large is write delay? 18

The Google File System Sanjay Ghemawat, Howard Gobioff, Shun-Tak Leung SOSP 2003

What do you remember about FS? 20

Distributed File System? How is it different from a local file system? 21

Motivation Google needed a good distributed file system – Redundant storage of massive amounts of data on cheap and unreliable computers Why not use an existing file system? – Google’s problems are different from anyone else’s Different workload and design priorities – GFS is designed for Google apps and workloads – Google apps are designed for GFS

Assumptions High component failure rates – Inexpensive commodity components fail all the time “Modest” number of HUGE files – Just a few million – Each is 100MB or larger; multi-GB files typical Files are write-once, mostly appended to – Perhaps concurrently Large streaming reads High sustained throughput favored over low latency

GFS Design Decisions Files stored as chunks – Fixed size (64MB) Reliability through replication – Each chunk replicated across 3+ chunkservers Single master to coordinate access, keep metadata – Simple centralized management No data caching – Little benefit due to large data sets, streaming reads Familiar interface, but customize the API – Simplify the problem; focus on Google apps – Add snapshot and record append operations

GFS Architecture Single master Mutiple chunkservers …Can anyone see a potential weakness in this design?

Single master From distributed systems we know this is a: – Single point of failure – Scalability bottleneck GFS solutions: – Shadow masters – Minimize master involvement never move data through it, use only for metadata – and cache metadata at clients large chunk size master delegates authority to primary replicas in data mutations (c hunk leases) Simple, and good enough!

Metadata (1/2) Global metadata is stored on the master – File and chunk namespaces – Mapping from files to chunks – Locations of each chunk’s replicas All in memory (64 bytes / chunk) – Fast – Easily accessible

Metadata (2/2) Master has an operation log for persistent log ging of critical metadata updates – persistent on local disk – replicated – checkpoints for faster recovery

Mutations Mutation = write or append  must be done for all replicas Goal: minimize master involvement Lease mechanism:  master picks one replica as primary; gives it a “lease” for mutations  primary defines a serial order of mutations  all replicas follow this order Data flow decoupled from control flow

Atomic record append Client specifies data GFS appends it to the file atomically at least once – GFS picks the offset – works for concurrent writers Used heavily by Google apps – e.g., for files that serve as multiple-producer/single-consu mer queues

Relaxed consistency model (1/2) “Consistent” = all replicas have the same value “Defined” = replica reflects the mutation, consistent Some properties: – concurrent writes leave region consistent, but possibly unde fined – failed writes leave the region inconsistent Some work has moved into the applications: – e.g., self-validating, self-identifying records

Relaxed consistency model (2/2) Simple, efficient – Google apps can live with it – what about other apps? Namespace updates atomic and serializable

Master’s Responsibilities (1/2) Metadata storage Namespace management/locking Periodic communication with chunkservers – give instructions, collect state, track cluster health Chunk creation, re-replication, rebalancing – balance space utilization and access speed – spread replicas across racks to reduce correlated failures – re-replicate data if redundancy falls below threshold – rebalance data to smooth out storage and request load

Master’s responsibilities (2/2) Garbage Collection – simpler, more reliable than traditional file delete – master logs the deletion, renames the file to a hidden nam e – lazily garbage collects hidden files Stale replica deletion – detect “stale” replicas using chunk version numbers

Fault Tolerance High availability – fast recovery master and chunkservers restartable in a few seconds – chunk replication default: 3 replicas. – shadow masters Data integrity – checksum every 64KB block in each chunk

Performance

Deployment in Google Many GFS clusters hundreds/thousands of storage nodes each Managing petabytes of data GFS is under BigTable, etc.

Conclusion GFS demonstrates how to support large-scale proces sing workloads on commodity hardware – design to tolerate frequent component failures – optimize for huge files that are mostly appended and read – feel free to relax and extend FS interface as required – go for simple solutions (e.g., single master) GFS has met Google’s storage needs… it must be goo d!

Discussion How many sys-admins does it take to run a system l ike this? – much of management is built in Is GFS useful as a general-purpose commercial prod uct? – small write performance not good enough? – relaxed consistency model