What does your application start up look like? Your description of the 
actors as Crons makes it sound like they are created at application load 
with scheduler instances initialized at that time so I'm personally not 
sure what you're looking to "revive". Do these actors have some kind of 
state? Is this state persisted after each execution of their scheduled task?

Your solution mentioned is one way to achieve what I have in my head as 
your end goal assuming Green comes online fully and then Blue slowly 
terminates. If the running Actors have some kind of state necessary to 
their execution that state can either be packages within that payload or 
persisted and read on Actor startup - then initializing the scheduling.

Hope this helps in some way though I suspect more information is needed to 
answer your actual question :)

Cheers!

On Friday, December 29, 2017 at 7:27:35 PM UTC-5, Sebastian Oliveri wrote:
>
> I have in AWS a cluster let´s call it "Blue" with lots of actors alive in 
> memory, each of these running its own schedulers every a period of time.
>
> When I deploy to Prod another instance of the cluster and let´s call it 
> "Green" I just change the routing to point out to the new cluster instance 
> and then I terminate the old version of the cluster Blue.
>
> The issue is that somehow I need to awake and bring into memory all those 
> actors that were running in the terminated cluster (all of these act as 
> Crons using the actor context scheduler), how can I achieve this?
>
> I thought about a hack, overring the postStop() method and to publish 
> events from cluster Blue to a certain Topic, in order for the new cluster 
> Green to pull out from the topic and recover the actors alive in the 
> terminated cluster.
>
> Thanks,
> Sebastian
>
>

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to