I think that is included in the documentation:
http://doc.akka.io/docs/akka/2.4.1/scala/cluster-sharding.html#Graceful_Shutdown

val region = ClusterSharding(system).shardRegion("Entity")

You might find this useful also, to exit the jvm as the last step:
http://doc.akka.io/docs/akka/2.4.1/scala/cluster-usage.html#How_To_Cleanup_when_Member_is_Removed

On Tue, Dec 15, 2015 at 8:57 AM, 'Carl Pulley' via Akka User List <
[email protected]> wrote:

> Hi,
>   I’m wanting to down an Akka cluster node and in doing this, I want to
> ensure that any shard regions that may be on that node are downed
> gracefully.
>
> How do I identify the possible local shard region on the current cluster
> node?
>
> Once I have the shard region ActorRef, then existing documentation helps
> in understanding the downing procedure. However, my starting point is the
> cluster self address that I wish to signal to leave an Akka cluster.
>
> Any help greatly appreciated,
>
>   Carl.
>
> --
> >>>>>>>>>>      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.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

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