<p dir="ltr">Hi Oyvind, thanks for the explanation and joining. my only doubt about using systemd is pacemaker will not check in any way the status of the rabbitmq cluster but only the status those resources. So basically it could check all resources up but not a consistent rabbit cluster.<br>
What do u think about it?<br>
I also noticed rabbitmq-server-ha resource agent (2444 code lines) but it doesn't work to me yet (some pid problems)</p>
<p dir="ltr">Really thanks for helping and share ur knowledge </p>
<p dir="ltr">Damian</p>
<br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 25, 2024, 12:03 PM Oyvind Albrigtsen <<a href="mailto:oalbrigt@redhat.com">oalbrigt@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There's also the rabbitmq-cluster agent, but that is also made for<br>
OSP, and seems to wipe data during the start-action.<br>
<br>
So the best way is probably to run it via the systemd unit file. Run<br>
"pcs resource list systemd" to find it, and create it the same way<br>
(it doesnt take any parameters, so settings has to be set in e.g.<br>
the config files in /etc/ or similar).<br>
<br>
<br>
Oyvind Albrigtsen<br>
<br>
On 25/06/24 11:48 GMT, Damiano Giuliani wrote:<br>
>I Ken, thanks for answering.<br>
>Yes unfortunately the rabbitmq-cluster agent wipe everything and losing our<br>
>quorum queue is not an option 😄 we just learnt after a power interrupion<br>
>this! I was super confident about the agent really didn't expected a<br>
>complete wipe and rebuild!lession learned!<br>
><br>
>If somebody con join the conversation and share how achieve high<br>
>availability rabbimq with pacemaker helping me I would really appreciate!<br>
><br>
>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>
><br>
>> 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>
>> ><br>
>> <a href="https://www.rabbitmq.com/docs/cluster-formation#peer-discovery-classic-config" rel="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" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/users</a><br>
>> ><br>
>> > ClusterLabs home: <a href="https://www.clusterlabs.org/" rel="noreferrer noreferrer" target="_blank">https://www.clusterlabs.org/</a><br>
>> --<br>
>> Ken Gaillot <<a href="mailto:kgaillot@redhat.com" target="_blank" rel="noreferrer">kgaillot@redhat.com</a>><br>
>><br>
>> _______________________________________________<br>
>> Manage your subscription:<br>
>> <a href="https://lists.clusterlabs.org/mailman/listinfo/users" rel="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" target="_blank">https://www.clusterlabs.org/</a><br>
>><br>
<br>
>_______________________________________________<br>
>Manage your subscription:<br>
><a href="https://lists.clusterlabs.org/mailman/listinfo/users" rel="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" target="_blank">https://www.clusterlabs.org/</a><br>
<br>
_______________________________________________<br>
Manage your subscription:<br>
<a href="https://lists.clusterlabs.org/mailman/listinfo/users" rel="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" target="_blank">https://www.clusterlabs.org/</a><br>
</blockquote></div>