• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

client/H30-Dec-2019-12,0499,544

common/H30-Dec-2019-947678

conf/H03-May-2022-1,8691,209

docker/H30-Dec-2019-4,2072,652

images/H03-May-2022-

init.d/H30-Dec-2019-150108

php_client/H03-May-2022-11,4519,249

storage/H30-Dec-2019-34,28328,690

test/H30-Dec-2019-2,2911,879

tracker/H30-Dec-2019-17,85715,289

.gitignoreH A D30-Dec-20191.6 KiB10795

HISTORYH A D30-Dec-201936 KiB819718

INSTALLH A D30-Dec-20198.1 KiB210178

README.mdH A D30-Dec-20192.4 KiB4736

README_zh.mdH A D30-Dec-20191.7 KiB2115

fastdfs.specH A D30-Dec-20193.1 KiB13294

make.shH A D30-Dec-20195.4 KiB182159

restart.shH A D30-Dec-20191.7 KiB9781

setup.shH A D30-Dec-2019763 3324

stop.shH A D30-Dec-20191.6 KiB9377

README.md

1Copyright (C) 2008 Happy Fish / YuQing
2
3FastDFS may be copied only under the terms of the GNU General
4Public License V3, which may be found in the FastDFS source kit.
5Please visit the FastDFS Home Page for more detail.
6Chinese language: http://www.fastken.com/
7
8
9FastDFS is an open source high performance distributed file system. It's major
10functions include: file storing, file syncing and file accessing (file uploading
11and file downloading), and it can resolve the high capacity and load balancing
12problem. FastDFS should meet the requirement of the website whose service based
13on files such as photo sharing site and video sharing site.
14
15FastDFS has two roles: tracker and storage. The tracker takes charge of
16scheduling and load balancing for file access. The storage store files and it's
17function is file management including: file storing, file syncing, providing file
18access interface. It also manage the meta data which are attributes representing
19as key value pair of the file. For example: width=1024, the key is "width" and
20the value is "1024".
21
22The tracker and storage contain one or more servers. The servers in the tracker
23or storage cluster can be added to or removed from the cluster by any time without
24affecting the online services. The servers in the tracker cluster are peer to peer.
25
26The storarge servers organizing by the file volume/group to obtain high capacity.
27The storage system contains one or more volumes whose files are independent among
28these volumes. The capacity of the whole storage system equals to the sum of all
29volumes' capacity. A file volume contains one or more storage servers whose files
30are same among these servers. The servers in a file volume backup each other,
31and all these servers are load balancing. When adding a storage server to a
32volume, files already existing in this volume are replicated to this new server
33automatically, and when this replication done, system will switch this server
34online to providing storage services.
35
36When the whole storage capacity is insufficiency, you can add one or more
37volumes to expand the storage capacity. To do this, you need to add one or
38more storage servers.
39
40The identification of a file is composed of two parts: the volume name and
41the file name.
42
43Client test code use client library please refer to the directory: client/test.
44
45For more FastDFS related articles, please subscribe the Wechat/Weixin public account
46(Chinese Language): fastdfs
47

README_zh.md

1  FastDFS是一款开源的分布式文件系统,功能主要包括:文件存储、文件同步、文件访问(文件上传、文件下载)等,解决了文件大容量存储和高性能访问的问题。FastDFS特别适合以文件为载体的在线服务,如图片、视频、文档等等。
2
3  FastDFS作为一款轻量级分布式文件系统,版本V6.01代码量6.3万行。FastDFS用C语言实现,支持Linux、FreeBSD、MacOS等类UNIX系统。FastDFS类似google FS,属于应用级文件系统,不是通用的文件系统,只能通过专有API访问,目前提供了C和Java SDK,以及PHP扩展SDK。
4
5  FastDFS为互联网应用量身定做,解决大容量文件存储问题,追求高性能和高扩展性。FastDFS可以看做是基于文件的key value存储系统,key为文件ID,value为文件内容,因此称作分布式文件存储服务更为合适。
6
7  FastDFS的架构比较简单,如下图所示:
8  ![architect](images/architect.png)
9
10  FastDFS特点如下:
11    1)分组存储,简单灵活;
12    2)对等结构,不存在单点;
13    3)文件ID由FastDFS生成,作为文件访问凭证。FastDFS不需要传统的name server或meta server;
14    4)大、中、小文件均可以很好支持,可以存储海量小文件;
15    5)一台storage支持多块磁盘,支持单盘数据恢复;
16    6)提供了nginx扩展模块,可以和nginx无缝衔接;
17    7)支持多线程方式上传和下载文件,支持断点续传;
18    8)存储服务器上可以保存文件附加属性。
19
20  FastDFS更多更详细的功能和特性介绍,请参阅FastDFS微信公众号的其他文章,搜索公众号:fastdfs。
21