[rabbitmq-discuss] auto configration cluster fail ...
Allchin
citi007 at 126.com
Thu Aug 30 10:24:37 BST 2012
hi ,
I am running 1 virtual machines with 1 rabbitMQ server on each.
And follow the auto configration cluster guide ,I found my cluster doesn't work without any error .
----------------------------
here is the clear-up script.
rabbitMQ-cluster-reset.bat
----------------------------
cd %rabbit_bin_home%
call rabbitmqctl cluster_status
call rabbitmqctl stop_app
call rabbitmqctl force_reset
call rabbitmqctl stop
-------------------------------
here is my running script :
rabbitMQ-cluster-start.bat
-------------------------------
echo off
set RABBITMQ_NODENAME=rabbit
set RABBITMQ_CLUSTER_CONFIG_FILE=E:\servers\rabbitMQ\rabbitmq
set RABBITMQ_CONFIG_FILE=%RABBITMQ_CLUSTER_CONFIG_FILE%
set RABBITMQ_CONSOLE_LOG=new
rabbitmq-server -detached
pause
-------------------
the rabbitmq.config file
-------------------
[{rabbit,[{cluster_nodes,['rabbit at rabbit2','rabbit at rabbit3']}]}].
----------------------------------------------------------------------------
run
rabbitMQ-cluster-reset.bat
and
rabbitMQ-cluster-start.bat
on each node.
the result :
rabbt3>C:\Program Files\RabbitMQ Server\rabbitmq_server-2.8.5\sbin>rabbitmqctl cluster_
status
Cluster status of node rabbit at rabbit3 ...
[{nodes,[{disc,[rabbit at rabbit3]}]},{running_nodes,[rabbit at rabbit3]}]
...done.
rabbit2>C:\Program Files\RabbitMQ Server\rabbitmq_server-2.8.5\sbin>rabbitmqctl cluster_
status
Cluster status of node rabbit at rabbit2 ...
[{nodes,[{disc,[rabbit at rabbit2]}]},{running_nodes,[rabbit at rabbit2]}]
...done.
this is not the correct cluster msg .
then i try to modify script likes
---
set RABBITMQ_CLUSTER_CONFIG_FILE=E:\servers\rabbitMQ\rabbitmq
<-->
set RABBITMQ_CLUSTER_CONFIG_FILE=E:\servers\rabbitMQ\rabbitmq.config
---
[{rabbit,[{cluster_nodes,['rabbit at rabbit2','rabbit at rabbit3',rabbit at RABBIT2','rabbit at RABBIT3']}]}].
<-->
[{rabbit,[{cluster_nodes,['rabbit at rabbit2','rabbit at rabbit3'']}]}].
---
but it still doesn't work.
i am sure these nodes can ping each other successfully...
what wrong with the cluster configration ?
please help me and thanks.
allchin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120830/956a633c/attachment.htm>
More information about the rabbitmq-discuss
mailing list