7

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?

jack
  • 1,861
  • 4
  • 31
  • 52

1 Answers1

1

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

dvim
  • 2,223
  • 1
  • 17
  • 17