Stack Overflow Asked by David Vasandani on November 18, 2021
How do I load a RabbitMQ config at startup to confirm that broker objects (queues, exchanges, bindings, users, virtual hosts, permissions and parameters) are created?
According to the RabbitMQ documentation, it can be done via load_definitions
http://www.rabbitmq.com/management.html#load-definitions
But I can’t figure out how to use it. Would someone mind sharing an example of how this works? I can’t find any examples online.
There's two bits that the documentation leaves to be desired that were stumbling blocks for me.
Generating the definitions file
I found the easiest way to do that is to configure one RabbitMQ server how you like it and then...
Configuring RabbitMQ to look for a definitions file at startup
Include a block like this in the configuration file:
{rabbitmq_management, [
{listener, [...]},
{load_definitions, "/etc/rabbitmq/definitions.json"} ]},
Upon startup, those definitions should get loaded. Any errors loading them should be apparent in the logs.
Answered by neilschelly on November 18, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP