Active-standby switching method and system for application program

The invention discloses an active-standby switching method and system for application program. The method comprises: reading a configuration file by a HaKeeper service and acquiring an operation script of a target application; accessing a ZooKeeper directory by the HaKeeper according to Lock, and de...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: WANG LEI, LIN KE, JU YANFENG, LI FU, LIN JUNDE, CHEN CHEN, LU XIANGDONG, ZHU JIAN
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 discloses an active-standby switching method and system for application program. The method comprises: reading a configuration file by a HaKeeper service and acquiring an operation script of a target application; accessing a ZooKeeper directory by the HaKeeper according to Lock, and determining whether the target application is allowed to run on the current host by acquiring the lock; stopping the application or confirming that the application is closed and trying to acquire the lock again if the lock fails to acquire; starting the application or confirming that the application is opened if the lock is successfully acquired; regularly detecting the running status of the application; releasing the lock by a lock embedded module to allow HaKeeper running on the other host to acquire the lock of the target application if the application is running abnormally. The active-standby switching system for application program can automatically monitor various applications and quickly switch or restart imme