Operation method and apparatus for data storage system
First Claim
1. An operation method for a data storage system including a management node and a plurality of data nodes, comprising:
- receiving, by a first data node of the plurality of data nodes, a data operation message, wherein the data operation message carries a data operation type and information of a data object;
querying, by the first data node, a state parameter of the data object, wherein the state parameter is allocated to the first data node by the management node, the state parameter is used to indicate whether the data object is updated to a latest version;
acquiring, by the first data node, information of a second data node storing the data object with a state parameter indicating that the data object is updated to the latest version from a node state table saved by the first data node when the state parameter indicates the data object in the first node is not updated to the latest version, wherein the node state table records data saved by each data node and a state parameter corresponding to the saved data; and
sending, by the first data node, a read operation message to the second data node to read the data object from the second data node when the operation type is a read operation, wherein the read operation message comprises the information of the data object.
1 Assignment
0 Petitions
Accused Products
Abstract
An operation method and apparatus for a data storage system are provided, which relate to the field of data storage and enhance efficiency of a read operation on distributed stored data. The method includes: receiving, by a data node, a data operation message, where the data operation message carries a data operation type and a data object of an operation; querying a state parameter of the data object, where the state parameter is allocated to the data node by a management node, and is used to indicate an update state of the data object, and the update state includes a synchronous state, a semi-synchronous state and an asynchronous state; and if the state parameter is the synchronous state and the operation type is a read operation, reading the data object stored by the data node. Embodiments of the invention are used to operate data in a distributed data storage system.
30 Citations
28 Claims
-
1. An operation method for a data storage system including a management node and a plurality of data nodes, comprising:
-
receiving, by a first data node of the plurality of data nodes, a data operation message, wherein the data operation message carries a data operation type and information of a data object; querying, by the first data node, a state parameter of the data object, wherein the state parameter is allocated to the first data node by the management node, the state parameter is used to indicate whether the data object is updated to a latest version; acquiring, by the first data node, information of a second data node storing the data object with a state parameter indicating that the data object is updated to the latest version from a node state table saved by the first data node when the state parameter indicates the data object in the first node is not updated to the latest version, wherein the node state table records data saved by each data node and a state parameter corresponding to the saved data; and sending, by the first data node, a read operation message to the second data node to read the data object from the second data node when the operation type is a read operation, wherein the read operation message comprises the information of the data object. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A first data node included in a data storage system, comprising:
-
a processor; and a non-transitory computer-readable storage medium coupled to the processor and storing programming instructions for execution by the processor, the programming instructions instruct the processor to; receive a data operation message, wherein the data operation message carries a data operation type and information of a data object; query a state parameter of the data object, wherein the data parameter is allocated to the first data node by a management node in the data storage system, the state parameter is used to indicate whether the data object is updated to a latest version acquire information of a second data node storing the data object with a state parameter indicating that the data object is updated to the latest version from a node state table saved by the first data node when the state parameter indicates the data object in the first node is not updated to the latest version, wherein the data storage system comprises a plurality of data nodes, and wherein the node state table records data saved by each data node and a state parameter corresponding to the saved data; and send a read operation message to the second data node to read the data object from the second data node when the operation type is a read operation, wherein the read operation message comprises the information of the data object. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. A computer program product, comprising computer executable instructions stored on a non-transitory computer-readable medium, wherein when the instructions are executed by a processor of a first data node in a data storage system including a management node and a plurality of data nodes, causes the processor to:
-
receive a data operation message, wherein the data operation message carries a data operation type and information of a data object; query a state parameter of the data object, wherein the data parameter is allocated to the first data node by the management node, the state parameter is used to indicate whether the data object is updated to a latest version; acquire information of a second data node storing the data object with a state parameter indicating that the data object is updated to the latest version from a node state table saved by the first data node when the state parameter indicates the data object in the first node is not updated to the latest version, wherein the node state table records data saved by each data node and a state parameter corresponding to the saved data; and send a read operation message to the second data node to read the data object from the second data node when the operation type is a read operation, wherein the read operation message comprises the information of the data object. - View Dependent Claims (21, 22, 23, 24, 25, 26, 27, 28)
-
Specification