[rabbitmq-discuss] Questiong about plugins and clustering
videlalvaro at gmail.com
Fri Oct 4 01:38:46 BST 2013
I started a plugin which main logic is the gen_server here:
As you can see it will subscribe to mnesia system events and also it will
listen into the amq.rabbitmq.log exchange.
The problem is that when I make other nodes join the cluster, it will not
always receive the message from the amq.rabbitmq.log exchange, also the
mnesia system events appear to not always be broadcasted.
Any ideas on what I might be doing wrong?
On Mon, Sep 23, 2013 at 4:06 AM, Emile Joubert <emile at rabbitmq.com> wrote:
> Hi Alvaro,
> On 21/09/13 02:53, Alvaro Videla wrote:
> > Is there a way for a plugin to know when a node joins or leaves the
> > cluster?
> A plugin could subscribe to Mnesia system events that will report when
> Mnesia stops and starts on nodes:
> Depending on the kind of plugin you are writing you could use the
> information sent to the log exchange (amq.rabbitmq.log) to determine
> when nodes leave and join.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss