摘要 |
The present invention relates to the technical field of storage. Disclosed in an embodiment of the present invention are a data storage method and device for reducing the time delay of reading data, thus improving system performance. The method is applied to a distributed storage system comprising a first server and other servers. The method comprises: determining the first data generated by the first server; determining the relationship between the size of the remaining storage space of the first server and the size of the storage space used by the first data; if the remaining storage space of the first server is larger than or equal to the storage space used by the first data, and the used storage space of the first server is larger than the minimum used storage space of the other servers, then storing the first data in the remaining storage space of the first server. |