by Mikael Bjerga & Arne Lange

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 6 – Google File System (GFS) CSE 490h – Introduction to Distributed Computing, Winter 2008 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)
GFS: The Google File System Michael Siegenthaler Cornell Computer Science CS th March 2009.
Large Scale Sharing GFS and PAST Mahesh Balakrishnan.
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.
Sanjay Ghemawat, Howard Gobioff, and Shun-Tak Leung
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.
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.
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.
HADOOP DISTRIBUTED FILE SYSTEM HDFS Reliability Based on “The Hadoop Distributed File System” K. Shvachko et al., MSST 2010 Michael Tsitrin 26/05/13.
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
File and Storage Systems: The Google File System
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)
Sanjay Ghemawat, Howard Gobioff, Shun-Tak Leung Google Vijay Kumar
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.
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:

by Mikael Bjerga & Arne Lange Google File System by Mikael Bjerga & Arne Lange

Content Introduction Assumptions Design Overview System Interaction Master Operations Fault Tolerance & Diagnosis Measurements Conclusion

Introduction Component failure is the norm rather than the exception Today’s files are huge by traditional standards Many files are mutated by appending to it Appending on files is the focus of optimization

Design Overview

Assumptions GFS is built from components that fail monitor, detect, tolerate failure recovery from failure Most files are large > 100 MB or more High sustained bandwidth more important than low latency 2 kinds of reads/writes large streaming reads/write (appending) small random reads/writes

Architecture 1 single master server Multiple chunk server Files are divided into chunks (fixed length) Chunks are identified by an unique 64-bit long chunk-handle No caching in GFS The chunk servers are linux server and their filesystem is already caching the most prominent files No POSIX API provided

Architecture cont’d

Architecture cont’d Consistency Model

System Interactions

Leases and mutation order Mutations alter content or metadata Leases used to maintain consistency One primary, multiple secondaries Primary decides serial order of mutation application Leases timeout in 60 seconds Extended via Heartbeat Leases can be revoked

Leases and mutation order cont’d

Data flow Data pushed linearly along carefully chosen chain of servers in a pipelined manner. Linearity → Utilize full outbound bandwidth Chosen chain → Avoid network bottleneck and high-latency links Pipeline → Minimize latency

Atomic record appends Only data specified by client At least one atomic append guaranteed Atomic = continuous sequence of bytes Offset returned to client Chunks checked before appends to not exceed 64MB-limit No guarantee of bytewise identical replicas

Snapshot An operation which copies a file or directory tree Uses copy-on-write Minimizes interruptions of ongoing mutations Used to create copies of huge data sets ...or to checkpoint current state before experimentation

Snapshot cont’d

Master Operation

Namespace management and locking Multiple active master operations Locks ensure serialization Namespace logically represented as lookup table Namespace represented as tree in memory, using prefix compression Short example: /d1/d2/d3/leaf Lazy allocation of locks Deadlock prevention using ordering

Replica replacement GFS cluster contains hundreds of chunkservers across many machine racks, accessed by hundreds of clients spread across machine racks Replicas spread across machines for reliability, availability and bandwidth utilization Replicas spread across racks for ensure chunk survival under rack failure Improves reads ...but worsens writes

Creation, re-replication and rebalancing Prefer servers with below-average disk space utilization Avoid many new replicas on one server Spread replicas across racks Re-replication Prioritize chunks who lost many replicas Prioritize chunks for live files Prioritize chunks which block client progress

Creation, re-replication and rebalancing cont’d Re-replication cont’d Limit clone operations Limit bandwidth for cloning operations Rebalancing Balance load Better disk space Gradually fills new chunkservers Delete replica from server with below-average free space

Garbage collection Lazy Deletion logged Renames file to hidden name Removed after three days Remove metadata → Full deletion Uses Heartbeat piggybacks Amortized cost

Stale replica deletion Miss mutation → Stale replica Chunk version number Update version number on lease grant Discovered in chunk-set report to master Removed in garbage collection Version number included when returning lease to client or cloning instructions to chunkserver

Fault Tolerance and Diagnosis

Fault Tolerance & Diagnosis High Availability Fast Recovery Replication Data integrity Use checksums to detect data corruption Each chunks is divided by 64 byte blocks ⇒ each block has a corresponding 32 bit checksum Diagnostic Tools Extensive logging on every server Logs exact request and response Logs used for performance analysis

Measurements

Measurements Test setup: chunk server clients Each machine: - 2 GB of memory - 80 GB 5400 rpm - 100 Mbps full duplex replica 1 1 GFS master replica 16 16

Measurements cont’d Reads N clients read simultaneously a random 4 MB region of a 320 GB file set Repeat 256 times ⇒ each client reads 1 GB of data Expected hit ratio on the buffer cache in chunk server at most 10 % Writes N clients create N distinct files simultaneously Each client write 1 GB to the new file in series of 1 MB writes Record append N clients append simultaneously to a single file

Measurements cont’d

Conclusion

Conclusion GFS demonstrates essential qualities for supporting large-scale data processing workloads on commodity hardware Component failure is the norm, not the exception Optimized for huge files with appends Fault tolerance by constant monitoring, data replication and auto-recovery Chunk replication against server failure Checksumming against data corruption Separate file system control from data transfer Minimize master’s involvement Widely used by Google