Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When to call System.exit() on a cluster node?

When a node is down and therefore taken by a leader out of the cluster I would like the node itself to call System.exit().( I am using aka java)

How can the node surely know it has been removed from the cluster? How is the recommended way to do this? Are there any caveats to be aware of?

like image 906
jack Avatar asked Jul 03 '15 05:07

jack


Video Answer


1 Answers

If you are using a milestone version of the upcomming Akka 2.4 you can register a callback via registerOnMemberRemoved method.

like image 111
dvim Avatar answered Sep 28 '22 13:09

dvim