Cluster

20 views
Skip to first unread message

saul diaz

unread,
Jun 26, 2019, 6:07:50 PM6/26/19
to Union Platform
Lets say there are 1 cluster, with 3 nodes

there is any way in the api to know if a node is down?

saul

Derek

unread,
Jun 27, 2019, 12:27:45 PM6/27/19
to Union Platform
Hi Saul,

There are no events dispatched indicating when nodes are added to and removed from the server...I can see it being very useful though.

But you could get a decent workaround by creating a server module that was periodically polling for connected nodes using Cluster.getNodeIDs(). If the Set of Node IDs changes you can diff the Set to discover what nodes may have been added/removed.

Cheers,

Derek
Reply all
Reply to author
Forward
0 new messages