RabbitMQ network partition recovery method and system
A network and network status technology, applied in transmission systems, digital transmission systems, data exchange networks, etc., can solve problems such as manual recovery, high service reliability, and inability to automatically recover, to enhance system reliability, avoid manual intervention, To achieve the effect of load balancing
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0076] see figure 2 As shown, the embodiment of the present invention provides a method for recovering a RabbitMQ network partition, comprising the following steps:
[0077] First select the central node. The central node is to select a certain node of the RabbitMQ cluster as the central node for the recovery detection script to run. Other nodes in the cluster also have scripts, but they do not run immediately. The master-standby monitoring switch is realized through Keepalived, and the Keepalived master node is the central node; when the Keepalived master node has a network failure, it will automatically switch to the standby node to continue monitoring.
[0078] Then define detection and recovery scripts for different scenarios. The cluster status that affects RabbitMQ is mainly divided into three categories: network status, single-node service status, and network partition status. The single-node service status and network partition status are obtained through RabbitMQ's...
Embodiment 2
[0085] see image 3 As shown, the embodiment of the present invention provides a method for recovering a RabbitMQ network partition, which specifically includes the following steps:
[0086] Step 1: Configure the Keepalived service on each RabbitMQ node, configure the Keepalived detection script, and automatically use the Keepalived master node as the central node. When the Keepalived primary node fails, it will automatically switch between active and standby. Go to step 2;
[0087] Step 2: Add a cluster status detection script to each RabbitMQ node, configure that only the Keepalived master node, that is, the central node, will run the detection script, and other nodes will not run; and write the detection result status detection file to each node. First, check whether the network status of the node is abnormal through the socket, and if so, do not judge the remaining status, directly record the abnormal network status of the node, and skip to step 5; if not, skip to step 3...
Embodiment 3
[0098] Embodiments of the present invention provide a system for recovering RabbitMQ network partitions, including:
[0099]The Keepalived service configuration module is used for: configuring the Keepalived service on each RabbitMQ node, selecting a RabbitMQ node in the RabbitMQ cluster as the Keepalived master node, and using the Keepalived master node as the central node;
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