A method, device and system for data synchronization
A data synchronization and equipment technology, applied in the storage field, can solve the problem of low data synchronization efficiency, and achieve the effect of reducing the load, improving the transmission efficiency and increasing the speed.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0055] like figure 2 As shown, it is a flowchart of a method for data synchronization according to Embodiment 1 of the present invention, and the method includes:
[0056] Step 101: The destination client receives the synchronization message that carries the update object and is sent by the network side.
[0057] Wherein, the update object includes a metadata identifier and an update data identifier.
[0058] In the prior art, storage devices generally use hierarchical storage methods for storing data, that is, a first-level directory contains multiple second-level directories, and the multi-level directories form a directory tree, wherein the root directory of the directory tree is called a metadata identifier; The storage path of data in a directory is called an object, and each object contains a metadata identifier and a data identifier.
[0059] For example, taking two-level storage as an example, the root directory is dir, and a file stored under it is file1, where dir ...
Embodiment 2
[0106] like image 3 As shown, it is a schematic flowchart of a data synchronization method according to the second embodiment of the present invention. The second embodiment of the present invention is a data synchronization method under the same concept as the first embodiment of the present invention.
[0107] Assume that client A, client B, client C and server are included in the same local area network, wherein the server has a resource pool for storing the data in clients A, B and C, whenever the data in the client When a change occurs, a data update message is sent to the server to notify the server to synchronize the updated data.
[0108] Step 201: Receive broadcast data packets.
[0109] Wherein, the data packet includes a client identifier and a metadata identifier.
[0110] Specifically, client A receives data packets broadcast by client B and client C; client B receives data packets broadcast by client A and client C; client C receives broadcasts by client A and...
Embodiment 3
[0124] like Figure 4 As shown, it is a schematic structural diagram of a data synchronization device according to Embodiment 3 of the present invention. The device includes: a receiving module 11, a determining module 12 and a synchronization module 13, wherein:
[0125] a receiving module 11, configured to receive a synchronization message that is sent by the network side and carries an update object, wherein the update object includes a metadata identifier and an update data identifier;
[0126] A determination module 12, configured to determine the source client identifier corresponding to the metadata identifier included in the update object in the received synchronization message according to the correspondence between the locally stored metadata identifier and the client identifier;
[0127] The synchronization module 13 is configured to use the update data identifier included in the update object in the received synchronization message to determine the local data to be...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


