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.

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.
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.
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∗
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.
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.
Data in the Cloud – I Parallel Databases The Google File System Parallel File Systems.
The Google File System Sanjay Ghemawat, Howard Gobioff, Shun-Tak Leung
Outline for today  Administrative  Next week: Monday lecture, Friday discussion  Objective  Google File System  Paper: Award paper at SOSP in 2003.
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.
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.
Map reduce Cs 595 Lecture 11.
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)
CSE 451: Operating Systems Distributed File 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:

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 on the best performance per dollar r Uses customized versions of Linux

Google r Servers are put into racks and connected through a 1 GB Ethernet r Racks are organized into clusters connected and connected to a gigabit cluster switch r A data center consists of clusters r Clusters run an application/service

Google r Google has numerous data centers scattered around the world (2012) m 11 are found in the United States + 3 being built m 1 in Canada m 17 international (outside of US and Canada) r No one is sure of how many and where

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

Google Workload Characteristics r Most files are mutated by appending new data – large sequential writes r Random writes are very uncommon r Files are written once, then they are only read r Reads are sequential r Large streaming reads and small random reads r High sustained throughput favoured over low latency

Google Workload Characteristics r Google applications: m Data analysis programs that scan through data repositories m Data streaming applications m Archiving m Applications producing (intermediate) search results

Assumptions r High component failure rates m Inexpensive commodity components fail all the time r “Modest” number of HUGE files m Just a few million m Each is 100MB or larger; multi-GB files typical

GFS Architecture r Single master for a cluster r Multiple chunkservers

Chunks r Files are divided into fixed-size chunks of 64 MB r Each chunk has an identifier, chunk handle, assigned by the master at the time of chunk creation m Consists of file name, chunk number r Each chunk is replicated 3 times

GFS Architecture

Chunkservers r Store chunks on local disks as Linux files r Read/write chunk data specified by a chunk handle and byte range

GFS Architecture

Master r Stores metadata m The file and chunk namespaces m Mapping from files to chunks m Locations of each chunk’s replicas (referred to as chunk locations) r Interacts with clients r Creates chunk replicas

Master r Orchestrates chunk modifications across multiple replicas r Deletes old files (via garbage collection)

Read r The client application translates the file name and byte offset specified application into a chunk index within the file r The master replies with the corresponding chunk handle (information needed to find a chunk) and locations of the replicas.

Read r The client then sends a request to one of the replicas -- most likely the closest one r Note: Further reads of the same chunk require no more client-master interaction

Updates of Replicated Data r Each mutation (modification) is performed at all the replicas r Modifications are applied in the same order across all replicas r If you have three chunks do you want one chunk to have a b c and other to have a c b ? r For each chunk there is a primary chunk that coordinates updates

Updates of Replicated Data r After finding replicas the client pushes data to the replicas r The replicas do not write r The primary tells the replicas in which order they should apply modifications r For each update the primary assigns a sequence number r Replicas update chunks based on the sequence number

Updates of Replicated Data r Let us say there are two updates to be processed by a chunk from two clients: w a and w b r Their requests are received by the replicas r Different replicas may receive requests in different orders

Updates of Replicated Data r Replicas should apply the writes in the same order r The primary replica assigns a sequence number to each write r w b may get sequence number 1 r w a may get sequence number 2 r The sequence numbers are sent to each replica

Updates of Replicated Data r Let’s say that a replica got w a but not w b r It receives a sequence number of 2 for w a and the sequence number of 1 for w b r It delays executing w a until it receives w b

Updates of Replicated Data 1. Client asks master for replica locations 2. Master responds 3. Client pushes data to all replicas; replicas store it in a buffer cache 4. Client sends a write request to the primary (identifying the data that had been pushed) 5. Primary forwards request to the secondaries (identifies the order) 6. The secondaries respond to the primary 7. The primary responds to the client

Failure Handling During Updates r If a write fails at the primary: m The primary may report failure to the client – the client will retry m If the primary does not respond, the client retries from Step 1 by contacting the master r If a write succeeds at the primary, but fails at several replicas m The client retries several times (Step 3-7)

Metadata On Master r File names and chunk mappings are also kept persistent in an operation log r Chunk locations are kept in memory only m It will be lost during the crash m The master asks chunk servers about their chunks at startup – builds a table of chunk locations

Why Keep Metadata In Memory? r To keep master operations fast r Master can periodically scan its internal state in the background, in order to implement: m Re-replication (in case of chunk server failures) m Chunk migration (for load balancing)

Why Not Keep Chunk Locations Persistent? r Chunk location – which chunk server has a replica of a given chunk r Master polls chunk servers for that information on startup r Thereafter, master keeps itself up-to- date: m It controls all initial chunk placement, migration and re-replication m It monitors chunkserver status with regular HeartBeat messages

Why Not Keep Chunk Locations Persistent? r Motivation: simplicity r Eliminates the need to keep master and chunkservers synchronized r Synchronization would be needed when chunkservers: m Join and leave the cluster m Change names m Fail and restart

Operation Log r Historical record of metadata changes r Maintains logical order of concurrent operations r Log is used for recovery – the master replays it in the event of failures r Master periodically checkpoints the log

Chunk Size r Chunk size is 64 MB m Larger than typical file system block sizes r Advantages m Reduces a client’s need to interact with the master m Reduce network overhead by keeping a persistent TCP connection to the chunkserver over a period of time m Reduces the size of the metadata stored on the master

Chunk Size r Disadvantages m A small file consists of a small number of chunks m The chunkservers storing these chunks may become hot spots if many clients are accessing the same file Does not occur very much in practice

Deployment in Google r Many GFS clusters r Hundreds/thousands of storage nodes each r Managing petabytes of data

Summary r GFS demonstrates how to support large- scale processing workloads on commodity hardware m design to tolerate frequent component failures m optimize for huge files that are mostly appended and read m feel free to relax and extend FS interface as required m go for simple solutions (e.g., single master) r GFS has met Google’s storage needs