[ClusterLabs] clutering rabbitmq

Damiano Giuliani damianogiuliani87 at gmail.com
Thu Jun 20 08:33:03 UTC 2024


Hi,

hope you guys can help me,

we have builded up a rabbitmq cluster using pacemaker resource called
rabbitmq-cluster.
everything works as exptected till for maintenance reason, we shutted down
the entire cluster gracefully.
at the startup we noticed all the user and permissions were dropped and
probably also the quorum queues.
So investigating the resource agent (rabbitmq-cluster), i find out it
callss this wipe function

rmq_wipe_data()
{
rm -rf $RMQ_DATA_DIR > /dev/null 2>&1
}

when the first start function is called

rmq_start_first()
{
local rc

ocf_log info "Bootstrapping rabbitmq cluster"
rmq_wipe_data
rmq_init_and_wait
rc=$?

So probably when all the cluster is fired up by pacemaker all the rabbitmq
istances are wiped out.

the rabbitmq-cluster is quite old (3-4yo) and probably didnt take into
account quorum queues which are presistent, so a full wipe is not
acceptable.

So i moved to the RA called rabbitmq-server-ha which is quite huge and big
script but im a bit lost because i notice also this one seems cleans mnesia
folder.

So the third and last one is the RA rabbitmq-server  which seems simple
resoruce but not manage cluster status but only simple actions like start
stop etc.
i could probably build the cluster using this one + rabbitmq.conf file
where i defined cluster istances, something like this.
https://www.rabbitmq.com/docs/cluster-formation#peer-discovery-classic-config

so im a bit lost because seems there is no easy way to build up a rabbitmq
cluster using pacemaker.

can you guys help me heading on the correct way?

thanks

Damiano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20240620/35197689/attachment.htm>


More information about the Users mailing list