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.