[rabbitmq-discuss] can I set databse name in the configuration file to override default hostname value

Robert Raschke rtrlists at googlemail.com
Wed Mar 2 09:06:26 GMT 2011


On Wed, Mar 2, 2011 at 12:25 AM, Matthew Sackman <matthew at rabbitmq.com>wrote:

> On Tue, Mar 01, 2011 at 06:42:06PM -0500, Pendleton, Gordon P wrote:
> > I am having trouble figuring out how to configure RabbitMQ to use a value
> other than the server hostname when naming the database file it uses.  I am
> using amazon ec2 so hostname changes every time an instance is started.
>  Because of this, I need to be able to set the name in a configuration file.
>  I can't find a list of configuration options so can someone tell me how to
> do this and which configuration file I should be using (I read there are
> two)?
>
>
> You can set the env var RABBITMQ_NODENAME or set NODENAME in
> /etc/rabbitmq/rabbitmq.conf
>
>
If you're not doing any clustering and know that you will pretty much only
ever use the one instance, your can name it "localhost" and that'll make it
run on any machine. It's a bit of a shortcut if you know that you won't be
needing any Erlang style distribution anytime soon.

As soon as distributed nodes need to talk, you have to set it up properly.

Robby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110302/40405353/attachment-0001.htm>


More information about the rabbitmq-discuss mailing list