Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for data synchronization of nodes in a distributed cluster

A distributed cluster and data synchronization technology, applied in the field of communication, can solve problems such as missing and inaccurate data

Active Publication Date: 2022-08-09
HARBIN HYTERA TECH CORP
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] This application provides a data synchronization method and device for nodes in a distributed cluster, with the purpose of solving the problem of missing or inaccurate data after cluster splitting and recovery

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for data synchronization of nodes in a distributed cluster
  • A method and device for data synchronization of nodes in a distributed cluster
  • A method and device for data synchronization of nodes in a distributed cluster

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046]The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.

[0047] figure 2 A data synchronization method for nodes in a distributed cluster provided by an embodiment of the present application is applicable to any node in a distributed cluster, that is, any node in a distributed cluster is executed according to the following steps to obtain image 3 The distributed cluster shown as an example, in image 3 The distributed cluster in includes node A, node B and node C, in this embodiment, with image 3 The no...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present application provides a data synchronization method and device for nodes in a distributed cluster, wherein the method is applied to any node of the distributed cluster, and the method includes: in the case that the node is the master node, the node provides data writing When the node changes from the master node to the slave node, stop the data writing service; send the merge information to the master node of the current cluster; the merge information is used to instruct the current master node of the cluster to obtain the merge from the data copy Data; the merged data is the data written during the period when the node serves as the master node to provide data writing services; based on the master data entity of the master node of the current cluster, it controls the master data entity of the node and the master node of the cluster to which it currently belongs. The master data entities are kept in sync. With the solution of the present application, the data in the final master data entity of the node is consistent and accurate with the data in the master data entity of the master node of the cluster after restoration.

Description

technical field [0001] The present application relates to the field of communications, and in particular, to a method and device for data synchronization of nodes in a distributed cluster. Background technique [0002] According to the CAP theory of distributed systems: C consistency (Consistency), A availability (Availability), P partition tolerance (Partition-torlerance), at most only two can be guaranteed, but not all three at the same time. In a distributed system, partition P is the norm, so you can only choose from A and C, that is, CP type or AP type. [0003] At present, when a cluster split occurs in a distributed system, if Availability is selected, during the distributed cluster split, the master node of each split cluster continues to provide services and supports data writing services. The new master node is determined in the cluster of the restored cluster, and the slave node in the restored cluster is based on the new master node and keeps data consistent wit...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L67/1095H04L67/1042H04L69/16
CPCH04L67/1095H04L67/10H04L69/162
Inventor 张昊鹏张秉政钟初李松
Owner HARBIN HYTERA TECH CORP