Supercharge Your Innovation With Domain-Expert AI Agents!

method for recovering RabbitMQ network partition based on Raft in distributed mode, and applicationthereof

A distributed and networked technology, applied in the computer field, can solve problems such as dual-master problems, RabbitMQ clusters cannot work normally, abnormal environment, etc., and achieve the effect of avoiding split-brain

Pending Publication Date: 2021-09-24
WUXI CHINAC DATA TECH SERVICE
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide a method and application based on Raft distributed recovery RabbitMQ network partition, to solve the problem that the RabbitMQ cluster cannot work normally due to the failure of the central node, and the problem that the environment may be abnormal due to dual-master problems

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • method for recovering RabbitMQ network partition based on Raft in distributed mode, and applicationthereof
  • method for recovering RabbitMQ network partition based on Raft in distributed mode, and applicationthereof
  • method for recovering RabbitMQ network partition based on Raft in distributed mode, and applicationthereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific embodiments.

[0031] Unless expressly stated otherwise, throughout the specification and claims, the term "comprise" or variations thereof such as "includes" or "includes" and the like will be understood to include the stated elements or constituents, and not Other elements or other components are not excluded.

[0032] Some concepts involved in the embodiments of the present invention are introduced below.

[0033] RabbitMQ cluster: The working principle of RabbitMQ is that the message publisher sends a message to the RabbitMQ proxy server, and the switch inside the proxy server receives the information, passes the message to the message queue bound to the switch and saves it, and the consumer communicates with the message proxy serv...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for recovering a RabbitMQ network partition based on Raft in a distributed mode, and the application thereof. The method comprises the following steps: each RabbitMQ node in a RabbitMQ cluster queries a respective Raft database, and determines the current role state of the node; and the RabbitMQ cluster executes partition fault recovery according to the current role state of each RabbitMQ node. According to the Raft-based distributed recovery RabbitMQ network partition method and the application, the function of distributed recovery of cluster network partition faults can be realized by using the main node election function of the Raft algorithm, the generation of single-point faults is avoided, the data of the RabbitMQ cluster is considered to be consistent when the data of more than half of nodes in the RabbitMQ cluster in the Raft algorithm is synchronized, and the data of the RabbitMQ cluster is considered to be consistent when the data of more than half of nodes in the RabbitMQ cluster is synchronized. A consistent Raft database is obtained, and split brain is avoided.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a method for recovering RabbitMQ network partitions based on Raft distribution, and a system, electronic equipment and storage media applying the method. Background technique [0002] At present, when an enterprise deploys a large-scale data center Openstack cloud computing environment, considering emergencies, it usually deploys key services in cluster mode, such as RabbitMQ message queue cluster service. By starting RabbitMQ in cluster mode, multiple External services on a single machine, increase the amount of external services, avoid network failures in the environment or machine failures that cause single or multiple node failures and cause overall service unavailability, and improve the robustness and availability of services compared to the traditional non-cluster service model. [0003] In the RabbitMQ cluster mode of the existing data center, most of the fault recovery a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/24H04L29/08
CPCH04L41/0654H04L67/1095
Inventor 张胜胡进廖桥生
Owner WUXI CHINAC DATA TECH SERVICE
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More