System and method for ensuring high availability and consistency of MHA cluster
A consistent and clustered technology, applied in the field of database management, can solve the problem that MySQL cluster cannot be switched normally, and achieve the effect of ensuring configuration consistency, simple implementation, and reducing real-time requirements.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0077] as attached figure 1 As shown, the system for ensuring the high availability and consistency of the MHA cluster of the present invention includes,
[0078] Redis cluster, used to provide published locks and configure global notification delivery capabilities;
[0079] The MHA module is used to register an exclusive lock in the Redis cluster when performing disaster recovery switching to prevent other MHA instances from performing disaster recovery switching operations at the same time, and push the configuration to the Redis cluster after the switch is completed and release the lock; the MHA module is based on It is a native tool of MHA, and implements locking and releasing of exclusive locks and configuration push functions at the two custom scripts of secondary_check_script and ip_failover_script. as attached figure 2 As shown, the processing logic of the MHA module is as follows:
[0080] S1. Periodically monitor the status of the master node of the MySQL cluster...
Embodiment 2
[0105] The method for ensuring the high availability and consistency of the MHA cluster of the present invention is specifically as follows:
[0106] (1) The Redis cluster provides distributed locks and the ability to configure global notifications;
[0107] (2) The MHA module registers an exclusive lock in Redis when performing disaster recovery switching to prevent other MHA instances from performing disaster recovery switching operations at the same time, and after the switching is completed, push the configuration to Redis and release the lock;
[0108] (3) When the configuration manager starts, it pulls the cluster configuration from Redis, updates the local MHA configuration and restarts it to take effect, and monitors whether the cluster configuration on Redis changes:
[0109] If there is a change, update the local MHA configuration and restart to take effect.
[0110] Among them, as attached figure 2 As shown, the processing logic of the MHA module is as follows: ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com