My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Overview  

FastDFS is an open source high performance distributed file system (DFS). It's major functions include: file storing, file syncing and file accessing, and design for high capacity and load balancing.

Introduction

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 vidio sharing site.

Details

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".

The architecture of FastDFS:

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. 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 mone storage servers.

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

The file upload flow:

The file download flow:

Comment by windywany@gmail.com, Dec 7, 2010

余老师,我想了解一下fastdfs在fail-over与机制.

Comment by zhur...@gmail.com, Mar 31, 2012

没发现有小文件合并机制啊 文件太大会不会有问题?

还有就是发现上传后,每个文件会实际对应一个硬盘文件和一个软连接。同一个目录下文件太多,查找效率会不会也有问题?

同一个文件多次上传,由于时间的不同,都会保存成不同文件,感觉没有必要啊,感觉文件太冗余了。


Sign in to add a comment
Powered by Google Project Hosting