Hi Ivan,
On Wed, Feb 12, 2014 at 9:37 PM, <[email protected]> wrote: > I am looking for clarification on when leaving a cluster using 2.3-RC2. I > have three instances of a service running and each is hooked up to the same > cluster and subscribed to MemberEvent and ReachabilityEvent. > > Let's say the service 2 is told through some API to leave the cluster. It > calls something like "cluster.leave(selfAddress)" to leave the cluster. I > expect then for the cluster leader to mark service 2 as leaving, exiting, > and then removed from the cluster. Each of the three services should > receive these events. > > However, in addition to these events, service 2 (the one leaving) gets > MemberRemoved events for service 1 and service 2. *Why is this? *Both of > the other services are *not* leaving the cluster. > That is by design. One could argue that from that node's point of view they are removed. > These additional events really throw our system off since we have some > self-healing logic based on events passed through the system. > You will receive MemberExited first, so when you see that for Cluster.selfAddress you can ignore subsequent MemberRemoved for other nodes. /Patrik > > Thanks, > > Ivan > > > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: http://akka.io/faq/ > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/groups/opt_out. > -- Patrik Nordwall Typesafe <http://typesafe.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/groups/opt_out.
