Fault processing method and device of database cluster, and terminal
A fault handling method and database technology, which is applied in the fault handling, device and terminal fields of database clusters, can solve the problems of uncertain fault repair time, manpower and material resources for fault repair, etc., and achieve the effect of saving manpower and physical costs and improving user experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] figure 1 It is a flow chart of a database cluster fault handling method provided by Embodiment 1 of the present invention. This embodiment is applicable to situations requiring efficient fault recovery, and the method can be executed by a fault processing device of a database cluster. The device It can be realized by means of hardware and / or software, and can generally be configured in a server to realize the method of this embodiment.
[0027] Such as figure 1 As shown, the fault handling method of the database cluster in this embodiment specifically includes:
[0028] S110. Check the connection status of the current master node in the MGR cluster based on the health check function.
[0029] In actual database applications, the system backend can configure one or more clusters according to actual needs, and the MGR cluster usually includes at least three instances or at least three nodes. Each cluster provides two domain name system (Domain Name System, DNS) service...
Embodiment 2
[0052] figure 2 It is a schematic flowchart of a preferred example of a database cluster fault handling method provided by Embodiment 2 of the present invention. see figure 2 , the main program is developed using Python. Connect to the database by means of a domain name. Then the program initiates the real-time status check of the cluster and the judgment of the read-write node through the heartbeat setting, and automatically switches the domain name from the faulty node to the new read-write node as soon as a problem occurs, which is transparent to the user Unaware, and the whole process does not require any manual intervention, second-level fault recovery.
[0053] Specifically, the DNS can be configured through the DNS configuration function, and the clusters defined in the backend database table can be maintained. The backend can be configured with one or more clusters, each cluster can contain at least 3 instances, and each cluster provides 2 DNS services: read-writ...
Embodiment 3
[0062] image 3 Shown is a schematic structural diagram of a database cluster fault handling device provided by Embodiment 3 of the present invention. The device can be implemented by means of hardware and / or software, and can generally be configured in a server to implement the method of this embodiment. Such as image 3 As shown, the database cluster fault handling apparatus of this embodiment includes: a check module 310 , a target master node acquisition module 320 and a corresponding relationship establishment module 330 .
[0063] Wherein, the check module 310 is configured to check the connection status of the current master node in the MGR cluster based on the health check function, wherein the master node is set corresponding to the domain name system, and provides read and write domain name system services for the domain name system; The target master node acquisition module 320 is used to obtain the target master node corresponding to the current master node when i...
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