Lecture 6 – Google File System (GFS) CSE 490h – Introduction to Distributed Computing, Winter 2008 Except as otherwise noted, the content of this presentation.

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

Question Scalability vs Elasticity What is the difference?
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 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.
The Google File System and Map Reduce. The Team Pat Crane Tyler Flaherty Paul Gibler Aaron Holroyd Katy Levinson Rob Martin Pat McAnneny Konstantin Naryshkin.
1 The File System Sanjay Ghemawat, Howard Gobioff, Shun-Tak Leung (Google)
Large Scale Sharing GFS and PAST Mahesh Balakrishnan.
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∗
Lecture #8 Giant-Scale Services CS492 Special Topics in Computer Science: Distributed Algorithms and Systems.
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.
Problem-solving on large-scale clusters: theory and applications Lecture 4: GFS & Course Wrap-up.
HADOOP DISTRIBUTED FILE SYSTEM HDFS Reliability Based on “The Hadoop Distributed File System” K. Shvachko et al., MSST 2010 Michael Tsitrin 26/05/13.
 Introduction  Architecture NameNode, DataNodes, HDFS Client, CheckpointNode, BackupNode, Snapshots  File I/O Operations and Replica Management File.
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)
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.
GFS.
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)
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 6 – Google File System (GFS) CSE 490h – Introduction to Distributed Computing, Winter 2008 Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution 2.5 License.

Previous Classes Why Distribute? MapReduce  Why  Implementation Details of RPC Other Large Systems: Web Services But… how is all this data stored?

Distributed File Systems Trade Offs in Distributed File Systems  Performance  Scalability  Reliability  Availability How do you decide? Two Core Approaches  Super Computer?  Or many cheap computers?

Motivation Google went the cheap commodity route…  Lots of data on cheap machines! Yikes! Why not use an existing file system?  Unique problems  GFS is designed for Google apps and workloads  Google apps are designed for GFS

Assumptions Failures are the norm  Detect errors, recover, tolerate faults, etc  Software errors (we’re only human) Huge files  Multi-GB files are common  But there aren’t THAT many files

Assumptions (cont.) Mutations are typically appending new data  Random writes are rare  Once written, files are only read, and typically sequentially  Optimize for this! Large consecutive reads, small random reads Want high sustained bandwidth – low latency is not that important Google is designing apps AND file system

GFS Interface Supports usual commands  Create, delete, open, close, read, write Snapshot  Copies a file or a directory tree Record Append  Allows multiple concurrent appends to same file

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

Architecture Files divided into fixed-sized chunks (64 MB)  Each chunk gets a chunk handle from master  Stored as linux files One Master  Maintains all filesystem metadata  Talks to each chunksever periodically Multiple Chunkservers  Store chunks on local disks  No caching of chunks. (Why not?) Multiple Clients  Clients talk to master for metadata operations  Read / write data from chunkservers

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 (64 MB) master delegates authority to primary replicas in data mutations (chunk leases) Simple, and good enough!

Master’s responsibilities (1/2) Metadata storage Namespace management/locking Periodic communication with chunkservers  give instructions, collect state, track cluster health Garbage Collection

Master’s responsibilities (2/2) Chunk creation  Place new replicas on chunkservers with below average disk-space utilization  Limit number of recent creations on each chunk server  Spread replicas across racks Re-Replicate when replicas fall below user goal  How do you assign priorities? Periodic rebalancing  Better disk space usage  Load balancing

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  Any problems?

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

Garbage Collection First… how would you do it?

Garbage Collection How to…  Master logs deletion immediately, and renames to hidden file  Lazily garbage collects hidden files via re-scans Also identifies orphaned chunks Why?  Simple and reliable when failures are common  Merges storage reclamation into background activities  Delay is safety net against background activities

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 appends Used heavily by Google apps  e.g., for files that serve as multiple-producer/single- consumer 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 undefined  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

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

Deployment in Google 50+ GFS clusters Each with thousands of storage nodes Managing petabytes of data GFS is under BigTable, etc.

Conclusion GFS demonstrates how to support large-scale processing 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 good!

Discussion Is GFS useful as a general-purpose commercial product?