[rabbitmq-discuss] Configuring RabbitMQ to support change in hostname
Tim Watson
watson.timothy at gmail.com
Tue Apr 2 19:59:15 BST 2013
Hi
On 2 Apr 2013, at 19:44, Kapil Goyal <goyalk at vmware.com> wrote:
> So, RabbitMQ does not really support change in hostname at all without losing existing data. Is that correct?
>
Erm not quite - if you copy/rename the mnesia directory you can work around this. The node name is dev1 then you can rename/move directories to something else (or override directory names to use something that isn't bound to the node name if you prefer). I don't see how your proposed use of a
Random stein would make any different though.
> From: rabbitmq-discuss-bounces at lists.rabbitmq.com [mailto:rabbitmq-discuss-bounces at lists.rabbitmq.com] On Behalf Of Tim Watson
> Sent: Tuesday, April 02, 2013 4:31 AM
> To: Discussions about RabbitMQ
> Cc: Discussions about RabbitMQ
> Subject: Re: [rabbitmq-discuss] Configuring RabbitMQ to support change in hostname
>
> On 29 Mar 2013, at 23:18, Kapil Goyal <goyalk at vmware.com> wrote:
>
> am thinking of solving it by replacing rabbit at localhost with rabbit@<random string> before RabbitMQ starts for the first time. Does <random string> have to be DNS resolvable?
>
> Yes. It needs to be the proper hostname for the node.
>
>
>
>
>
> From: rabbitmq-discuss-bounces at lists.rabbitmq.com [mailto:rabbitmq-discuss-bounces at lists.rabbitmq.com] On Behalf Of Dushin Fred
> Sent: Thursday, March 28, 2013 6:44 PM
> To: Discussions about RabbitMQ
> Subject: Re: [rabbitmq-discuss] Configuring RabbitMQ to support change in hostname
>
> See
>
> http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2013-February/025368.html
>
>
> On Mar 28, 2013, at 4:53 PM, Kapil Goyal <goyalk at vmware.com> wrote:
>
>
>
> RabbitMQ creates a new database if hostname is changed (as documented at http://www.rabbitmq.com/ec2.html).
>
> I need to support the hostname change on my RabbitMQ server without impacting its functioning. Can I accomplish this by setting the NODENAME environment variable in rabbitmq-env.conf. It seems from rabbitmq-server script that names of database, logs etc. try to use this variable before resorting to using hostname. Is this the right approach? Are there any side-effects to look out for?
>
> Thanks
> Kapil Goyal
> Sr. MTS
> VMware Inc.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130402/051b75cf/attachment.htm>
More information about the rabbitmq-discuss
mailing list