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.

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.
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∗
The Hadoop Distributed File System: Architecture and Design by Dhruba Borthakur Presented by Bryant Yao.
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.
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.
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.
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.
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.
GARRETT SINGLETARY.
The Google File System (GFS)
Sanjay Ghemawat, Howard Gobioff, Shun-Tak Leung Google Vijay Kumar
The Google File System (GFS)
The Google File System (GFS)
The Google File System (GFS)
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:

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 Elliot Pennington Chris Scalabrini

System Expectations System failures are the norm System will store some large (multi-gigabyte) files Expected Reads o Large Streaming (over 1MB) o Small Random (a few KB out of someplace random) Expected Writes o Long Appending Writes  Multiple Users Appending at Once o Middle of File Seldom Modified High Bandwidth > Low Latency

The Basic Layout One Master Server A bunch of Chunk Servers Clients

"Chunks" Chunks are pieces of data Identified by "chunk handle" Replicated across multiple Chunkservers to prevent loss o If number is low Master will reallocate more replicas o Reallocation prioritized 64MB o Why so big?  Leaves the Master alone for longer  Less metadata on the master because there are less chunks o Drawbacks  Many clients might want same chunk  Doesn't happen much Store as plain Linux files

The Master Server One master server to rule them all o Makes it simple o Big precautions needed to prevent Master from being a bottleneck Maintains all system Metadata o File and Chunk namespaces o Access control information o Mapping from files to Chunks o Locations for the replicas of every Chunk Also controls o Chunk lease management o Garbage collection o HeartBeat

The Chunkserver Commodity computers running Linux Failures expected Holds Chunks

The Client Responsibilities o Interact with Master to find where to read/write o Interact with Chunkservers to read/write Requests several chunks at once to reduce load on Master All data-bearing messages go directly to and from chunkservers The client does not cache data it reads or writes (nor does the chunkserver) o Files being read are too big for it to be useful o Now no worries about cache coherence

Metadata Storage and Updates All Metadata is kept in memory of the Master A log is kept of all changes, kept on Master disk and replicated on remote systems Master does not store persistent chunk data o Queries all chunk servers at startup to build its Metadata table o Queries new Chunkservers as they join the cluster o Master keeps itself up to date, since it controls all chunk placement o Also periodically scans background (HeartBeat)  Garbage Collection  Re-replication (chunkserver failure)  Chunk Migration

Operation Log Only persistent record of Metadata Time line to define order of concurrent operations Everything uniquely identified in this log Replicated across many Chunkservers No changes visible to client until new changes replicated Batches several files together before flushing Master uses the log file to recover its file system on startup

Log Checkpoints Taken when log grows to a certain size System recovers by playing newest records o Written in tree form to easily read back into memory Take a long time to do Made to not interfere with incoming requests o Done in a separate thread o When completed, written both locally and remotely

Leases and Mutations Client asks master which Chunkserver holds the lease on the chunk (chooses one if no lease) Master tells Clients o which Chunkserver to contact o locations of replicas and secondary replicas C3lient caches this After all the replicas acknowledge data sent write request to primary Primary forwards all data to secondary replicas Secondaries write Primary replies to client and reports errors

Data Flow Fully utilize each machine's bandwidth o Data pushed linearly along chain o Full outbound bandwidth used to transfer data as fast as possible Avoid network bottlenecks o Foward data to "closest" machine o "Distances" can be accurately estimated from IP addresses Minimize Latency to push through all the data o Pipeline data transfer over TCP connections o Once a chunkserver receives some data, it starts forwarding immediately.

Snapshots Copy of file or directory tree Process o Revoke outstanding leases o Logs operation to disk o Makes a copy  On the same Chunkserver  Has everybody refer to that  Nobody can tell the difference!

Namespace Management and Locking Many operations take a long time Don't want to make everybody wait Locking specific areas of namespace o Read lock on directory - prevents deleting, renaming, and snapshotting o Write lock on file name - prevents the same file from being written to twice at the same time Permits concurrent edits to same directory

Garbage Collection (1/2) Garbage collection used rather than immediate deletion o Advantages  Simple, Reliable,Chunkcreation, Uniform o Note that files are rarely deleted o Space is NOT reused right away! Steps to perform "Garbage Collection" o System logs deletion o File is hidden and name is changed o File has its time stamp set - this is used for removal o During regular scan deletes file if timestamp minus current time is older than a specified interval  Interval time is configurable  3 days is cited in paper

Garbage Collection (2/2) Also deletes "orphaned chunks" in scans o An "orphaned chunk" is a chunk that is not reachable from any file o Metadata for this "orphaned chunk" is removed as well When a HeartBeat message is sent from master to chunkservers... o Each chunkserver reports a subset of the chunks it has o Master tells the chunkserver the identity of all chunks in the subset that is contains no metadata for. o Chunkserver garbage collects those files. Stale Replica Detection o Each chunk contains a"chunk version number" (CVN) o Master tells each chunkserver the up-to-date CVN o If the CVN is out of date, chunkserver updates chunk

Fault Tolerance and Diagnostics Fast recovery with logfiles and checkpoints o GFS can easily detect out-of-date or bad chunks, and then fix them Chunk replication o Master coordinates data movement If Master fails o Outside system tells it to make a new Master o Shadow  Provide read-only in event of total failure  Updates itself just like a normal master Chunks have checksums Diagnostics done mostly with logs

Questions? Thank You!