RabbitMQ Shovel
Shovel is a plug-in for RabbitMQ that enables you to define replication relationships between brokers.
Prerequisite
Before you configure Shovel, make sure that you create a user with admin
permission on both formations. For more information, see Managing Users and Permissions.
Configuring RabbitMQ Shovel
Create your Shovel on the destination formation. In RabbitMQ versions 3.12 and newer, it is mandatory to add verify_none
in the source and destination URI, as detailed in the configuration procedure.
Follow these steps to configure RabbitMQ Shovel:
- Log in to the RabbitMQ Management UI and select the Admin tab.
- Select Shovel Management from the list.
- Add a new shovel with the following information, then click Add shovel:
- Name: test-shovel
- Source: AMQP 0.9.1
- URI:
amqps://username:password@<source_hostname>:<source_port>?verify=verify_none
- Queue_name:
source_queue
- URI:
- Destination: AMQP 0.9.1
- URI:
amqps://username:password@<target_hostname>:<target_port>?verify=verify_none
- Queue_name:
target_queue
- URI:
- Review the details to verify that the shovel is created correctly.
- To verify Shovel status, select Shovel status.
- Now you can add a message to your source queue and it will redirect to the destination queue.
Replication relationships between brokers can be created within same region or cross-region.