> On Oct 9, 2014, at 21:11, Krzysztof Ciesielski <[email protected]> 
> 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 
>> considered to be unreachable, and that is not enough for starting new 
>> singleton instance on other node
> 
> I have intentionally disabled auto downing because we cannot allow a 
> possibility of two singletons running in case of network partition. That 
> might cause conflicting writes (the singleton is a persistent actor) and data 
> corruption. We hoped that Akka would deal with the special case of clean 
> shutdown, for example during updates, and somehow make the cluster aware of a 
> node which goes down gracefully.

Ah, then you should use cluster.leave, before shutdown of actor system.
http://doc.akka.io/docs/akka/snapshot/scala/cluster-usage.html#Leaving

You might have to await MemberRemoved of cluster.selfAddress before exiting the 
jvm, to be sure that the leave command was sent out.

/Patrik

> -- 
> >>>>>>>>>> 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 [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/d/optout.

-- 
>>>>>>>>>>      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 [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/d/optout.

Reply via email to