Windows RabbitMQ Mirroring Queue (high availability, one outage automatically switches to another) use RabbitMQ's own web management tools

Source: Internet
Author: User
Tags rabbitmq

 

 The mirror queue is based on a common cluster mode, so you have to configure the normal cluster (refer to the previous Windows RabbitMQ cluster ) before you can set up the mirroring queue.

Create a new queue on the cluster server:

    

   

The mirroring queue is implemented through the RABBITMQ configuration policy:

     The mirroring queue provides three modes:

? All: The entire node queue is mirrored;

? Exactly: Specifies the maximum number of nodes mirroring the mirror queue;

? Nodes: Configure the mirror queue for specific nodes only;

Create a mirrored queue such as:

        

      

Click "ADD Policy" to complete the creation.

Ha-sync-mode: If this node is not set, it will be reported when one of the servers unsynchronised Mirrors XXXX error.

At this time, the queue details page needs to manually click on the sync queue or execute the command with command line rabbitmqctl sync_queue name

      

Image creation completed such as:

        

    

After the image is created, the queue is as follows:

      

   If you see such a queue, congratulations!

The high availability configuration for the RabbitMQ cluster mirroring queue has been completed.

Any outage in the cluster will automatically switch to another one (the server cluster is all hanging, please rush into the arms of the OPS colleague ^_^)

The mirror queue is automatically synced when the downtime machine is turned on, keeping it consistent!

      

Windows RabbitMQ Mirroring Queue (high availability, one outage automatically switches to another) use RabbitMQ's own web management tools

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.