[rabbitmq-discuss] Windows Server 2003 Server Cluster Hack Active /Passive

Benjamin Bennett benbennett at gmail.com
Sat Oct 15 22:52:16 BST 2011


I seen this older posting about rabbitmq in windows server
http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2010-August/008559.html
 .

I just wanted to pass it along if it hasn't been done already. I am
pretty sure I know what the user was trying to do .

In a Windows Server Cluster , there is a Cluster Administrator that
allows adding generic windows services to the cluster.

The only hang up in with default service installer is the actual
service name has a guid appended to the name.

So trying to add it as a Generic Cluster Service fails because it
needs to have the exact same service name on all nodes.

So in our cluster we have shared disk that the rabbitmq data is stored
on (scsi multi path between the two machines) .

I had to hack by calling the erlsrv directly just adding the rabbitmq
service and then calling the service installer .

So my steps were :

1) Set the RABBITMQ_BASE to a shared disk path that is cluster
resource in the windows clustering admin tool
2) Install erlang on all nodes in the active passive cluster
3) Set the RABBITMQ_NODE_IP_ADDRESS to the clustered ip address .
4) Set the RABBITMQ_NODENAME to the some form of the cluster hostname
example node0 at cluster_dns_name
5) Hack probably better way to do this but call the erlsrv add
RabbitMq -i RabbitMq
6) Call the rabbitmq windows service installer
7) Shut down rabbitmq on the current node
8) Fail over the shared hostname,disk resources  to the next node to
install on , repeat the steps above
9) After all nodes have the RabbitMq service installed , add a generic
service in the cluster administrator , set the dependencies on the
shared ip, hostname and disk, call it RabbitMq

That is what I got Active / Passive clustering to work on a two node
Windows 2003 Server cluster . It is failing over back and forth as
expected.


More information about the rabbitmq-discuss mailing list