With the rapid development of Internet, information explosion. Traditional way of file storage has been unable to meet the demand for storage space and processing ability. High-performance distributed file system have become a hot research field.FastDFS is an open source distributed file system.Given FastDFS’naming methods and grouping strategies, it is lightweight and has high scalability. Based on existing research work of scholars at home and abroad and open source distributed file system FastDFS, this paper, for the characteristics of Internet applications today and the actual situation of Internet start-ups for demanding real-time Internet applications, tailored a distributed file system. It is more suitable for applications needs store large number of files than FastDFS. This paper focuses on the following aspects which can improve the performance of FastDFS: First,optimization of synchronization strategy among storage server in the same group. Originally timing synchronization based Binlog is optimized to synchronization at the same time of uploading files;Second, add a cache layer, because for Internet applications, the visit of pictures, videos and other resources is likely to continue to be accessed in a short time. Third, use of fragmentation strategy for large file storage. Fragmentation strategy not only can make the entire system store larger files, and in case of a machine downtime,other machines within the same group only need to synchronize with over a block, the unit can provide the file download service. Compared to synchronize the entire file it can be quicker to provide services, and also improves system availability and throughput.Based on VMware virtual machines and Ubuntu11.04operating system, strategies in this paper are tested. Compare with the latest version V4.06of FastDFS, mechanisms proposed in this paper response to client requests faster, and meet the Internet applications’need for file operations better. |