[rabbitmq-discuss] Can't cluster nodes on a single machine

Gigi gigi at roblox.com
Sun May 20 00:47:05 BST 2012


I have two detached nodes called rabbit-1 and rabbit-2  running on port 
5672 and 5673. I follow the transcript for clustering and verified that 
rabbit-1 is running (via the status command) but when the cluster 
command fails complaining that rabbit-1 is not running. I tried to 
cluster both to rabbit-1 and rabbit-1 at GIGI (the host name). I even ran 
cluster_status on rabbit-1 and it says it's running just fine as a disc 
node (clustered to itself). Can anyone point out what am I doing wrong?

The setup is a Windows 7 laptop, Erlang 15B, RabbitMQ 2.8.2 with the 
management plugin. The start command sets the RABBITMQ_SERVER_START_ARGS 
so the management plugin for each node listens on a different port 
(55672 and 55673) .

Thanks, Gigi

Here is the session:

C:\Program Files (x86)\RabbitMQ 
Server\rabbitmq_server-2.8.2\sbin>rabbitmqctl.bat -n rabbit-2 stop_app
Stopping node 'rabbit-2 at Gigi' ...
...done.

C:\Program Files (x86)\RabbitMQ 
Server\rabbitmq_server-2.8.2\sbin>rabbitmqctl.ba
t -n rabbit-2 reset
Resetting node 'rabbit-2 at Gigi' ...
...done.

C:\Program Files (x86)\RabbitMQ 
Server\rabbitmq_server-2.8.2\sbin>rabbitmqctl.bat -n rabbit-1 status
Status of node 'rabbit-1 at Gigi' ...
[{pid,12988},
  {running_applications,
      [{rabbitmq_management,"RabbitMQ Management Console","2.8.2"},
       {xmerl,"XML parser","1.3"},
       {rabbitmq_management_agent,"RabbitMQ Management Agent","2.8.2"},
       {amqp_client,"RabbitMQ AMQP Client","2.8.2"},
       {rabbit,"RabbitMQ","2.8.2"},
       {os_mon,"CPO  CXC 138 46","2.2.8"},
       {sasl,"SASL  CXC 138 11","2.2"},
       {rabbitmq_mochiweb,"RabbitMQ Mochiweb Embedding","2.8.2"},
       {webmachine,"webmachine","1.7.0-rmq2.8.2-hg"},
       {mochiweb,"MochiMedia Web Server","1.3-rmq2.8.2-git"},
       {inets,"INETS  CXC 138 49","5.8"},
       {mnesia,"MNESIA  CXC 138 12","4.6"},
       {stdlib,"ERTS  CXC 138 10","1.18"},
       {kernel,"ERTS  CXC 138 10","2.15"}]},
  {os,{win32,nt}},
  {erlang_version,"Erlang R15B (erts-5.9) [smp:8:8] [async-threads:30]\n"},
  {memory,
      [{total,19502880},
       {processes,6062447},
       {processes_used,6062432},
       {system,13440433},
       {atom,495069},
       {atom_used,485111},
       {binary,82512},
       {code,9611946},
       {ets,625740}]},
  {vm_memory_high_watermark,0.10147532588839969},
  {vm_memory_limit,858993459},
  {disk_free_limit,8465047552},
  {disk_free,58608041984},
  {file_descriptors,
      
[{total_limit,924},{total_used,4},{sockets_limit,829},{sockets_used,2}]},
  {processes,[{limit,1048576},{used,181}]},
  {run_queue,0},
  {uptime,358}]
...done.

C:\Program Files (x86)\RabbitMQ 
Server\rabbitmq_server-2.8.2\sbin>rabbitmqctl.ba
t -n rabbit-2 cluster rabbit-1
Clustering node 'rabbit-2 at Gigi' with ['rabbit-1'] ...
Error: {no_running_cluster_nodes,['rabbit-1'],['rabbit-1']}

C:\Program Files (x86)\RabbitMQ 
Server\rabbitmq_server-2.8.2\sbin>rabbitmqctl.ba
t -n rabbit-2 cluster rabbit-1 at GIGI
Clustering node 'rabbit-2 at Gigi' with ['rabbit-1 at GIGI'] ...
Error: {no_running_cluster_nodes,['rabbit-1 at GIGI'],['rabbit-1 at GIGI']}

C:\Program Files (x86)\RabbitMQ 
Server\rabbitmq_server-2.8.2\sbin>rabbitmqctl.bat -n rabbit-1 cluster_status
Cluster status of node 'rabbit-1 at Gigi' ...
[{nodes,[{disc,['rabbit-1 at Gigi']}]},{running_nodes,['rabbit-1 at Gigi']}]
...done.








More information about the rabbitmq-discuss mailing list