<div dir="auto"><p dir="ltr">I Ken, thanks for answering.<br>
Yes unfortunately the rabbitmq-cluster agent wipe everything and losing our quorum queue is not an option ðŸ˜„ we just learnt after a power interrupion this! I was super confident about the agent really didn't expected a complete wipe and rebuild!lession learned!</p><p dir="ltr">If somebody con join the conversation and share how achieve high availability rabbimq with pacemaker helping me I would really appreciate!</p></div>
<br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 24, 2024, 5:19 PM Ken Gaillot <<a href="mailto:kgaillot@redhat.com" target="_blank" rel="noreferrer">kgaillot@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
The rabbitmq-cluster agent was written specifically for the OpenStack<br>
use case, which is fine with recreating the cluster from scratch after<br>
problems. I'm not sure about the other two, and I'm not really familiar<br>
with any of the agents. Hopefully someone with more experience with<br>
RabbitMQ can jump in.<br>
<br>
On Thu, 2024-06-20 at 10:33 +0200, Damiano Giuliani wrote:<br>
> Hi,<br>
> <br>
> hope you guys can help me,<br>
> <br>
> we have builded up a rabbitmq cluster using pacemaker resource called<br>
> rabbitmq-cluster.<br>
> everything works as exptected till for maintenance reason, we shutted<br>
> down the entire cluster gracefully.<br>
> at the startup we noticed all the user and permissions were dropped<br>
> and probably also the quorum queues.<br>
> So investigating the resource agent (rabbitmq-cluster), i find out it<br>
> callss this wipe function<br>
> <br>
> rmq_wipe_data()<br>
> {<br>
> rm -rf $RMQ_DATA_DIR > /dev/null 2>&1 <br>
> }<br>
> <br>
> when the first start function is called <br>
> <br>
> rmq_start_first()<br>
> {<br>
> local rc<br>
> <br>
> ocf_log info "Bootstrapping rabbitmq cluster"<br>
> rmq_wipe_data<br>
> rmq_init_and_wait<br>
> rc=$?<br>
> <br>
> So probably when all the cluster is fired up by pacemaker all the<br>
> rabbitmq istances are wiped out.<br>
> <br>
> the rabbitmq-cluster is quite old (3-4yo) and probably didnt take<br>
> into account quorum queues which are presistent, so a full wipe is<br>
> not acceptable.<br>
> <br>
> So i moved to the RA called rabbitmq-server-ha which is quite huge<br>
> and big script but im a bit lost because i notice also this one seems<br>
> cleans mnesia folder.<br>
> <br>
> So the third and last one is the RA rabbitmq-server  which seems<br>
> simple resoruce but not manage cluster status but only simple actions<br>
> like start stop etc.<br>
> i could probably build the cluster using this one + rabbitmq.conf<br>
> file where i defined cluster istances, something like this.<br>
> <a href="https://www.rabbitmq.com/docs/cluster-formation#peer-discovery-classic-config" rel="noreferrer noreferrer noreferrer" target="_blank">https://www.rabbitmq.com/docs/cluster-formation#peer-discovery-classic-config</a><br>
> <br>
> so im a bit lost because seems there is no easy way to build up a<br>
> rabbitmq cluster using pacemaker.<br>
> <br>
> can you guys help me heading on the correct way?<br>
> <br>
> thanks<br>
> <br>
> Damiano<br>
> <br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> Manage your subscription:<br>
> <a href="https://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/users</a><br>
> <br>
> ClusterLabs home: <a href="https://www.clusterlabs.org/" rel="noreferrer noreferrer noreferrer" target="_blank">https://www.clusterlabs.org/</a><br>
-- <br>
Ken Gaillot <<a href="mailto:kgaillot@redhat.com" rel="noreferrer noreferrer" target="_blank">kgaillot@redhat.com</a>><br>
<br>
_______________________________________________<br>
Manage your subscription:<br>
<a href="https://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/users</a><br>
<br>
ClusterLabs home: <a href="https://www.clusterlabs.org/" rel="noreferrer noreferrer noreferrer" target="_blank">https://www.clusterlabs.org/</a><br>
</blockquote></div>