- 1、本文档共23页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
服务器不缓存是因为linux操作系统会把经常访问的数据存放在内存中
The Google File System (GFS) Sanjay Ghemawat, Howard Gobioff, and Shun-Tak Leung Introduction Design constraints设计要求 Component failures are the norm 1000s of components Bugs, human errors, failures of memory, disk, connectors, networking, and power supplies Monitoring, error detection, fault tolerance, automatic recovery监控,错误检测,容错,自动恢复 Files are huge by traditional standards Multi-GB files are common Billions of objects Introduction Design constraints Most modifications are appends Random writes are practically nonexistent Many files are written once, and read sequentially Two types of reads Large streaming reads Small random reads (in the forward direction) Sustained bandwidth more important than latency 高度可用的带宽比低延迟更加重要 File system APIs are open to changes Interface Design Not POSIX compliant 不遵守POSIX规范 Additional operations Snapshot Record append Architectural Design A GFS cluster A single master 在逻辑上只有一个master Multiple chunkservers per master Accessed by multiple clients Running on commodity Linux machines A file 数据以文件形式存储在Chunk Server上 Represented as fixed-sized chunks(数据块) Labeled with 64-bit unique global IDs Stored at chunkservers 3-way Mirrored across chunkservers GFS chunkserver Linux file system Architectural Design (2) GFS Master GFS chunkserver Linux file system GFS chunkserver Linux file system Application GFS client chunk location? chunk data? Architectural Design (3) Master server Maintains all metadata Name space, access control, file-to-chunk mappings, garbage collection, chunk migration GFS clients Consult master for metadata Access data from chunkservers Does not go through VFS No caching at clients and chunkservers due to the frequent case of streaming 客户端大部分是流式顺序读写,并不存在大量的重复读写,缓存文件数据对提高系统整体性能的作用不大,服务器不缓存是因为Linux操作系统会把经常访问的数据存放在内存中 Single-Master Design Simple Master answers only chunk locations A client typically asks for multiple chunk locations in a single request The master also predicatively provide chunk locations immediately f
文档评论(0)