【FastDFS】初步了解

来源:互联网 发布:江苏域名备案 编辑:程序博客网 时间:2024/06/05 09:08

FastDFS简介


    FastDFS is an open source high performance distributed file system. It's major functions include: file storing, file syncing and file accessing (file uploading and file downloading), and it can resolve the high capacity and load balancing problem. FastDFS should meet the requirement of the website whose service based on files such as photo sharing site and video sharing site.

    FastDFS是一个开源的高性能分布式文件系统。主要功能包括:文件存储,文件同步和文件访问(文件上传和文件下载),可以解决大容量和负载均衡问题。 FastDFS应该满足网站的要求,该网站的服务基于照片共享站点和视频共享站点等文件。


    FastDFS has two roles: tracker and storage. The tracker takes charge of scheduling and load balancing for file access. The storage store files and it's function is file management including: file storing, file syncing, providing file access interface. It also manage the meta data which are attributes representing as key value pair of the file. For example: width=1024, the key is "width" and the value is "1024".

    FastDFS有两个角色:跟踪和存储。跟踪器负责调度和文件访问的负载平衡。存储存储文件及其功能是文件管理,包括文件存储,文件同步,提供文件访问接口。它还管理作为文件的键值对的属性的元数据。例如:width = 1024,键为“width”,值为“1024”。

    The tracker and storage contain one or more servers. The servers in the tracker or storage cluster can be added to or removed from the cluster by any time without affecting the online services. The servers in the tracker cluster are peer to peer.

    跟踪器和存储器包含一个或多个服务器。跟踪器或存储集群中的服务器可以随时添加到集群或从集群中删除,而不影响在线服务。跟踪器集群中的服务器是对等的。

    The storarge servers organizing by the file volume/group to obtain high capacity. The storage system contains one or more volumes whose files are independent among these volumes. The capacity of the whole storage system equals to the sum of all volumes' capacity. A file volume contains one or more storage servers whose files are same among these servers. The servers in a file volume backup each other, and all these servers are load balancing. When adding a storage server to a volume, files already existing in this volume are replicated to this new server automatically, and when this replication done, system will switch this server online to providing storage services.

    由文件卷/组组织的storarge服务器获得高容量。存储系统包含一个或多个文件在这些卷之间是独立的卷。整个存储系统的容量等于所有卷容量的总和。文件卷包含一个或多个文件在这些服务器中相同的存储服务器。文件卷中的服务器互相备份,所有这些服务器都是负载平衡。将存储服务器添加到卷时,此卷中已存在的文件将自动复制到此新服务器,并且完成此复制后,系统将将此服务器联机以提供存储服务。

    When the whole storage capacity is insufficiency, you can add one or more volumes to expand the storage capacity. To do this, you need to add one or more storage servers.

    当整个存储容量不足时,您可以添加一个或多个卷来扩展存储容量。为此,您需要添加一个或多个存储服务器。

    The identification of a file is composed of two parts: the volume name and the file name.

    文件的标识由卷名和文件名两部分组成。

————以上内容来自https://github.com/happyfish100/fastdfs 作者余庆,是淘宝开发平台部资深架构师同样是fastDFS的开发者。

    对此,我画了个图,以此来说明一下我对此简介的概括。


FastDFS系统结构如下图所示:


    最后,只有你想不到没有找不到的,如何快速找到你想要的知识需要有扎实的语言基础。加紧脚步,充实自己,奋起!

0 0
原创粉丝点击