'Network partition detected in RabbitMQ

I have a RabbitMQ cluster with 3 nodes. The system is live and frequently there is a network partition error.

Network partition detected

Mnesia reports that this RabbitMQ cluster has experienced a network partition. There is a risk of losing data.

I want to receive an email notification when this event occurs in the RabbitMQ.

Is there a way to receive a notification from RabbitMQ if there is any network partition issue in the cluster? enter image description here



Solution 1:[1]

you can configure prometheus, and with it, you can integrate mail, alerts etc..

there is also a video about that: https://www.youtube.com/watch?v=NWISW6AwpOE

Solution 2:[2]

frequently issue is not acceptable for rabbitmq. so should avoid this situation.

in my case, if you using cluster with docker , met it frequently. whilc change to normal installation. issue gone.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Gabriele Santomaggio
Solution 2 user3073309