Enrique is right.

Use the CoordinatedShutdown feature for leaving the cluster and shutdown
the ActorSystem. The JVM can continue running and you can start new
ActorSystem that joins the cluster again.

/Patrik

ons 27 sep. 2017 kl. 03:38 skrev Enrique Ell Pereira <enrique....@gmail.com
>:

> Hi Chad,
>
> As far as I understand you have to restart the ActorSystem, not the
> process as you mentioned, to allow the ActorSystem to rejoin again the node.
> I would try to create a actor to shutdown it gracefully, wait until it
> goes down then restart/create the ActorSystem.
>
> Regards,
> Enrique
>
>
> On Tuesday, September 26, 2017 at 3:37:05 PM UTC-3, Chad Selph wrote:
>>
>> We're currently using akka for a variety of things, and are starting some
>> experiments with akka-cluster, but we've hit one roadblock.
>>
>> From the documentation on akka-cluster membership lifecycle (
>> http://doc.akka.io/docs/akka/2.5.4/scala/common/cluster.
>> html#membership-lifecycle) :
>>
>> the actor system must be restarted before it can join the cluster again.
>>
>>
>>
>> The way we do deploys is to bootup new instances and bring them into the
>> load balancer and move old instances out of the load balancer. It seems
>> logical then, that anything in the load balancer should be a participant in
>> our akka-cluster, while anything out of the load balancer should leave.
>>
>> The problem comes for how we do a rollback: we would bring the old
>> instances back into the load balancer, but now they can't be part of the
>> akka-cluster anymore. Restarting the process might work for some of our
>> applications, but it's not an elegant solution in general for us, as some
>> applications might have long-running jobs that should finish before a
>> restart.
>>
>> Has anyone used akka-cluster in this type of deployment style, and what
>> did you come up with?
>>
>> Thanks!
>>
> --
> >>>>>>>>>> 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