Dr. Zahoor Tanoli COMSATS Attock 1.  Motivation  Assumptions  Architecture  Implementation  Current Status  Measurements  Benefits/Limitations.

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.
Distributed File Systems (Chapter 14, M. Satyanarayanan) CS 249 Kamal Singh.
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.
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.
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)
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:

Dr. Zahoor Tanoli COMSATS Attock 1

 Motivation  Assumptions  Architecture  Implementation  Current Status  Measurements  Benefits/Limitations  Conclusion 2

 Need for a scalable DFS  Large distributed data-intensive applications  High data processing needs  Performance, Reliability, Scalability and Availability  More than traditional DFS 3

 Commodity Hardware  Inexpensive  Component Failure  The norm rather than the exception  TBs of Space  Must support TBs of space 4

 Multi-GB files Common  Workloads Large streaming reads Small random reads Large, sequential writes that append data to file Multiple clients concurrently append to one file High sustained bandwidth More important than low latency 5

 Files are divided into chunks  Fixed-size chunks (64MB)  Replicated over chunkservers, called replicas  Unique 64-bit chunk handles  Chunks as Linux files 6

 Single master  Multiple chunkservers  Grouped into Racks  Connected through switches  Multiple clients  Master/chunkserver coordination  HeartBeat messages 7

 Contact single master  Obtain chunk locations  Contact one of chunkservers  Obtain data 8

 Chunk  Files are divided into fixed-size chunks  Each chunk is identified by 64-bit chunk handle  Chunkservers store chunks on local disk as Linux files  Replication for reliability (default 3 replicas)  Master  Maintains all file system metadata ▪ Namespace, access control information, mapping, locations  Manage chunk lease, garbage collection, chunk migration  Periodically communicate with chunkservers (HeartBeat message) Architecture (2)

 64MB  Much larger than typical file system block sizes  Advantages from large chunk size  Reduce interaction between client and master  Client can perform many operations on a given chunk ▪ Reduces network overhead by keeping persistent TCP connection  Reduce size of metadata stored on the master ▪ The metadata can reside in memory

 Metadata  Three types ▪ File & chunk namespaces ▪ Mapping from files to chunks ▪ Locations of chunks’ replicas  Replicated on multiple remote machines  Kept in memory  Operations  Replica placement  New chunk and replica creation  Load balancing  Unused storage reclaim 12

13  Chunk locations  Master do not keep a persistent record of chunk locations  Instead, it simply polls chunkservers at startup and periodically thereafter (heartbeat message)  Because of chunkserver failures, it is hard to keep persistent record of chunk locations  Operation log  Master maintains historical record of critical metadata changes  Namespace and mapping  For reliability and consistency, replicate operation log on multiple remote machines

 Relaxed consistency model  Two types of mutations  Writes ▪ Cause data to be written at an application-specified file offset  Record appends ▪ Operations that append data to a file ▪ Cause data to be appended atomically at least once ▪ Offset chosen by GFS, not by the client  States of a file region after a mutation  Consistent ▪ All clients see the same data, regardless which replicas they read from  Defined ▪ consistent + all clients see what the mutation writes in its entirety  Undefined ▪ consistent +but it may not reflect what any one mutation has written (concurrent)  Inconsistent ▪ Clients see different data at different times (in case of failure) 14

 Master uses leases to maintain a consistent mutation order among replicas  Primary is the chunkserver who is granted a chunk lease  All others containing replicas are secondary  Primary defines a mutation order between mutations  All secondary follows this order 15

