Hi Joseph, Cluster state changes are not allowed when we do not know for sure that the cluster has got a consistent view of the cluster state, this could make it impossible to leave the cluster until those nodes are marked DOWN or become reachable again.
Could this be what is causing your problems or was the cluster in good shape before you tried to leave using the command line tool? (http://doc.akka.io/docs/akka/2.4.1/common/cluster.html#Gossip_Convergence) I would take a look at the cluster state after issuing leave to see what is going on, you can do that with the same tool and "cluster-status". I hope this helps! -- Johan Andrén Typesafe - Reactive apps on the JVM Twitter: @apnylle On Tuesday, January 12, 2016 at 2:03:24 PM UTC+1, jos...@evernym.us wrote: > > Hi, > > I have a 2-node akka cluster. When deploying updated code, the nodes are > restarted one after the other with some time gap in between. This seems to > be causing Unreachable/Quarantine issues. So, I want to ask each node to > LEAVE the cluster before it is restarted. I am using the akka-cluster > command-line tool for this. > > joseph@gw01:~$ akka-cluster app01.stg 9999 leave akka.tcp: > //sys...@app01.stg:2551 > Scheduling akka.tcp://sys...@app01.stg:2551 to LEAVE cluster > joseph@gw01:~$ akka-cluster app02.stg 9999 leader > Checking leader status > akka.tcp://system@app01:2551 > > > > It says that it's Scheduling to LEAVE the cluster, but doesn't actually > leave the cluster. I tried asking both the Leader and non-leader to leave, > but they don't leave even after half an hour. > Is there some way I can get them to leave immediately? > Is there some restriction that the Leader cannot leave the cluster? I > expected that it would transfer leadership to the other node and leave. > > Thanks. > Joseph > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.