Skip to content

Instantly share code, notes, and snippets.

@fforbeck
Created February 25, 2016 14:10
Show Gist options
  • Save fforbeck/fd857e8d1284b3b26a83 to your computer and use it in GitHub Desktop.
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
# 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