下载此文档

《google文件系统》课件.ppt


文档分类:IT计算机 | 页数:约24页 举报非法文档有奖
1/24
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/24 下载此文档
文档列表 文档介绍
GFS: The Google File System
Brad Karp
UCL Computer Science
CS Z03 / 4030
30th October, 2006
1
Motivating Applicay)
Access control information (per-file)
Mapping from files to chunks
Current locations of chunks (chunkservers)
Manages chunk leases to chunkservers
Garbage collects orphaned chunks
Migrates chunks between chunkservers
Holds all metadata in RAM; very fast operations on file system metadata
8
Chunkserver
Stores 64 MB file chunks on local disk using standard Linux filesystem, each with version number and checksum
Read/write requests specify chunk handle and byte range
Chunks replicated on configurable number of chunkservers (default: 3)
No caching of file data (beyond standard Linux buffer cache)
9
Client
Issues control (metadata) requests to master server
Issues data requests directly to chunkservers
Caches metadata
Does no caching of data
No consistency difficulties among clients
Streaming reads (read once) and append writes (write once) don’t benefit much from caching at client
10
Client API
Is GFS a filesystem in traditional sense?
Implemented in kernel, under vnode layer?
Mimics UNIX semantics?
No; a library apps can link in for storage access
API:
open, delete, read, write (as expected)
snapshot: quickly create copy of file
append: at least once, possibly with gaps and/or inconsistencies among clients
11
Client Read
Client sends master:
read(file name, chunk index)
Master’s reply:
chunk ID, chunk version number, locations of replicas
Client sends “closest” chunkserver w/replica:
read(chunk ID, byte range)
“Closest” determined by IP address on simple rack-based network topology
Chunkserver replies with data
12
Client Write
Some chunkserver is primary for each chunk
Master grants lease to primary (typically for 60 sec.)
Leases renewed using periodic heartbeat messages between master and chunkservers
Client asks server for primary and secondary replicas for each chunk
Client sends data to replicas in daisy chain
Pipeli

《google文件系统》课件 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数24
  • 收藏数0 收藏
  • 顶次数0
  • 上传人sanshenglu2
  • 文件大小99 KB
  • 时间2022-07-31