Created
February 25, 2016 14:10
-
-
Save fforbeck/fd857e8d1284b3b26a83 to your computer and use it in GitHub Desktop.
RabbitMQ - Shovel Plugin: Move messages from one queue to another via command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The command deletes the parameter after all messages are moved origin to target queue | |
rabbitmqctl set_parameter -p <vhost> shovel "<origin.queue.name>" '{"src-uri":"amqp://<user>:<pwd>@/<vhost_name>","src-queue":"<origin.queue.name>","dest-uri":"amqp://<user>:<pwd>@/<vhost_name>","dest-exchange":"<target.queue.name>","prefetch-count":1,"reconnect-delay":5,"add-forward-headers":false,"ack-mode":"on-confirm","delete-after":"queue-length"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment