Good idea. Thanks!

Best wishes,
Siva on 6+

> On Jul 22, 2016, at 3:28 AM, Akka Team <akka.offic...@gmail.com> wrote:
> 
> Hi Siva,
> 
> I don't recall cluster singleton having a passivation feature. I think this 
> feature simply does not exists. On the other hand there is not much reason to 
> passivate, the actor itself has no runtime costs if it is idle, except its 
> memory usage. If the singleton has so big state that it becomes an issue 
> (this is likely an anti-pattern though!), then you can simply create the 
> "real" singleton as the child of the cluster singleton and proxy messages to 
> it via the parent. Then you can stop/start the child as you wish.
> 
> -Endre
> 
>> On Wed, Jul 20, 2016 at 12:45 AM, Siva Kommuri <snv.komm...@gmail.com> wrote:
>> Hi all!
>> 
>> What is the proper way to passivate a persistent cluster singleton? I have 
>> the following snippet in the cluster singleton:
>> 
>> receive = {
>>   case ReceiveTimeout => context.parent  ! Passivate(stopMessage=Stop)
>>   case Stop => context.stop(self)
>> }
>> I get the following warning in the logs and the Stop message never gets 
>> processed:
>> 
>> unhandled event Passivate(Stop) in state Oldest
>> Or is passivating a persistent cluster singleton considered to be an 
>> anti-pattern?
>> 
>> Best Wishes,
>> Siva Kommuri
>> -- 
>> >>>>>>>>>> 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.
> 
> 
> 
> -- 
> Akka Team
> Lightbend - Reactive apps on the JVM
> Twitter: @akkateam
> -- 
> >>>>>>>>>> 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.

-- 
>>>>>>>>>>      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.

Reply via email to