G O O G L E F I L E S Y S T E M 100062142 陳 仕融 100062118 黃 振凱 100062124 林 佑恩 Z 1.

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.
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.
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
The Google File System by S. Ghemawat, H. Gobioff, and S-T. Leung CSCI 485 lecture by Shahram Ghandeharizadeh Computer Science Department University of.
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.
HDFS (Hadoop Distributed File System) Taejoong Chung, MMLAB.
 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.
Distributed File System. Outline Basic Concepts Current project Hadoop Distributed File System Future work Reference.
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.
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
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:

G O O G L E F I L E S Y S T E M 陳 仕融 黃 振凱 林 佑恩 Z 1

OUTLINE  Introduction  Design Overview  System Interactions  Master Operation  Fault Tolerance and Diagnosis  Summary 2

INTRODUCTION 1.A scalable distributed file system 2.For large distributed data-intensive application 3.Fault tolerance, running on cheap hardware 4.High performance for large number of clients 3

INTRODUCTION: GFS IN USE  GFS is…  Widely deployed within Google  Provide hundreds of TBs of storage  For service, research and development use 4

INTRODUCTION  Observations of data usage in Google's application  Files are typically large; multiple GB files are common  Access pattern: most writes are appending while most reads are sequential(no need for caching)  Co-designing applications and file system benefits by increasing flexibility  Component failures are the norm 5

DESIGN OVERVIEW: ASSUMPTIONS  Cheap hardware often fail, and failure must be tolerated and recovered  Large files(GB~TB) must be managed efficiently  Large streaming reads, and small random reads  Large sequential append write  High sustained bandwidth, rather than response time 6

DESIGN OVERVIEW: INTERFACE  Synchronization & atomicity is encapsulated in the GFS library  Create  Delete  Open  Close  Read  Write  Snapshot  Record Append 7

DESIGN OVERVIEW: ENVIRONMENT  Linux machine running user-level applications  One master, multiple chunkservers  Files are divided into fixed-sized(64MB) chunks  Each chunk has a 64-bit handle(or identifier)  By default, each chunk is replicated 3 times  HeartBeat messages – check if server is alive  Client and chunkserver do not cache file data 8

DESIGN OVERVIEW: DATA FLOW 9

DESIGN OVERVIEW: MASTER  File system metadata  Metadata are small enough too keep in memory, which simplify the design and gain performance  File namespace  File to chunk mapping table  System-wide operation  A GFS cluster has only one master 10

SYSTEM INTERACTION  Goal: minimizes the master’s involvements in all operations  Leases and Mutation Order  Data Flow  Atomic Record Appends  Snapshot 11

SYSTEM INTERACTION  Leases and Mutation Order  Mutation: operations(EX: operations such as write or append) that changes the contents or metadata of chunks.  Mutations are performed at all the chunk’s replicas 12

SYSTEM INTERACTION  Lease( 租契 )  Master grants a chunk lease to one of the replica => primary  Primary than picks a serial order for all mutations to the chunk(without master’s intervention) 13

14 System interaction

SYSTEM INTERACTION  Data flow  fully utilize each machine’s network bandwidth : data is pushed linearly along a chain of chunkservers  Avoid network bottlenecks : each machine forwards the data to the closest network  Minimize the latency to push through all the data : pipelining the data transfer over TCP 15

SYSTEM INTERACTION  Atomic Record Appends  Client specifies only data. GFS appends the data to the file at least once atomically at an offset of GFS’s choosing and returns that offset to the client => guarantees replica is written at least once but does not guarantee all replicas are bytewise identical 16

SYSTEM INTERACTION  Snapshot  Makes a copy of a file or a directory  Snapshot implementation  Master receives a snapshot request  Master revokes leases on the chunks in the files it is about to snapshot  Master create a new copy of the chunk  Master logs the operation  Duplicates the metadata for the source file or directory tree  Newly created snapshot files point to same chunks as the source files 17

MASTER OPERATION  Namespace management and locking  GFS represents its namespace as a lookup table mapping full pathnames to metadata  Each node in the namespace tree has an associated read-write lock  Locking scheme  Require no write lock on the parent directory => allows concurrent mutations in the same directory  Read lock on the directory name to prevent the directory from being deleted, renamed, or snapshotted 18

MASTER OPERATION  Replica placement  Creation, Re-replication, Rebalancing  Chunk replicas are created for three reasons  Chunk creation  Re-replication  Rebalancing 19

MASTER OPERATION  Garbage collection  After a file is deleted, GFS does not immediately reclaim the available physical storage.  The file is renamed to a hidden name that includes the deletion timestamp  Remove hidden files for more than three days  The file can still be read and undeleted until it is removed  Orphaned chunks  Replica not known to the master is garbage  Regular background activities of the master 20

MASTER OPERATION  Stale replica detection  Master maintains a chunk version number for each chunk  Master removes stale replicas in its regular garbage collection  Client or the chunkserver always access up-to-date data 21

FAULT TOLERANCE AND DIAGNOSIS  High availability  Fast recovery  Chunk replication  Master replication  Master state is replicated for reliability – its operation logs and checkpoints are replicated on multiple machines  Shadow master – provides read-only access even the primary master is down 22

FAULT TOLERANCE AND DIAGNOSIS  Data integrity  Checksum  Each chunkserver independently verify the integrity of its own copy by maintaining checksums  A chunk is broken up into 64KB blocks. Each block has a corresponding 32 bits checksum  Chunkserver verifies the checksum. If mismatch, the requestor read from other replicas. Master clone correct replica and instructs the chunkserver to delete the false replica 23

FAULT TOLERANCE AND DIAGNOSIS  Diagnostic tools  Diagnostic logs that record many significant events and all RPC(Remote Procedure Call) requests and replies 24

SUMMARY  GFS is widely used within Google as the storage platform for research and development as well as production data processing Google File System is no doubt one of the crucial pusher that pushes Google to the top search engine of the world!! 25

THANKS FOR LISTENING 26