On 10 February 2015 at 11:19:40,
ni...@nine.ch (
ni...@nine.ch) wrote:
> > In my understanding the setting rabbit@localhost might work
> with a rabbitmq/drbd/pacemaker (active/passive) setup as
> you switch the mnesa file store between 2 nodes (via drbd). The
> node name of the rabbitmq installation will be always the same
> (as the mnesa directory content is always the same). I hope so
> far I am right :-)
>
> We are using a setup with mirrored queues in rabbitmq (having
> 2 nodes). So we have one rabbitmq installation on each node. They
> are named differently (as the hostnames are different). With
> pacemaker we make sure that both instances are running (using
> a 'clone' resource) and additionally we switch a virtual IP between
> the 2 nodes to make rabbitmq high available. The problem is that
> pacemaker will sync the configuration (aka our "nodename" parameter)
> for one resource (our rabbitmq clone resource) between the 2
> nodes. So giving a nodename here, will be wrong on one side of the
> cluster.
Is there any documentation on the use of variables (or shell outs) such as $(hostname -f)?
I wonder if the same can be accomplished by using the nodename parameter instead of changing the default.