[rabbitmq-discuss] Issues with rabbitmq and manual configured hostname

Matthias Radestock matthias at lshift.net
Thu Oct 8 15:18:22 BST 2009


majek04 wrote:
> On Thu, Oct 8, 2009 at 13:06, Martin Wilhelm <mwilhelm at vz.net> wrote:
>> [root at lnxv-3339:~]$ cat /etc/rabbitmq/rabbitmq.conf
>> NODENAME=wico at localhost
>> RABBITMQ_MNESIA_BASE=/data/netapp/config/tmp/rabbitmq-DB/mnesia
> 
> First, I think you should use RABBITMQ_NODENAME instead of NODENAME.
> This shouldn't make much difference, but it's preferred.

err, quite the opposite. Settings in rabbitmq.conf should not have the 
RABBITMQ_ prefix. That way one can still override the settings from the 
command line.

> Second, we set the nodename using erlang "-sname" short name option.
> This mean that you shouldn't use "@" notation. In your case specifying
> "RABBITMQ_NODENAME=wico" might work.

Indeed the scripts assume that the @ suffix is absent.

The reason Martin wants to set the node name to <something>@localhost is 
so that it remains the same when failing over to a different machine.

It would be quite easy to change the scripts (well, actually the erlang 
code behind them) to accept suffixed node names. I will file a bug for that.


Matthias.




More information about the rabbitmq-discuss mailing list