Re: [akka-user] Electing new cluster singleton on clean shutdown

2014-10-10 Thread Patrik Nordwall
You're welcome /Patrik > 10 okt 2014 kl. 14:06 skrev Krzysztof Ciesielski : > > Thanks, it works! > -- > >> Read the docs: http://akka.io/docs/ > >> Check the FAQ: > >> http://doc.akka.io/docs/akka/current/additional/faq.html > >> Search the archives: https://g

Re: [akka-user] Electing new cluster singleton on clean shutdown

2014-10-10 Thread Krzysztof Ciesielski
Thanks, it works! -- >> 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 a

Re: [akka-user] Electing new cluster singleton on clean shutdown

2014-10-09 Thread Patrik Nordwall
> On Oct 9, 2014, at 21:11, Krzysztof Ciesielski > wrote: > > > >> On Thursday, October 9, 2014 7:53:04 PM UTC+2, Patrik Nordwall wrote: >> Have you configured akka.cluster.auto-down-unreachable-after or are you >> downing the node in some other way? Until it is downed/removed it is only >

Re: [akka-user] Electing new cluster singleton on clean shutdown

2014-10-09 Thread Krzysztof Ciesielski
On Thursday, October 9, 2014 7:53:04 PM UTC+2, Patrik Nordwall wrote: > > Have you configured akka.cluster.auto-down-unreachable-after or are you > downing the node in some other way? Until it is downed/removed it is only > considered to be unreachable, and that is not enough for starting new

Re: [akka-user] Electing new cluster singleton on clean shutdown

2014-10-09 Thread Patrik Nordwall
Have you configured akka.cluster.auto-down-unreachable-after or are you downing the node in some other way? Until it is downed/removed it is only considered to be unreachable, and that is not enough for starting new singleton instance on other node. Read more here: http://doc.akka.io/docs/akka

Re: [akka-user] Electing new cluster singleton on clean shutdown

2014-10-09 Thread Krzysztof Ciesielski
Hi Konrad, > What do you see in the logs (about cluster membership, and/or the > singleton)? > The node gets killed with SIGTERM (Is that graceful enough if I have sys.addShutdownHook(actorSystem.shutdown())?). The only log entry after last heartbeat is: [DEBUG] [10/09/2014 12:22:09.035] [Cl

Re: [akka-user] Electing new cluster singleton on clean shutdown

2014-10-09 Thread Konrad Malawski
Hi Krzysiek! The singleton should indeed be migrated to another node if it's current node dies automatically. What do you see in the logs (about cluster membership, and/or the singleton)? Do you have any role requirements on where the singleton can be running? On Thu, Oct 9, 2014 at 1:32 PM, Krzy

[akka-user] Electing new cluster singleton on clean shutdown

2014-10-09 Thread Krzysztof Ciesielski
Hi there, I'm trying to find the best practice / pattern for electing a new cluster singleton in case of clean shutdown. I expected Akka (2.3.4) to handle this for me, so that a node which is shutting down will notify the rest and they will eventually spin off a new singleton. Looks like that it