Data synchronization method and device
A data synchronization and data technology, applied in the network field, can solve problems such as low efficiency and cumbersome data synchronization operations
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] figure 1 is a flow chart of the steps of a data synchronization method provided in Embodiment 1 of the present invention, and the method can be applied to the first server cluster, such as figure 1 As shown, the method may include:
[0050] Step 101: Divide the processing resources of the first server cluster into multiple virtual nodes according to the predefined number of nodes and the amount of memory corresponding to each node, and allocate a corresponding amount of memory to each virtual node.
[0051]In this embodiment of the present invention, the number of nodes and the amount of memory corresponding to each node can be determined by developers based on the performance of all servers included in the first server cluster and the number of partitions included in the first server cluster. For example, in the definition For the number of nodes, you can set a value not greater than the number of partitions as the number of nodes. Further, when setting the correspond...
Embodiment 2
[0062] figure 2 is a flow chart of the steps of a data synchronization method provided in Embodiment 2 of the present invention, and the method can be applied to the first server cluster, such as figure 2 As shown, the method may include:
[0063] Step 201: Divide the processing resources of the first server cluster into multiple virtual nodes according to the predefined number of nodes and the amount of memory corresponding to each node, and allocate a corresponding amount of memory to each virtual node.
[0064] Specifically, for the implementation manner of this step, reference may be made to the foregoing step 101, and details are not described here in this embodiment of the present invention.
[0065] Step 202, detecting whether the preset data table exists in the second server cluster.
[0066] In this step, the first server cluster can detect whether there is a preset data table by connecting to the service exposed by the second server cluster. For example, the pres...
Embodiment 3
[0086] image 3 It is a block diagram of a data synchronization device provided in Embodiment 3 of the present invention, such as image 3 As shown, the device 30 may include:
[0087] The division module 301 is configured to divide the processing resources of the first server cluster into multiple virtual nodes and allocate a corresponding amount of memory to each virtual node according to the predefined number of nodes and the amount of memory corresponding to each node.
[0088] A loading module 302, configured to use each of the plurality of virtual nodes to load target data of each virtual node in a corresponding partition in the first server cluster into the memory of the virtual node; Wherein, each virtual node corresponds to at least one partition.
[0089] The writing module 303 is configured to use the plurality of virtual nodes to write the target data in the memory into the partition corresponding to the preset data table according to the preset data table of the...
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, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com