摘要 |
Disclosed are a storage method and apparatus for a distributed file system. The method comprises: determining access times to a same file in preset time; and migrating the file to a storage device with higher performance than that of a current storage device according to the access times. Through the present invention, tiered storage is performed on files in the distributed file system according to access heat of the files, that is, a file with a high access frequency in the preset time is migrated to a storage device with high performance, and a file fragment storage location is associated with file fragment access heat through differential storage, so that IOPS pressure between storage devices is balanced and the overall performance is improved. |