CN112003929A - RabbitMQ cluster-based thermal restoration method, system, device and medium - Google Patents

RabbitMQ cluster-based thermal restoration method, system, device and medium Download PDF

Info

Publication number
CN112003929A
CN112003929A CN202010849587.9A CN202010849587A CN112003929A CN 112003929 A CN112003929 A CN 112003929A CN 202010849587 A CN202010849587 A CN 202010849587A CN 112003929 A CN112003929 A CN 112003929A
Authority
CN
China
Prior art keywords
rabbitmq
node
cluster
nodes
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010849587.9A
Other languages
Chinese (zh)
Other versions
CN112003929B (en
Inventor
袁东海
胡玉鹏
李红卫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010849587.9A priority Critical patent/CN112003929B/en
Publication of CN112003929A publication Critical patent/CN112003929A/en
Application granted granted Critical
Publication of CN112003929B publication Critical patent/CN112003929B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention discloses a method, a system, equipment and a storage medium for thermal restoration based on a RabbitMQ cluster, wherein the method comprises the following steps: creating a first node outside the RabbitMQ cluster, and setting the first node to be in a preset mode; starting a RabbitMQ service of a first node, adding the first node into a RabbitMQ cluster, and setting network link forwarding to forward a link accessing the RabbitMQ cluster to the first node; the rabbitMQ services of all the nodes except the first node in the rabbitMQ cluster are closed, all the nodes are deleted, and all the deleted nodes form a new cluster; and in response to a new cluster startup, switching RabbitMQ services interfacing with the first node from the first node to the new cluster and deleting network link forwarding and the first node. The invention establishes a node outside the RabbitMQ cluster to temporarily take over the RabbitMQ service, so that the RabbitMQ cluster can be repaired under the condition that the RabbitMQ service is not stopped.

Description

RabbitMQ cluster-based thermal restoration method, system, device and medium
Technical Field
The present invention relates to the field of message middleware, and more particularly, to a method, system, computer device and readable medium for RabbitMQ cluster-based hot repair.
Background
Under the condition that the RabbitMQ cluster service is commonly used at present, if the cluster has the condition that the RabbitMQ service is unavailable due to error messages, abnormal data, non-standard operation and the like, an external application cannot access the RabbitMQ service or the messages are blocked and blocked. The current method for recovering the RabbitMQ cluster is to stop all the services of all the nodes and then repair the nodes. However, this process requires a service outage, which can result in service disruption.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method, a system, a computer device, and a computer-readable storage medium for performing thermal repair based on a RabbitMQ cluster, where a node is created outside the RabbitMQ cluster to temporarily take over the RabbitMQ service, so that the RabbitMQ cluster can be repaired without stopping the RabbitMQ service, and the stability and availability of the RabbitMQ cluster are improved.
Based on the above purpose, an aspect of the embodiments of the present invention provides a RabbitMQ cluster-based hot repair method, including the following steps: creating a first node outside the RabbitMQ cluster, and setting the first node to be in a preset mode; starting a RabbitMQ service of the first node, adding the first node to the RabbitMQ cluster, and setting network link forwarding to forward a link accessing the RabbitMQ cluster to the first node; closing the RabbitMQ services of all the nodes except the first node in the RabbitMQ cluster, deleting all the nodes and forming a new cluster by the deleted all the nodes; and in response to the new cluster startup, switching RabbitMQ services interfacing with the first node from the first node to the new cluster and deleting the network link forwarding and the first node.
In some embodiments, said joining said first node to said RabbitMQ cluster comprises: synchronizing current data in the RabbitMQ cluster to the first node.
In some embodiments, said joining said first node to said RabbitMQ cluster further comprises: and judging whether the first node and other nodes in the RabbitMQ cluster are under the same operating system.
In some embodiments, said joining said first node to said RabbitMQ cluster further comprises: responding to the first node and other nodes in the RabbitMQ cluster under the same operating system, and configuring a different port number for the RabbitMQ service of the first node than the other nodes.
In some embodiments, said setting network link forwarding to forward a link accessing the RabbitMQ cluster to the first node comprises: and forwarding ports of all nodes except the first node in the RabbitMQ cluster to the first node.
In some embodiments, said creating a first node outside of said RabbitMQ cluster comprises: configuring the same cache as other nodes in the RabbitMQ cluster.
In some embodiments, the grouping all the nodes to be deleted into a new cluster includes: modifying the cache of all the deleted nodes, and starting the RabbitMQ service of all the deleted nodes.
In another aspect of the embodiments of the present invention, a RabbitMQ cluster-based thermal repair system is further provided, including: the creating module is configured to create a first node outside the RabbitMQ cluster and set the first node to be in a preset mode; the forwarding module is configured to start a rabbitMQ service of the first node, join the first node to the rabbitMQ cluster, and set network link forwarding to forward a link accessing the rabbitMQ cluster to the first node; the execution module is configured to close the rabbitMQ services of all the nodes except the first node in the rabbitMQ cluster, delete all the nodes and form a new cluster by the deleted nodes; and a deleting module configured to switch, in response to the new cluster starting, RabbitMQ services interfacing with the first node from the first node to the new cluster, and delete the network link forwarding and the first node.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method as above.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: a node is created outside the RabbitMQ cluster to temporarily take over the RabbitMQ service, so that the RabbitMQ cluster can be repaired under the condition that the RabbitMQ service is not stopped, and the stability and the availability of the RabbitMQ cluster are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a schematic diagram of an embodiment of a RabbitMQ cluster-based hot repair method provided by the present invention;
fig. 2 is a schematic diagram of connection between a RabbitMQ cluster and an external application in the prior art;
fig. 3 is a schematic diagram of data synchronization in the RabbitMQ cluster-based hot repair method provided by the present invention;
fig. 4 is a schematic diagram illustrating network link forwarding in the RabbitMQ cluster-based hot repair method provided in the present invention;
fig. 5 is a schematic diagram of deleting nodes other than the first node in the RabbitMQ cluster hot repair-based method provided by the present invention;
FIG. 6 is a schematic diagram illustrating the creation of a new cluster in the RabbitMQ cluster-based hot repair method provided in the present invention;
fig. 7 is a schematic diagram of switching RabbitMQ service from a first node to a new cluster in the RabbitMQ cluster hot repair-based method provided in the present invention;
fig. 8 is a schematic hardware structure diagram of an embodiment of a computer device based on RabbitMQ cluster hot repair provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the above object, a first aspect of the embodiments of the present invention provides an embodiment of a method for thermal repair based on a RabbitMQ cluster. Fig. 1 is a schematic diagram illustrating an embodiment of a RabbitMQ cluster-based hot repair method provided by the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, creating a first node outside the RabbitMQ cluster, and setting the first node to be in a preset mode;
s2, starting a RabbitMQ service of the first node, adding the first node into a RabbitMQ cluster, and setting network link forwarding to forward a link accessing the RabbitMQ cluster to the first node;
s3, stopping the RabbitMQ service of all the nodes except the first node in the RabbitMQ cluster, deleting all the nodes and forming a new cluster by the deleted nodes; and
and S4, responding to the new cluster starting, switching the RabbitMQ service which is in interface with the first node from the first node to the new cluster, and deleting the network link forwarding and the first node.
The RabbitMQ is widely used and technically mature open source message middleware at present. The cluster service ensures the stability and reliability of the service and improves the throughput of the RabbitMQ. The RabbitMQ cluster is a cluster consisting of RabbitMQ services of a plurality of nodes and provides functions of high availability, load balancing and the like. The HA policy is a High availability (High availability) policy for RabbitMQ clusters to define synchronization and backup of node data in the cluster.
Fig. 2 is a schematic diagram illustrating connection of a RabbitMQ cluster and an external application in the prior art. As shown in fig. 2, cluster service nodes 1, 2 and 3 form a RabbitMQ cluster, and provide services to the outside through a VIP (virtual IP) for external applications to access the RabbitMQ services. The HA policy of the cluster service node can be modified instantly, and the queue (message queue in RabbitMQ), exchange (message exchange in RabbitMQ) and message entity after modification are synchronized and backed up according to the current policy. The VIP service of the cluster belongs to a polling mode to access cluster nodes. And the external application pushes and receives the message by accessing the RabbitMQ service port of the VIP.
The embodiment of the invention achieves the requirement of repairing the RabbitMQ cluster service by creating a new RabbitMQ service to replace the original RabbitMQ service and then switching the data flow direction.
And creating a first node outside the RabbitMQ cluster, and setting the first node to be in a preset mode. And a separate RabbitMQ node is created outside the RabbitMQ cluster, and the node needs to be set to a disk mode, so that the data can be migrated after other nodes stop. Disk mode refers to whether the RabbitMQ node can save backup data to Disk.
Starting the RabbitMQ service of the first node, adding the first node into the RabbitMQ cluster, and setting network link forwarding to forward the link accessing the RabbitMQ cluster to the first node. And adding the created RabbitMQ node into the original RabbitMQ cluster through a RabbitMQ command. And adjusting the RabbitMQ cluster HA strategy to ensure that the data can be synchronized to the created RabbitMQ node.
In some embodiments, said joining said first node to said RabbitMQ cluster comprises: synchronizing current data in the RabbitMQ cluster to the first node.
In some embodiments, said joining said first node to said RabbitMQ cluster further comprises: and judging whether the first node and other nodes in the RabbitMQ cluster are under the same operating system.
In some embodiments, said joining said first node to said RabbitMQ cluster further comprises: responding to the first node and other nodes in the RabbitMQ cluster under the same operating system, and configuring a different port number for the RabbitMQ service of the first node than the other nodes.
In some embodiments, said creating a first node outside of said RabbitMQ cluster comprises: configuring the same cache as other nodes in the RabbitMQ cluster.
Fig. 3 is a schematic diagram illustrating data synchronization in the RabbitMQ cluster hot repair-based method provided by the present invention. As shown in fig. 3, a temporary service node (i.e., the first node) is created and added to the cluster service. And then adjusting the cluster HA strategy of the RabbitMQ, and synchronizing the current data to the temporary node service. The temporary service node may be started under the same operating system as the cluster service nodes 1, 2 and 3, or may be started under a different operating system. If the temporary service node and the cluster service nodes 1, 2 and 3 are in the same system, the socket port number of the RabbitMQ service needs to be configured, so that the service starting failure caused by the repeated port numbers is avoided. The temporary service node may be added to the cluster service via a RabbitMQ command, configuring the temporary service node with the same cache (cache) as the cluster service nodes 1, 2 and 3. The "same" here may be the same size or the same IP address. And cluster synchronization data consisting of the temporary service nodes and the cluster service nodes 1, 2 and 3 is set through an HA strategy.
In some embodiments, said setting network link forwarding to forward a link accessing the RabbitMQ cluster to the first node comprises: and forwarding ports of all nodes except the first node in the RabbitMQ cluster to the first node.
Fig. 4 is a schematic diagram illustrating setting network link forwarding in the RabbitMQ cluster hot repair-based method provided by the present invention. As shown in fig. 4, after the data synchronization is completed, the ports of the VIP connecting cluster service nodes 1, 2 and 3 are forwarded to the temporary service node. The forwarding of the VIP connection cluster service nodes 1, 2 and 3 can be realized by setting forwarding rules or third-party software.
And closing the RabbitMQ services of all the nodes except the first node in the RabbitMQ cluster, deleting all the nodes and forming a new cluster by the deleted nodes.
In some embodiments, the grouping all the nodes to be deleted into a new cluster includes: modifying the cache of all the deleted nodes, and starting the RabbitMQ service of all the deleted nodes.
Fig. 5 is a schematic diagram illustrating that other nodes except the first node are deleted in the RabbitMQ cluster hot repair-based method provided by the present invention. As shown in FIG. 5, cluster service nodes 1, 2, and 3 are removed from the cluster. The delete cluster service nodes 1, 2, and 3 may operate using the RabbitMQ command. Under the condition that the external RabbitMQ service is not stopped, the cluster service nodes 1, 2 and 3 are stopped, and the temporary service node is used for bearing the RabbitMQ service.
Fig. 6 is a schematic diagram illustrating the creation of a new cluster in the RabbitMQ cluster-based hot repair method provided by the present invention. As shown in fig. 6, the configuration of the cluster service nodes 1, 2, and 3 is modified, for example, cache is modified, RabbitMQ service of the cluster service nodes 1, 2, and 3 is started, the three service nodes form a new cluster, and the new cluster does not include the temporary service node.
In response to the new cluster startup, switching RabbitMQ services interfacing with the first node from the first node to the new cluster and deleting the network link forwarding and the first node.
Fig. 7 is a schematic diagram illustrating the RabbitMQ service switching from the first node to the new cluster in the RabbitMQ cluster hot repair-based method provided by the present invention. As shown in fig. 7, the RabbitMQ service interfaced by the VIP service is switched from the temporary service node to the new cluster through a forwarding service, the VIP link RabbitMQ port is forwarded to the new cluster, and the switching is accomplished by deleting the network link forwarding or modifying the VIP configuration.
The embodiment of the invention can carry out operations such as repairing, restarting and configuring the RabbitMQ cluster under the condition of not stopping the RabbitMQ service, and mainly aims to not influence the original RabbitMQ service and ensure the normal operation of the service. The embodiment of the invention is mainly applied to the scenes that the RabbitMQ service needs to be kept uninterrupted and the RabbitMQ cluster is operated, including but not limited to the restarting of the RabbitMQ service, the migration of the RabbitMQ service and the expansion of the RabbitMQ node.
It should be particularly noted that, the steps in the foregoing embodiments of the RabbitMQ cluster-based hot repair method can be mutually intersected, replaced, added, and deleted, so that these reasonable permutation and combination transformations of the RabbitMQ cluster-based hot repair method also belong to the scope of the present invention, and the scope of the present invention should not be limited to the embodiments.
In view of the above object, a second aspect of the embodiments of the present invention provides a RabbitMQ cluster-based thermal repair system, including: the creating module is configured to create a first node outside the RabbitMQ cluster and set the first node to be in a preset mode; the forwarding module is configured to start a rabbitMQ service of the first node, join the first node to the rabbitMQ cluster, and set network link forwarding to forward a link accessing the rabbitMQ cluster to the first node; the execution module is configured to close the rabbitMQ services of all the nodes except the first node in the rabbitMQ cluster, delete all the nodes and form a new cluster by the deleted nodes; and a deleting module configured to switch, in response to the new cluster starting, RabbitMQ services interfacing with the first node from the first node to the new cluster, and delete the network link forwarding and the first node.
In some embodiments, the forwarding module is configured to: synchronizing current data in the RabbitMQ cluster to the first node.
In some embodiments, the forwarding module is further configured to: and judging whether the first node and other nodes in the RabbitMQ cluster are under the same operating system.
In some embodiments, the forwarding module is further configured to: responding to the first node and other nodes in the RabbitMQ cluster under the same operating system, and configuring a different port number for the RabbitMQ service of the first node than the other nodes.
In some embodiments, the forwarding module is further configured to: and forwarding ports of all nodes except the first node in the RabbitMQ cluster to the first node.
In some embodiments, the creation module is configured to: configuring the same cache as other nodes in the RabbitMQ cluster.
In some embodiments, the execution module is configured to: modifying the cache of all the deleted nodes, and starting the RabbitMQ service of all the deleted nodes.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, creating a first node outside the RabbitMQ cluster, and setting the first node to be in a preset mode; s2, starting a RabbitMQ service of the first node, adding the first node into a RabbitMQ cluster, and setting network link forwarding to forward a link accessing the RabbitMQ cluster to the first node; s3, stopping the RabbitMQ service of all the nodes except the first node in the RabbitMQ cluster, deleting all the nodes and forming a new cluster by the deleted nodes; and S4, responding to the new cluster starting, switching the RabbitMQ service interfacing with the first node from the first node to the new cluster, and deleting the network link forwarding and the first node.
In some embodiments, said joining said first node to said RabbitMQ cluster comprises: synchronizing current data in the RabbitMQ cluster to the first node.
In some embodiments, said joining said first node to said RabbitMQ cluster further comprises: and judging whether the first node and other nodes in the RabbitMQ cluster are under the same operating system.
In some embodiments, said joining said first node to said RabbitMQ cluster further comprises: responding to the first node and other nodes in the RabbitMQ cluster under the same operating system, and configuring a different port number for the RabbitMQ service of the first node than the other nodes.
In some embodiments, said setting network link forwarding to forward a link accessing the RabbitMQ cluster to the first node comprises: and forwarding ports of all nodes except the first node in the RabbitMQ cluster to the first node.
In some embodiments, said creating a first node outside of said RabbitMQ cluster comprises: configuring the same cache as other nodes in the RabbitMQ cluster.
In some embodiments, the grouping all the nodes to be deleted into a new cluster includes: modifying the cache of all the deleted nodes, and starting the RabbitMQ service of all the deleted nodes.
Fig. 8 is a schematic hardware structural diagram of an embodiment of the foregoing computer device based on RabbitMQ cluster hot repair provided in the present invention.
Taking the apparatus shown in fig. 8 as an example, the apparatus includes a processor 301 and a memory 302, and may further include: an input device 303 and an output device 304.
The processor 301, the memory 302, the input device 303 and the output device 304 may be connected by a bus or other means, and fig. 8 illustrates the connection by a bus as an example.
Memory 302, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the RabbitMQ cluster thermal remediation method in the embodiments of the present application. The processor 301 executes various functional applications of the server and data processing by running nonvolatile software programs, instructions and modules stored in the memory 302, namely, implements the method for thermal repair based on RabbitMQ cluster of the above method embodiment.
The memory 302 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the RabbitMQ cluster-based hot repair method, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 302 optionally includes memory located remotely from processor 301, which may be connected to a local module via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 303 may receive information such as a user name and a password that are input. The output means 304 may comprise a display device such as a display screen.
Program instructions/modules corresponding to one or more RabbitMQ cluster thermal remediation-based methods are stored in memory 302 and, when executed by processor 301, perform the RabbitMQ cluster thermal remediation-based methods of any of the above-described method embodiments.
Any embodiment of a computer device executing the method for thermal remediation based on a RabbitMQ cluster as described above may achieve the same or similar effects as any of the preceding method embodiments corresponding thereto.
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the method as above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, a program of the RabbitMQ cluster-based thermal repair method can be stored in a computer-readable storage medium, and the program can include the processes of the embodiments of the methods as described above when executed. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for cluster hot repair based on RabbitMQ is characterized by comprising the following steps:
creating a first node outside the RabbitMQ cluster, and setting the first node to be in a preset mode;
starting a RabbitMQ service of the first node, adding the first node to the RabbitMQ cluster, and setting network link forwarding to forward a link accessing the RabbitMQ cluster to the first node;
closing the RabbitMQ services of all the nodes except the first node in the RabbitMQ cluster, deleting all the nodes and forming a new cluster by the deleted all the nodes; and
in response to the new cluster startup, switching RabbitMQ services interfacing with the first node from the first node to the new cluster and deleting the network link forwarding and the first node.
2. The method of claim 1, wherein the joining the first node to the RabbitMQ cluster comprises:
synchronizing current data in the RabbitMQ cluster to the first node.
3. The method of claim 1, wherein the joining the first node to the RabbitMQ cluster further comprises:
and judging whether the first node and other nodes in the RabbitMQ cluster are under the same operating system.
4. The method of claim 3, wherein the joining the first node to the RabbitMQ cluster further comprises:
responding to the first node and other nodes in the RabbitMQ cluster under the same operating system, and configuring a different port number for the RabbitMQ service of the first node than the other nodes.
5. The method as claimed in claim 1, wherein the setting network link forwarding to forward a link accessing the RabbitMQ cluster to the first node comprises:
and forwarding ports of all nodes except the first node in the RabbitMQ cluster to the first node.
6. The method as claimed in claim 1, wherein the creating a first node outside the RabbitMQ cluster comprises:
configuring the same cache as other nodes in the RabbitMQ cluster.
7. The method of claim 6, wherein the grouping all the nodes to be deleted into a new cluster comprises:
modifying the cache of all the deleted nodes, and starting the RabbitMQ service of all the deleted nodes.
8. A system for thermal remediation based on a RabbitMQ cluster, comprising:
the creating module is configured to create a first node outside the RabbitMQ cluster and set the first node to be in a preset mode;
the forwarding module is configured to start a rabbitMQ service of the first node, join the first node to the rabbitMQ cluster, and set network link forwarding to forward a link accessing the rabbitMQ cluster to the first node;
the execution module is configured to close the rabbitMQ services of all the nodes except the first node in the rabbitMQ cluster, delete all the nodes and form a new cluster by the deleted nodes; and
and the deleting module is configured to respond to the starting of the new cluster, switch the RabbitMQ service interfaced with the first node from the first node to the new cluster, and delete the network link forwarding and the first node.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202010849587.9A 2020-08-21 2020-08-21 RabbitMQ cluster-based thermal restoration method, system, device and medium Active CN112003929B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010849587.9A CN112003929B (en) 2020-08-21 2020-08-21 RabbitMQ cluster-based thermal restoration method, system, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010849587.9A CN112003929B (en) 2020-08-21 2020-08-21 RabbitMQ cluster-based thermal restoration method, system, device and medium

Publications (2)

Publication Number Publication Date
CN112003929A true CN112003929A (en) 2020-11-27
CN112003929B CN112003929B (en) 2022-05-13

Family

ID=73473978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010849587.9A Active CN112003929B (en) 2020-08-21 2020-08-21 RabbitMQ cluster-based thermal restoration method, system, device and medium

Country Status (1)

Country Link
CN (1) CN112003929B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870560A (en) * 2014-03-06 2014-06-18 上海爱数软件有限公司 Log managing method for cluster
CN106254127A (en) * 2016-08-23 2016-12-21 浪潮电子信息产业股份有限公司 Automatic deployment method of RabbitMQ cluster service based on virtualization platform
CN108933824A (en) * 2018-06-28 2018-12-04 郑州云海信息技术有限公司 A kind of method, system and relevant apparatus keeping RabbitMQ service
CN109639489A (en) * 2018-12-18 2019-04-16 郑州云海信息技术有限公司 A kind of RabbitMQ clustered deploy(ment) method, system, equipment and medium
CN110290012A (en) * 2019-07-03 2019-09-27 浪潮云信息技术有限公司 The detection recovery system and method for RabbitMQ clustering fault
US20190340171A1 (en) * 2017-01-18 2019-11-07 Huawei Technologies Co., Ltd. Data Redistribution Method and Apparatus, and Database Cluster
CN111314114A (en) * 2020-01-19 2020-06-19 苏州浪潮智能科技有限公司 Deployment method and system for improving high availability of RabbitMQ

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870560A (en) * 2014-03-06 2014-06-18 上海爱数软件有限公司 Log managing method for cluster
CN106254127A (en) * 2016-08-23 2016-12-21 浪潮电子信息产业股份有限公司 Automatic deployment method of RabbitMQ cluster service based on virtualization platform
US20190340171A1 (en) * 2017-01-18 2019-11-07 Huawei Technologies Co., Ltd. Data Redistribution Method and Apparatus, and Database Cluster
CN108933824A (en) * 2018-06-28 2018-12-04 郑州云海信息技术有限公司 A kind of method, system and relevant apparatus keeping RabbitMQ service
CN109639489A (en) * 2018-12-18 2019-04-16 郑州云海信息技术有限公司 A kind of RabbitMQ clustered deploy(ment) method, system, equipment and medium
CN110290012A (en) * 2019-07-03 2019-09-27 浪潮云信息技术有限公司 The detection recovery system and method for RabbitMQ clustering fault
CN111314114A (en) * 2020-01-19 2020-06-19 苏州浪潮智能科技有限公司 Deployment method and system for improving high availability of RabbitMQ

Also Published As

Publication number Publication date
CN112003929B (en) 2022-05-13

Similar Documents

Publication Publication Date Title
KR101099822B1 (en) Redundant routing capabilities for a network node cluster
JP2005535241A (en) Method of moving application software in multicomputer architecture, multicomputer method and apparatus for realizing continuity of operation using the moving method
WO2021185169A1 (en) Switching method and apparatus, and device and storage medium
CN112003961A (en) Resource exposure method, system, equipment and medium in kubernets
CN103346914A (en) Method and device for topological structure update of distributed file system
CN105162704A (en) Multicast replication method and device in Overlay network
WO2017000832A1 (en) Mac address synchronization method, device and system
US20190370376A1 (en) High-availability network device database synchronization
WO2007048319A1 (en) A disaster recovery system and method of service controlling device in intelligent network
CN114124650A (en) Master-slave deployment method of SPTN (shortest Path bridging) network controller
JP5697672B2 (en) A method for improved server redundancy in dynamic networks
CN112003929B (en) RabbitMQ cluster-based thermal restoration method, system, device and medium
CN108282346B (en) Software upgrading method and device
CN111813606A (en) Fault-tolerant method, system, equipment and medium for double-node virtual machine
CN111460029B (en) Data synchronization method and device
CN112187523A (en) Network high-availability implementation method and super-convergence system
CN112416515A (en) Method, system, equipment and medium for deploying Keepalived cluster
TWI677247B (en) Muiti-node device and backup communication method thereof
CN110603798B (en) System and method for providing elastic consistency platform with high availability
CN113938446B (en) Multicast table item synchronization method and device based on MLAG environment
CN112131201B (en) Method, system, equipment and medium for high availability of network additional storage
CN112130958B (en) Virtual machine live migration method and system based on OVS
WO2012071855A1 (en) Method and system for activating service after restarting node of automatically switched optical network
CN115460125B (en) Method and device for solving island problem in Multi-Link network
KR101628219B1 (en) Method and apparatus for operating controller of software defined network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant