Multi-center data synchronization method and device

The embodiment of the invention provides a multi-center data synchronization method and device. The method comprises the steps: recording database operation information of a client through a main database of a main node; synchronously updating the database operation information of the master node th...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: HU PENG, GUO XIANKUAN, SUN QIMING, LI YANMING, WANG LIPENG, CHEN ZHUO, HAO BAIRUI, LI KAN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The embodiment of the invention provides a multi-center data synchronization method and device. The method comprises the steps: recording database operation information of a client through a main database of a main node; synchronously updating the database operation information of the master node through the synchronous slave node and the standby master node; when it is monitored that the main node is in an abnormal state, establishing a connection relationship between the client and the standby main node through a consistency algorithm. The method and device can effectively make up the defect of single-node faults, and guarantees the stability of the main node. 本申请实施例提供一种多中心数据同步方法及装置,方法包括:通过主节点的主数据库记录客户端的数据库操作信息;通过同步从节点和备用主节点同步更新所述主节点的数据库操作信息;当监测到所述主节点处于异常状态时,通过一致性算法将所述客户端与所述备用主节点建立连接关系;本申请能够有效弥补单节点故障的缺陷,保障主节点的稳定性。