Method and device for updating data in distributed storage system
A distributed storage and data update technology, applied in the field of distributed systems, can solve problems such as inability to guarantee data consistency of multiple copies, increase overhead, etc., to achieve the effect of solving data consistency, improving efficiency, and ensuring reading performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Example Embodiment
[0050] Example 1
[0051] see figure 1 shown, figure 1 It is a flowchart of Embodiment 1 of the data update method in the distributed storage system disclosed in the embodiment of the present invention. In this embodiment, the method may include:
[0052] Step 101: The current server node receives the data to be updated sent by the client.
[0053]The client first sends the data to be updated to a server node in the distributed storage system. For example, user information is stored on each server node in the distributed storage system, and if the user information needs to be changed, the client Sending new user information to one of the server nodes is the data to be updated, and the server node that receives the new user information is the current server node.
[0054] Step 102: The current server node incrementally assigns a unique version number to the data to be updated, and acquires the identifiers of multiple replica server nodes where multiple copies of the data to ...
Example Embodiment
[0066] Embodiment 2
[0067] refer to figure 2 shown, figure 2 In the flowchart of Embodiment 2 of the method for updating data in a distributed storage system disclosed in this embodiment of the present invention, in addition to steps 101 to 104 in Embodiment 1, after step 104, the method may further include:
[0068] Step 201: The current server node caches the data to be updated, and deletes the data to be updated after all the multiple replica server nodes are updated.
[0069] The current server node first caches the data to be updated, and when the data is successfully updated on all replica server nodes, it can be deleted. In addition, when the current server node has insufficient space, it can also be deleted, which can save less space. The storage space of the current server node.
[0070] It should be noted that, in this embodiment of the present invention, the recently updated data can be cached separately on at least one replica node, that is, on a replica ser...
Example Embodiment
[0084] Embodiment 3
[0085] see image 3 shown, image 3 It is a schematic structural diagram of Embodiment 1 of a data update apparatus in a distributed storage system disclosed in an embodiment of the present invention. In this embodiment, the apparatus may include:
[0086] The metadata information repository 301 is used to store the identifier of each server node in the distributed storage system, the distribution information of the replica in the server node and the status of the replica;
[0087] Receive data to be updated module 302, configured to receive data to be updated sent by the client;
[0088] The allocation module 303 is used to incrementally allocate a unique version number for the data to be updated;
[0089] an obtaining module 304, configured to obtain, from the metadata information repository, the identifiers of multiple replica server nodes where multiple copies of the data to be updated are located;
[0090] The sending module 305 is configured to se...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2023 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap