Data storage method and apparatus, and server
AssigneeHuawei Technologies Co., Ltd.
InventorsChenji GONG, Chao ZHOU, Junjie CHEN
Life of this patent
Estimating the term…
Abstract
This disclosure relates to a data storage method and apparatus, and a server. The method includes receiving, by a first server, a write instruction sent by a second server, storing target data in a cache of a controller, detecting a read instruction for the target data, and storing the target data in a storage medium of a non-volatile memory based on the read instruction. In other words, when the second server needs to write the target data to the first server, the target data is not only written to the cache of the first server, but also written to the storage medium of the first server. This can ensure that the data in the cache is written to the storage medium promptly.
Claims18
A data storage method implemented via, at least, a first server having a non-volatile memory, the non-volatile memory including a controller and a storage medium, the data storage method comprising:
- receiving, by the first server, a write instruction sent by a second server, wherein the first server communicates with the second server through a first network, and the write instruction comprises target data;
- storing, by the first server, the target data in a cache of the controller;
- detecting, by the first server, a read instruction for the target data, wherein the read instruction is used to instruct the first server to store the target data in the storage medium of the non-volatile memory;
- and
- storing, by the first server, the target data in the storage medium of the non-volatile memory based on the read instruction.
A server system, comprising:
- a first server having at least a processor and a non-volatile memory, the non-volatile memory comprising a controller and a storage medium;
- and
- a second server configured to communicate with the first server through a first network,
- wherein the first server is configured to:
- receive a write instruction sent by the second server, wherein the write instruction comprises target data;
- store the target data in a cache of the controller;
- detect a read instruction for the target data, wherein the read instruction is used to instruct the first server to store the target data in the storage medium of the non-volatile memory;
- and
- store the target data in the storage medium of the non-volatile memory based on the read instruction.
A non-transitory computer-readable storage medium storing instructions which, when executed by a computer, cause the computer to provide execution comprising:
- receiving, by a first server having a non-volatile memory that includes a controller and a storage medium, a write instruction sent by a second server, wherein the first server communicates with the second server through a first network, and the write instruction comprises target data;
- storing the target data in a cache of the controller;
- detecting a read instruction for the target data, wherein the read instruction is used to instruct the first server to store the target data in the storage medium of the non-volatile memory;
- and
- storing the target data in the storage medium of the non-volatile memory based on the read instruction.
Dependencies are inferred from the claim text.