Master-slave switching method and device for database cluster nodes, equipment and medium
A database and node technology, applied in the database field, can solve problems such as high development and maintenance costs, long master-slave switching time, and large performance loss, and achieve the effect of transparent master-slave switching access
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] figure 1 This is a flowchart of a method for master-slave switching of database cluster nodes based on a name service provided by the first embodiment of the present invention. This embodiment can be applied to the situation that master-slave switching is required when a database cluster node fails. This method can be implemented by the present invention. The name service-based cluster node master-slave switching device provided in any embodiment is executed. The device may be composed of hardware and / or software, and may generally be integrated in computer equipment, such as computer equipment running a database management system.
[0028] like figure 1 As mentioned above, the method for master-slave switching of database cluster nodes based on the name service provided by this embodiment includes the following steps:
[0029] S110. Determine that the first master node is faulty, wherein the first master node is configured to establish master-master synchronization wi...
Embodiment 2
[0053] This embodiment is embodied on the basis of the above embodiments, wherein, after setting the first slave node and the second master node to establish master-master synchronization, it further includes:
[0054] Registering the name of the first master node and the original access address of the instance of the first slave node to a matching name server, updating the registered information in the name server, so that the name server will use the updated registration The information is pushed to the host DNS (Domain Name System, domain name system) proxy component in real time;
[0055] Wherein, the host DNS proxy component is configured to intercept and analyze the DNS request of the application service, and respond to the DNS request based on the name service when the DNS request points to an internal LAN.
[0056] like image 3 As shown, the method of this embodiment specifically includes:
[0057] S310. Determine that the first master node is faulty, wherein the fi...
Embodiment 3
[0077] Figure 5 This is a schematic diagram of the module structure of an apparatus for master-slave switching of database cluster nodes based on a name service provided by Embodiment 3 of the present invention. It is implemented in software and / or hardware, and can generally be integrated in a computer device, such as a computer device running a database management system. like Figure 5 As shown, the device includes: a fault detection module 510 , a master node access address replacement module 520 and a master master synchronization setting module 530 . in,
[0078] The fault detection module 510 is configured to determine that the first master node is faulty, wherein the first master node is configured to establish master-master synchronization with the second master node, and the first master node is configured to establish master-master synchronization with the first slave node. from sync;
[0079] The master node access address replacement module 520 is configured ...
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