Just a precision : I run <div>* rabbitmq-server 2.1.1</div><div>* erlang R12B-5-10</div><div>on CentOS x64 <br><br><div class="gmail_quote">On Thu, Nov 25, 2010 at 2:53 PM, Mark Lui <span dir="ltr"><<a href="mailto:dr.mark.lui@gmail.com">dr.mark.lui@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I have been running into the same issue. Clustering works fine using<br>
the clustering transcript in the doc e.g.,<br>
<br>
rabbit2$ rabbitmqctl stop_app<br>
Stopping node rabbit@rabbit2 ...done.<br>
rabbit2$ rabbitmqctl reset<br>
Resetting node rabbit@rabbit2 ...done.<br>
rabbit2$ rabbitmqctl cluster rabbit@rabbit1<br>
Clustering node rabbit@rabbit2 with [rabbit@rabbit1] ...done.<br>
rabbit2$ rabbitmqctl start_app<br>
Starting node rabbit@rabbit2 ...done.<br>
<br>
etc...<br>
<br>
However using the auto-configuration sections of the docs has not worked.<br>
<br>
I tried adding<br>
<br>
[<br>
{rabbit, [<br>
{cluster_nodes, ['rabbit@rabbit1', 'rabbit@rabbit2']}<br>
]},<br>
].<br>
<br>
to the rabbitmq.config file and got a syntax error. Then tried<br>
<br>
[<br>
{rabbit, [<br>
{cluster_nodes, ['rabbit@rabbit1', 'rabbit@rabbit2']}<br>
]}<br>
].<br>
<br>
removing the comma and it did not cluster. Then tried<br>
<br>
['rabbit@rabbit1', 'rabbit@rabbit2']<br>
<br>
in the rabbitmq_cluster.config file and it did not cluster.<br>
<br>
I am at a lost as to what I am doing wrong. We would like to use the<br>
auto-configuration for an easier CM deployment. Any insight as what<br>
is wrong would be appreciated.<br>
<br>
Mark<br>
<div><div></div><div class="h5"><br>
<br>
On Thu, Nov 25, 2010 at 11:43 AM, Erwan <<a href="mailto:joserwan@gmail.com">joserwan@gmail.com</a>> wrote:<br>
> Hello,<br>
> I'm trying to configure a 2 nodes cluster setup. It works if I add a node<br>
> with rabbitmqctl cluster rabbit@server, but it doesn't if I use a config<br>
> file.<br>
> Here is my config /etc/rabbitmq/rabbitmq_cluster.config :<br>
> ['rabbit@server-172160237','rabbit@server-172160224']<br>
><br>
> /etc/hosts is set up :<br>
> (...)<br>
> 127.0.0.1 server-172160237<br>
> 172.16.0.224 server-172160224<br>
><br>
> When I start rabbit-mq server, I have no error, and rabbitmq status returns<br>
> :<br>
> Status of node 'rabbit@server-172160237' ...<br>
> [{running_applications,[{rabbit,"RabbitMQ","2.1.1"},<br>
> {os_mon,"CPO CXC 138 46","2.1.8"},<br>
> {sasl,"SASL CXC 138 11","2.1.5.4"},<br>
> {mnesia,"MNESIA CXC 138 12","4.4.7"},<br>
> {stdlib,"ERTS CXC 138 10","1.15.5"},<br>
> {kernel,"ERTS CXC 138 10","2.12.5"}]},<br>
> {nodes,[{disc,['rabbit@server-172160237']}]},<br>
> {running_nodes,['rabbit@server-172160237']}]<br>
> ...done.<br>
> I even tried to pass config file as environment variable :<br>
> RABBITMQ_NODENAME=toto<br>
> RABBITMQ_CLUSTER_CONFIG_FILE=/etc/rabbitmq/rabbitmq_cluster rabbitmq-server<br>
> and<br>
> RABBITMQ_NODENAME=toto<br>
> RABBITMQ_CLUSTER_CONFIG_FILE=/etc/rabbitmq/rabbitmq_cluster.config<br>
> rabbitmq-server<br>
><br>
> But same result, except that rabbit has been replaced by toto ...<br>
> Do you see something I may have done wrong ?<br>
</div></div>> _______________________________________________<br>
> rabbitmq-discuss mailing list<br>
> <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
> <a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
><br>
><br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br></div>