Mutation Order  identical replicas  File region may end up containing mingled fragments from different clients (consistent but undefined) 16

 The client specifies only the data  Similar to writes  Mutation order is determined by the primary  All secondary use the same mutation order  GFS appends data to the file at least once atomically  The chunk is padded if appending the record exceeds the maximum size  padding  If a record append fails at any replica, the client retries the operation  record duplicates  File region may be defined but interspersed with inconsistent 17

 Goals  To quickly create branch copies of huge data sets  To easily checkpoint the current state  Copy-on-write technique  Metadata for the source file or directory tree is duplicated  Reference count for chunks are incremented  Chunks are copied later at the first write 18

 contains historical records of metadata changes  replicated on multiple remote machines  kept small by creating checkpoints  checkpointing avoids interfering other mutations by working in a separate thread 19

 Namespaces are represented as a lookup table mapping full pathnames to metadata  Use locks over regions of the namespace to ensure proper serialization  Each master operation acquires a set of locks before it runs 20

 Preventing /home/user/foo from being created while /home/user is being snapshotted to /save/user  Snapshot operation ▪ Read locks on /home and /save ▪ Write locks on /home/user and /save/user  File creation ▪ read locks on /home and /home/user ▪ write locks on /home/user/foo  Conflict locks on /home/user 21

 File namespace mutations (e.g., file creation) are atomic  Namespace management and locking  The master’s operation log  After a sequence of successful mutations, the mutated file is guaranteed to be defined and contain the data written by the last mutation. This is obtained by  Applying the same mutation order to all replicas  Using chunk version numbers to detect stale replica WriteRecord Append Serial SuccessdefinedDefined interspersed with inconsistent Concurrent Successesconsistent but undefined Failureinconsistent 22

 Relying on appends rather on overwrites  Checkpointing  to verify how much data has been successfully written  Writing self-validating records  Checksums to detect and remove padding  Self-identifying records  Unique Identifiers to identify and discard duplicates 23

 Decoupled from control flow  to use the network efficiently  Pipelined fashion ▪ Data transfer is pipelined over TCP connections ▪ Each machine forwards the data to the “closest” machine  Benefits  Avoid bottle necks and minimize latency 24

 Deleted files  Deletion operation is logged  File is renamed to a hidden name, then may be removed later or get recovered  Orphaned chunks (unreachable chunks)  Identified and removed during a regular scan of the chunk namespace  Stale replicas  Chunkserver misses mutation to the chunk due to system down  Master maintains chunk version number to distinguish stale one and up-to-date one  Increase version number when chunk get lease from master  Master periodically remove stale replicas 25

 Creation  Disk space utilization  Number of recent creations on each chunkserver  Spread across many racks  Re-replication  Prioritized: How far it is from its replication goal…  The highest priority chunk is cloned first by copying the chunk data directly from an existing replica  Rebalancing  Periodically rebalance replicas for better disk space and load balancing 26

 Fast Recovery  Operation log  Checkpointing  Chunk replication  Each chunk is replicated on multiple chunkservers on different racks  According to user demand, the replication factor can be modified for reliability  Master replication  Operation log and check points are replicated on multiple machines  Data integrity  Checksumming to detect corruption of stored data  Each chunkserver independently verifies the integrity  Diagnostic logs  Chunkservers going up and down  RPC requests and replies 27

 Two clusters within Google  Cluster A: R & D ▪ Read and analyze data, write result back to cluster ▪ Much human interaction ▪ Short tasks  Cluster B: Production data processing ▪ Long tasks with multi-TB data ▪ Seldom human interaction 28

 Read rates much higher than write rates  Both clusters in heavy read activity  Cluster A supports up to 750MB/read, B: 1300 MB/s  Master was not a bottle neck ClusterAB Read rate (last minute) Read rate (last hour) Read rate (since restart) 583 MB/s 562 MB/s 589 MB/s 380 MB/s 384 MB/s 49 MB/s Write rate (last minute) Write rate (last hour) Write rate (since restart) 1 MB/s 2 MB/s 25 MB/s 101 MB/s 117 MB/s 13 MB/s Master ops (last minute) Master ops (last hour) Master ops (since restart) 325 Ops/s 381 Ops/s 202 Ops/s 533 Ops/s 518 Ops/s 347 Ops/s 29

 Recovery time (of one chunkserver)  15,000 chunks containing 600GB are restored in 23.2 minutes (replication rate  400MB/s) 30

 High availability and component failure  Fault tolerance, Master/chunk replication, HeartBeat, Operation Log, Checkpointing, Fast recovery  TGs of Space  100s of chunkservers, 1000s of disks  Networking  Clusters and racks  Scalability  Simplicity with a single master  Interaction between master and chunkservers is minimized 31

 Multi-GB files  64MB chunks  Sequential reads  Large chunks, cached metadata, load balancing  Appending writes  Atomic record appends  High sustained bandwidth  Data pipelining  Chunk replication and placement policies  Load balancing 32

 Simple design with single master  Fault tolerance  Custom designed  Only viable in a specific environment 33

 Satisfies needs of the application  Fault tolerance 34

“It uses libraries which must be linked into applications instead of standard VFS/vnode layer integration. In some people's opinions (including mine, most of the time) this means it's not really a file system. Certain decisions, such as the lack of data consistency or appends occurring "at least once", make it unsuitable for a large variety of potential applications. The master/client relationship very closely resembles that used in HighRoad 1 (my second-to-last project at EMC) except for the aforementioned lack of OS integration. In particular, the I/O flow description in section 2.3 and the use of leases as described in section 3.1 look extremely familiar to me. The client/chunkserver relationship closely resembles that of the distributed block store that was my last project at EMC, except that it's at a much coarser granularity and non-consistent. “ 35