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