Outline for today  Administrative  Next week: Monday lecture, Friday discussion  Objective  Google File System  Paper: Award paper at SOSP in 2003.

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.
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∗
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.
CPS110: Introduction to Google Landon Cox April 10, 2008.
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
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
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.
CPS110: Introduction to Google Landon Cox April 20, 2009.
Vamsi Thummala Slides by Prof. Cox.
Problem-solving on large-scale clusters: theory and applications Lecture 4: GFS & Course Wrap-up.
HADOOP DISTRIBUTED FILE SYSTEM HDFS Reliability Based on “The Hadoop Distributed File System” K. Shvachko et al., MSST 2010 Michael Tsitrin 26/05/13.
EE324 DISTRIBUTED SYSTEMS FALL 2015 Google File System.
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.
The Google File System Landon Cox February 26, 2016.
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
Data Management with Google File System Pramod Bhatotia wp. mpi-sws
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)
The Google File System (GFS)
CSE 451: Operating Systems Autumn Module 22 Distributed File Systems
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:

Outline for today  Administrative  Next week: Monday lecture, Friday discussion  Objective  Google File System  Paper: Award paper at SOSP in 2003  Slides: with thanks, adapted from slides of Prof. Cox

A brief history of Google BackRub: disk drives 24 GB total storage

A brief history of Google Google: disk drives 366 GB total storage

A brief history of Google Google: ,000 machines ? PB total storage

Google design principles  Workload: easy to parallelize  Want to take advantage of many processors, disks  Why not buy a bunch of supercomputers?  Leverage parallelism of lots of (slower) cheap machines  Supercomputer price/performance ratio is poor  What is the downside of cheap hardware?  Lots of hardware failures 1.Use lots of cheap, commodity hardware 2.Provide reliability in software

What happens on a query? DNS

What happens on a query? Spell Checker Ad Server Document Servers (TB) Index Servers (TB)

Google hardware model  Google machines are cheap and likely to fail  What must they do to keep things up and running?  Store data in several places (replication)  When one machine fails, shift load onto ones still around  Does replication get you anything else?  Enables more parallel reads  Better performance  Good since vast majority of Google traffic is reads

Fault tolerance and performance  Google machines are cheap and likely to fail  Any workloads where this wouldn’t work?  Lots of writes to the same data  Web examples? (web is mostly read)

Fault tolerance and performance  Google machines are cheap and likely to fail  Does it matter how fast an individual machine is?  Somewhat, but not that much  Parallelism enabled by replication has a bigger impact  Any downside to having a ton of machines?  Space  Power consumption  Cooling costs

Google power consumption  A circa 2003 mid-range server  Draws 90 W of DC power under load  55 W for two CPUs  10 W for disk drive  25 W for DRAM and motherboard  Assume 75% efficient ATX power supply  120 W of AC power per server  10 kW per rack

Google power consumption  A server rack fits comfortably in 25 ft 2  Power density of 400 W/ ft 2  Higher-end server density = 700 W/ ft 2  Typical data centers provide W/ ft 2  Google needs to bring down the power density  Requires extra cooling or space  Lower power servers  Must not harm performance  Must not affect price/performance

Google design principles 1.Use lots of cheap, commodity hardware 2.Provide reliability in software  Scale ensures a constant stream of failures  2003: > 15,000 machines  2006: > 100,000 machines  GFS exemplifies how they manage failure

Sources of failure  Software  Application bugs, OS bugs  Human errors  Hardware  Disks, memory  Connectors, networking  Power supplies

Design considerations (what’s different at Google?) 1.Component failures 2.Files are huge (multi-GB files)  Recall that PC files are mostly small  How did this influence PC FS design?  Relatively small block size (~KB)

1.Component failures 2.Files are huge (multi-GB files) 3.Most writes are large, sequential appends  Old data is rarely over-written Design considerations (what’s different at Google?)

1.Component failures 2.Files are huge (multi-GB files) 3.Most writes are large, sequential appends 4.Reads are large and streamed or small and random  Once written, files are only read, often sequentially  Is this like or unlike PC file systems?  PC reads are mostly sequential reads of small files  How do sequential reads of large files affect client caching?  Caching is pretty much useless Design considerations (what’s different at Google?)

1.Component failures 2.Files are huge (multi-GB files) 3.Most writes are large, sequential appends 4.Reads are large and streamed or small and random 5.Design file system for apps that use it  Files are often used as producer-consumer queues  100s of producers trying to append concurrently  Want atomicity of append with minimal synchronization  Want support for atomic append Design considerations (what’s different at Google?)

1.Component failures 2.Files are huge (multi-GB files) 3.Most writes are large, sequential appends 4.Reads are large and streamed or small and random 5.Design file system for apps that use it 6.High sustained bandwidth better than low latency  What is the difference between BW and latency?  Network as road (BW = # lanes, latency = speed limit) Design considerations (what’s different at Google?)

Google File System (GFS)  Similar API to POSIX  Create/delete, open/close, read/write  GFS-specific calls  Snapshot (low-cost copy)  Record_append  (allows concurrent appends, ensures atomicity of each append)  What does this description of record_append mean?  Individual appends may be interleaved arbitrarily  Each append’s data will not be interleaved with another’s

GFS architecture  Cluster-based  Single logical master  Multiple chunkservers  Clusters are accessed by multiple clients  Clients are commodity Linux machines  Machines can be both clients and servers

GFS architecture

File data storage  Files are broken into fixed-size chunks  Chunks are immutable  Chunks are named by a globally unique ID  ID is chosen by the master  ID is called a chunk handle  Servers store chunks as normal Linux files  Servers accept reads/writes with handle + byte range  Chunks are replicated at 3 servers

File meta-data storage  Master maintains all meta-data  What do we mean by meta-data?  Namespace info  Access control info  Mapping from files to chunks  Current chunk locations

Other master responsibilities  Chunk lease management  Garbage collection of orphaned chunks  How might a chunk become orphaned?  If a chunk is no longer in any file  Chunk migration between servers  HeartBeat messages to chunkservers

Client details  Client code is just a library  No in-memory data caching at the client or servers  Clients still cache meta-data  Why don’t servers cache data (trick question)?  Chunks are stored as regular Linux files  Linux’s in-kernel buffer cache already caches chunk content

Master design issues  Single (logical) master per cluster  Master’s state is actually replicated elsewhere  Logically single because client speak to one name  Pros  Simplifies design  Master endowed with global knowledge  (makes good placement, replication decisions)

Master design issues  Single (logical) master per cluster  Master’s state is actually replicated elsewhere  Logically single because client speak to one name  Cons?  Could become a bottleneck  (recall how replication can improve performance)  How to keep from becoming a bottleneck?  Minimize its involvement in reads/writes  Clients talk to master very briefly  Most communication is with servers

Example read  Client uses fixed size chunks to compute chunk index within a file

Example read  Client asks master for the chunk handle at index i of the file

Example read  Master replies with the chunk handle and list of replicas

Example read  Client caches handle and replica list  (maps filename + chunk index  chunk handle + replica list)

Example read  Client sends a request to the closest chunk server  Server returns data to client

Example read  Any possible optimizations?  Could ask for multiple chunk handles at once (batching)  Server could return handles for sequent indices (pre-fetching)

Chunk size  Recall how we chose block/page sizes 1.If too small, too much storage used for meta-data 2.If too large, too much internal fragmentation  2. is only an issue if most files are small  In GFS, most files are really big  What would be a reasonable chunk size?  They chose 64 MB

Master’s meta-data 1.File and chunk namespaces 2.Mapping from files to chunks 3.Chunk replica locations  All are kept in-memory  1. and 2. are also kept persistent  Use an operation log

Operation log  Historical record of all meta-data updates  Only persistent record of meta-data updates  Replicated at multiple machines  Appending to log is transactional  Log records are synchronously flushed at all replicas  To recover, the master replays the operation log

Atomic record_append  Traditional write  Concurrent writes to same file region are not serialized  Region can end up containing fragments from many clients  Record_append  Client only specifies the data to append  GFS appends it to the file at least once atomically  GFS chooses the offset  Why is this simpler than forcing clients to synchronize?  Clients would need a distributed locking scheme  What about clients failing while holding a lock?  Could use leases among clients, but what if machine is just slow?

Mutation order  Mutations are performed at each chunk’s replica  Master chooses a primary for each chunk  Others are called secondary replicas  Primary chooses an order for all mutations  Called “serializing”  All replicas follow this “serial” order

Example mutation  Client asks master  Primary replica  Secondary replicas

Example mutation  Master returns  Primary replica  Secondary replicas

Example mutation  Client sends data  To all replicas  Replicas  Only buffer data  Do not apply  Ack client

Example mutation  Client tells primary  Write request  Identifies sent data  Primary replica  Assigns serial #s  Writes data locally  (in serial order)

Example mutation  Primary replica  Forwards request  to secondaries  Secondary replicas  Write data locally  (in serial order)

Example mutation  Secondary replicas  Ack primary  Like “votes”

Example mutation  Primary replica  Ack client  Like a commit

Example mutation  Errors?  Require consensus  Just retry

Master namespace mgt  Pathnames for naming do not mean per-directory files as structure.  No aliases (hard or symbolic links)  One “flat” structure with prefix compression  Locking  To create /home/user/alex/foo: r-lock /home, /home/user, /home/user/alex w-lock /home/user/alex/foo  Can concurrently create /home/user/alex/bar since /home/user/alex is not w-locked itself  Deadlock prevented by careful ordering of lock acquisition