<div dir="ltr">Anybody? &nbsp;Are there any white papers anywhere on how to configure federation in rabbitmq.config similar to what I'm doing above? &nbsp;Its much easier to deploy a single file to each system to configure rabbitmq than run a set of rabbitmqctl commands in a script.&nbsp;<div><br></div><div>Thanks,</div><div>Robert<br><br>On Tuesday, October 22, 2013 2:18:01 PM UTC-5, Robert Parker wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">I'm having trouble finding good examples of how to configure a&nbsp;rabbitmq.config file to do what I've been doing with a set of rabbitmqctl commands. &nbsp;Here's the script I use to configure clustering and federation for one of my rabbitmq clusters:<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>#!/bin/bash</div></div><div><div><br></div></div><div><div>rabbitmqctl stop_app</div></div><div><div>rabbitmqctl reset</div></div><div><div>rabbitmqctl join_cluster rabbit@rabbit2</div></div><div><div>rabbitmqctl start_app</div></div><div><div>rabbitmq-plugins enable rabbitmq_federation</div></div><div><div>rabbitmq-plugins enable rabbitmq_federation_management</div></div><div><div>rabbitmq-plugins enable rabbitmq_management</div></div><div><div>service rabbitmq-server restart</div></div><div><div><br></div></div><div><div>rabbitmqctl set_parameter federation-upstream cluster1-upstream '{"uri":["amqp://<a href="http://rabbit3.example.com" target="_blank">rabbit3.<wbr>example.com</a>","amqp://<a href="http://rabbit4.example.com" target="_blank">rabbit4.<wbr>example.com</a>"],"expires":<wbr>3600000}'</div></div><div><div>rabbitmqctl set_policy federate-mything "^Mything$" '{"federation-upstream-set":"<wbr>all"}' 0</div></div></blockquote><div><br></div><div><br></div><div>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? &nbsp;Also, if you put your cluster config into rabbitmq.config &nbsp;on both nodes to be clustered, will they automatically set the correct&nbsp;/var/lib/rabbitmq/.<wbr>erlang.cookie or must that step still be done manually?</div><div><br></div><div>Thanks in advance</div></div></blockquote></div></div>