Cluster name changed in RabbitMQ Management UI after changing the ComputerHostName

215 views
Skip to first unread message

Pradosh Chakra

unread,
Mar 24, 2022, 6:28:11 AM3/24/22
to rabbitmq-users
Hi Team,
I am using below RabbitMQ and Erlang versions.
RabbitMQ     : 3.9.13
Erlang            :  24.2.1
Environment : Windows 10

We have implemented the feature called "Renaming RabbitMQ cluster node so that the RabbitMQ will be independent form system hostname"

The following steps implemented to make RabbitMQ runs on its own hostname.

1.stop RabbitMQ
net stop RabbitMQ /yes
2. Remove RabbitMQ Service
rabbitmq-service.bat remove
3.Add Hostname To Hosts File in the location(C:\Windows\System32\drivers\etc)
127.0.0.1 ComputerHostname
4.Creating Rabbitmq Environmental Config Bat file ( C:\Test\RabbitMQ\Data\rabbitmq-env-conf.bat)
set RABBITMQ_NODENAME=rabbit@ComputerHostName1

5 Add RabbitMQ To Services
rabbitmq-service.bat install
6.Start RabbitMQ Service
rabbitmq-service.bat start
7. set NodeName To Environment :
setx RABBITMQ_NODENAME ComputerHostName1 /M

 After Configuring with above steps the RabbitMQ is working fine and Communication between Control and Operation is working as expected.  

In RabbitMQ Management UI   cluster= rabbit@ComputerHostName1

After that i have changed my computer hostname from ComputerHostName1 to ComputerHostName2 and  I have restarted the Computer.

So i have observed that cluster name is changed to cluster= rabbit@ComputerHostName2 which is not happening in the currently used version(v3.8.8).

So Can you please suggest why the cluster is taking the new hostname in the v3.9.13? 


RabbitMQ installation Directory : C:\Test\RabbitMQ\Data

Below are the Environment Variables to customize the RabbitMQ Directory :
RABBITMQ_BASE = C:\Test\RabbitMQ\Data
RABBITMQ_ADVANCED_CONFIG_FILE = C:\Test\RabbitMQ\Data\advanced.config
RABBITMQ_NODENAME = rabbit@ComputerHostName1

Logs are attached for your reference.

Please help me resolving this issue.
hosts
advanced config.txt
rabbit@ComputerHostName.log
doc.txt
rabbimq-env-conf.txt

Luke Bakken

unread,
Mar 31, 2022, 12:42:25 PM3/31/22
to rabbitmq-users

Adrian Gray

unread,
Jul 8, 2022, 4:24:25 AM7/8/22
to rabbitmq-users
I think we have a similar issue - using Rabbit 3.9.13 : each node in the cluster has a different cluster name:

root@three1/tmp# rabbitmqctl cluster_status|grep Clus
Cluster status of node rabbit@three1 ...
Cluster name: rabbit@three1

root@three2~# rabbitmqctl cluster_status|grep Clus
Cluster status of node rabbit@three2 ...
Cluster name: rabbit@three2

root@three3~# rabbitmqctl cluster_status|grep Clus
Cluster status of node rabbit@three3 ...
Cluster name: rabbit@three3

@Luke I can't see the Slack convo - is there a public bug report somewhere for this?
Reply all
Reply to author
Forward
0 new messages