设为首页 收藏本站
查看: 1590|回复: 0

[经验分享] 【读书笔记】 分布式文件存储系统 MogileFS

[复制链接]

尚未签到

发表于 2015-9-9 14:27:50 | 显示全部楼层 |阅读模式
  原文地址在这里: http://blogread.cn/it/article/4311?f=sa
  Dango 的作品,用perl写成;
  代码在这里: https://github.com/mogilefs/
  相关wiki在这里: http://code.google.com/p/mogilefs/wiki/Start?tm=6
  学姿势,有这么几个特征:

  • Application level -- no special kernel modules required.   运行应用层,不需要特定内核模块的支持;
  • No single point of failure -- all three components of a MogileFS setup (storage nodes, trackers, and the tracker's database(s)) can be run on multiple machines, so there's no single point of failure. (you can run trackers on the same machines as storage nodes, too, so you don't need 4 machines...) A minimum of 2 machines is recommended. 没有单点失败,因为其主要的三个部件(tracker,storeage node, tracking DB)都是可以运行在不同的节点上的;建议最少用两台机器。
  • Automatic file replication -- files, based on their "class", are automatically replicated between enough different storage nodes as to satisfy the minimum replica count as requested by their class. For instance, for a photo hosting site you can make original JPEGs have a minimum replica count of 3, but thumbnails and scaled versions only have a replica count of 1 or 2. If you lose the only copy of a thumbnail, the application can just rebuild it. In this way, MogileFS (without RAID) can save money on disks that would otherwise be storing multiple copies of data unnecessarily.  自动复制。我的理解就是自动选择文件的复制和备份,依据是否有节点有足够的存储空间,这样整个决策过程是个动态过程而非静态的决定某个特定文件需要拷贝多少份,这样据说就节省了磁盘空间,减少拷贝次数;而这里的作者描述是,各个文件依据其 类别的不同被自动拷贝到那些拥有足够存储空间的存储节点上去,以满足该类被对于备份数目的最低要求;例如对于图片网站,对于每张原始的JPEG文件至少要存储3份复件,但是缩略图和扩展信息只是存储1份或者2份。如果丢失了缩略图的备份,应用程序只需要重建即可。如此以来,MogileFS就可以节省DISK的开销; (没有看懂这里的逻辑啊。。太弱了)
  • "Better than RAID" -- in a non-SAN RAID setup, the disks are redundant, but the host isn't. If you lose the entire machine, the files are inaccessible. MogileFS replicates the files between devices which are on different hosts, so files are always available. 在RAID中,磁盘有富裕但是主机却不是。当主机都挂了后,存储于磁盘当中的文件就不可访问了。MogileFS的做法是将不同机器节点上的数据在不同的机器间交叉存储,因此数据总是可以访问的;
  • Flat Namespace -- Files are identified by named keys in a flat, global namespace. You can create as many namespaces as you'd like, so multiple applications with potentially conflicting keys can run on the same MogileFS installation.  单一层级的命名空间;各个文件在其所属的命名空间中有唯一的名字来标识;不同的命名空间中是允许有重复命名的;
  • Shared-Nothing -- MogileFS doesn't depend on a pricey SAN with shared disks. Every machine maintains its own local disks. 各个机器拥有和维护子集的本地磁盘,彼此之间不共享磁盘;
  • No RAID required -- Local disks on MogileFS storage nodes can be in a RAID, or not. It's cheaper not to, as RAID doesn't buy you any safety that MogileFS doesn't already provide. RAID对于MogileFS不是必需品;
  • Local filesystem agnostic -- Local disks on MogileFS storage nodes can be formatted with your filesystem of choice (ext3, XFS, etc..). MogileFS does its own internal directory hashing so it doesn't hit filesystem limits such as "max files per directory" or "max directories per directory". Use what you're comfortable with.  MogileFS自己内部实现了一套目录哈系映射操作,不以来于本地的具体文件系统的选择;
  

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-111583-1-1.html 上篇帖子: mogileFS分布式文件存储解决方案 下篇帖子: 简单的MogileFS-2.44安装及配置过程记录一下
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表