Dual-computer hot redundancy method based on distributed lock

The invention provides a dual-computer hot redundancy method based on a distributed lock, and relates to the technical field of industrial automation, and the method comprises the following steps: S1, when a master server works, starting a slave server; s2, upper computer software of the main server...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: YAN KUN, HUANG ZHANGRONG, LUO JIANGHAO, ZHANG XINYU, XUE JIAWEI, LIU PENG, ZENG FANLIN, ZHANG XINGQUAN, WEI JIE, ZHUANG XUEBO
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 invention provides a dual-computer hot redundancy method based on a distributed lock, and relates to the technical field of industrial automation, and the method comprises the following steps: S1, when a master server works, starting a slave server; s2, upper computer software of the main server configures a lock position number; s3, the master server outputs a lock position number, and the slave server obtains the lock position number; s4, judging whether the acquired locking number is consistent with the last locking number or not from the server; if yes, the slave server reads the binlog event of the master server; otherwise, the main server is down, and S5 is executed; and S5, performing data processing of the DCS in the slave server. According to the invention, the distributed lock is used for managing the master server and the slave server, the slave server reads the position of the last event in the binlog of the master server, and when the master server crashes, the user service and data are quick