n
Ensure that you have at least two RabbitMQ nodes already installed following the appropriate installation
process.
n
Ensure that all cluster nodes can resolve each others’ DNSnames to the corerct IPs.
n
Install RabbitMQ on N+1 virtual or physical machines.
n
Check the availability of open firewall for cluster ports:
l
Make sure the firewall rule is open for the network type (private/domain only) on each virtual/physical
machine where RabbitMQ nodes will be installed.
l
Required TCP ports: 4369, 25672,44002.
n
See RabbitMQ Clustering to find the value for the Erlang cookie of Rabbit Service on the node that you are
trying to join.
n
On Erlang versions starting with 20.2, the cookie file locations are:
l
%HOMEDRIVE%\%HOMEPATH%\.erlang.cookie (usually C:\Users\%USERNAME%\erlang.cookie for user
%USERNAME%’) if both the HOMEDRIVE and HOMEPATH environment variables are set.
l
%USERPROFILE%\.erlang.cookie, (usually C:\`Users\%USERNAME%\.erlang.cookie') if HOMEDRIVE
and HOMEPATH are not set.
n
For the RabbitMQ Windows service: %USERPROFILE%\.erlang.cookie (usually
C:\`WINDOWS\system32\config\systemprofile'). The cookie file used by the Windows service account and
the user running CLI tools must be synchronized.
n
On Erlang versions prior to 20.2 (e.g. 19.3 or 20.1), the cookie file locations are:
%HOMEDRIVE%%HOMEPATH%.erlang.cookie (usually C:\`Users%USERNAME%.\erlang.cookie for user
%USERNAME%') if both the HOMEDRIVE and HOMEPATH environment variables are
set,%USERPROFILE%.erlang.cookie (usually C:\`Users\%USERNAME%.\erlang.cookie') if HOMEDRIVE and
HOMEPATH are not both set.
n
For the RabbitMQ Windows service: %WINDIR%\Users\%USER%.\erlang.cookie (usually
C:Users\<UserName>.\erlang.cookie) The cookie file used by the Windows service account and the user
running CLI tools must be synchronized.
Usually, the cookie location is the following: C:\WINDOWS\system32\config\systemprofile. That cookie value is the
shared secret for the cluster, so all nodes joining the cluster must use this shared secret. By retrieving the value
from the cookie in the above node's location, try to join and use it with the Set ErlangCookieFileCommand on
another node. The other node will have its Erlang cookie set to match the first node. Clustering commands join the
other node to the first node and then bring the first node into the mirror.
Joining a Cluster Using the RabbitMQ Helper
To join a cluster using the RabbitMQ Helper, run the commands listed below.
1. Set-ErlangCookieFileCommand—updates the Erlang Cookie file with values given by the user. If two or more
nodes want to communicate, they must have the same shared secret called the Erlang cookie. For details, see
the Prerequisites section above.
Delinea RabbitMQ Helper Integration Guide Pagexxviiiof94
Clustering