Method and apparatus for storing data
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsPing Yang, Wen Zhao
Life of this patent
Estimating the term…
Abstract
Embodiments of the present disclosure disclose a method and apparatus for storing data. A specific implementation of the method for storing data includes: receiving a storage request including to-be-stored data; acquiring, for a to-be-written node in a to-be-written node group, a memory performance information set corresponding to at least one memory included in the to-be-written node, and generating a weight value of the to-be-written node based on the acquired memory performance information set; determining, based on a generated weight value set, a target to-be-written node from the to-be-written node group; and storing the to-be-stored data to the target to-be-written node.
Claims11
A method for storing data, the method comprising:
- receiving a storage request comprising to-be-stored data;
- acquiring, for a to-be-written node in a to-be-written node group, a memory performance information set corresponding to at least one memory comprised in the to-be-written node;
- generating a weight value of the to-be-written node based on the acquired memory performance information set;
- determining, based on a generated weight value set, a target to-be-written node from the to-be-written node group;
- and
- storing the to-be-stored data to the target to-be-written node.
An apparatus for storing data, the apparatus comprising:
- at least one processor;
- and
- a memory storing instructions, the instructions when executed by the at least one processor, cause the at least one processor to perform operations, the operations comprising:
- receiving a storage request comprising to-be-stored data;
- acquiring, for a to-be-written node in a to-be-written node group, a memory performance information set corresponding to at least one memory comprised in the to-be-written node;
- generating a weight value of the to-be-written node based on the acquired memory performance information set;
- determining, based on a generated weight value set, a target to-be-written node from the to-be-written node group;
- and
- storing the to-be-stored data to the target to-be-written node.
A non-transitory computer readable medium, storing a computer program thereon, the computer program, when executed by a processor, causes the processor to perform operations, the operations comprising:
- receiving a storage request comprising to-be-stored data;
- acquiring, for a to-be-written node in a to-be-written node group, a memory performance information set corresponding to at least one memory comprised in the to-be-written node;
- generating a weight value of the to-be-written node based on the acquired memory performance information set;
- determining, based on a generated weight value set, a target to-be-written node from the to-be-written node group;
- and
- storing the to-be-stored data to the target to-be-written node.
Dependencies are inferred from the claim text.