[rabbitmq-discuss] Clustering Off LAN isn't working

Matthias Radestock matthias at lshift.net
Wed Apr 15 08:28:18 BST 2009


Daniel,

Daniel N wrote:
> I've setup a cluster on my LAN (finally) and got it working by modifying 
> the startup script for rabbitmq-server (yuk) to set the cookie.

You don't have to modify the startup script. Just put
   SERVER_ERL_ARGS="${SERVER_ERL_ARGS} -setcookie mycookie"
in rabbitmq.conf.

> Then setup /etc/rabbitmq/rabbitmq.conf to set the cookie:
> 
> CTL_ERL_ARGS="-setcookie mycookie"
> 
> [...]
> 
> Over the Interwebs:
> 
> $ sudo rabbitmqctl -n rabbit at ubinet status
> Status of node rabbit at ubinet ...
> {badrpc,nodedown}
> ...done.
> 
> Where ubinet is setup in my hosts file.
>
> If I use a full IP address:
>  $ sudo rabbitmqctl -n rabbit at 123.456.789.123 status
> Status of node 'rabbit at 123.456.789.123' ...
> 
> =ERROR REPORT==== 15-Apr-2009::14:50:00 ===
> ** System NOT running to use fully qualified hostnames **
> ** Hostname 123.456.789.123 is illegal **
> {badrpc,nodedown}
> ...done.

That's expected; rabbit uses shortnames. You may have to modify the 
scripts to use long names to get this to work. I personally haven't 
experimented with getting rabbitmqctl or a rabbit cluster to work across 
multiple domains, but I am sure some other folks in the list have tried 
this (and hopefully succeeded) and may be able to help.


Regards,

Matthias.




More information about the rabbitmq-discuss mailing list