[rabbitmq-discuss] Questiong about plugins and clustering
Emile Joubert
emile at rabbitmq.com
Mon Sep 23 10:06:36 BST 2013
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:
http://www.erlang.org/doc/apps/mnesia/Mnesia_chap5.html#id76679
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.
-Emile
More information about the rabbitmq-discuss
mailing list