[rabbitmq-discuss] Questiong about plugins and clustering

Simon MacMullen simon at rabbitmq.com
Mon Sep 23 09:41:23 BST 2013


On 21/09/2013 02:53, Alvaro Videla wrote:
> Is there a way for a plugin to know when a node joins or leaves the
> cluster?

No, not at the moment. Currently we just ask Mnesia whenever we need to 
know.

> Is there any notification that can be received by my plugin about this
> event happening or I need to poll Mnesia once in a while?

Well, you can invoke rabbit_mnesia:cluster_nodes(running) or 
rabbit_mnesia:cluster_nodes(all) or whatever.

> I see there's rabbit_node_monitor:notify_joined_cluster/0 but that's
> doesn't seem to help me.

No, that's the other way round - used to tell the node monitor that a 
node has joined.

What are you trying to do?

Cheers, Simon



More information about the rabbitmq-discuss mailing list