[rabbitmq-discuss] Creating a rabbitmq.config for federation
Simon MacMullen
simon at rabbitmq.com
Mon Oct 28 15:37:41 GMT 2013
Did you see any of the responses here:
http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2013-October/031243.html
?
If you are using the google group you should be aware that:
1) We are not in control of it, and the person who was in control of it
has vanished.
2) It seems mediocre at forwarding messages from the mailing list.
Cheers, Simon
On 28/10/2013 3:25PM, Robert Parker wrote:
> Anybody? Are there any white papers anywhere on how to configure
> federation in rabbitmq.config similar to what I'm doing above? Its much
> easier to deploy a single file to each system to configure rabbitmq than
> run a set of rabbitmqctl commands in a script.
>
> Thanks,
> Robert
>
> On Tuesday, October 22, 2013 2:18:01 PM UTC-5, Robert Parker wrote:
>
> I'm having trouble finding good examples of how to configure
> a rabbitmq.config file to do what I've been doing with a set of
> rabbitmqctl commands. Here's the script I use to configure
> clustering and federation for one of my rabbitmq clusters:
>
> #!/bin/bash
>
> rabbitmqctl stop_app
> rabbitmqctl reset
> rabbitmqctl join_cluster rabbit at rabbit2
> rabbitmqctl start_app
> rabbitmq-plugins enable rabbitmq_federation
> rabbitmq-plugins enable rabbitmq_federation_management
> rabbitmq-plugins enable rabbitmq_management
> service rabbitmq-server restart
>
> rabbitmqctl set_parameter federation-upstream cluster1-upstream
> '{"uri":["amqp://rabbit3.example.com
> <http://rabbit3.example.com>","amqp://rabbit4.example.com
> <http://rabbit4.example.com>"],"expires":3600000}'
> rabbitmqctl set_policy federate-mything "^Mything$"
> '{"federation-upstream-set":"all"}' 0
>
>
>
> How do I convert that into a format that will work in a
> rabbitmq.config so that all I need to do is drop this config file
> in, reset the node, then restart rabbitmq-server to get this
> configuration working? Also, if you put your cluster config into
> rabbitmq.config on both nodes to be clustered, will they
> automatically set the correct /var/lib/rabbitmq/.erlang.cookie or
> must that step still be done manually?
>
> Thanks in advance
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
--
Simon MacMullen
RabbitMQ, Pivotal
More information about the rabbitmq-discuss
mailing list