Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
MASTER/BACKUP DATABASE CLUSTER AND MASTER SELECTION METHOD THEREFOR, COMPUTING DEVICE, AND STORAGE MEDIUM
Document Type and Number:
WIPO Patent Application WO/2024/083259
Kind Code:
A1
Abstract:
Disclosed are a master/backup database cluster and a master selection method therefor, a computing device, and a storage medium. The method comprises: a first master selection component of a first node periodically executing a renewal operation of a resource lock, determining whether the renewal operation is successful within a first preset time threshold, if yes, updating a renewal time of the resource lock to a current time, and if not, the first node killing a database process, restarting the database process in a read-only mode, and triggering to execute a master-to-backup switching operation of the first node; and a second master selection component of a second node periodically polling the renewal time of the resource lock, determining whether a time difference between the current time and the renewal time exceeds a second preset time threshold, and if yes, triggering to execute a backup-to-master switching operation of the second node. The present invention uses a distributed lock as third-party master selection logic, and on the basis of this logic, automatic state detection and master/backup switching are performed during a master selection process of a master/backup cluster, thereby ensuring continuous monitoring and master/backup switching capabilities, and improving the robustness and availability of the master/backup cluster.

Inventors:
ZHANG GANG (CN)
Application Number:
PCT/CN2023/126010
Publication Date:
April 25, 2024
Filing Date:
October 23, 2023
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
CHINA MOBILE SUZHOU SOFTWARE TECH CO LTD (CN)
CHINA MOBILE COMMUNICATIONS GROUP CO LTD (CN)
International Classes:
G06F11/14
Foreign References:
CN116263727A2023-06-16
CN114860848A2022-08-05
CN114238495A2022-03-25
CN113497737A2021-10-12
US20180331888A12018-11-15
Attorney, Agent or Firm:
CHINA PAT INTELLECTUAL PROPERTY OFFICE (CN)
Download PDF: