Hi Jan,

On Mon, May 11, 2015 at 1:47 PM, Jan Heise <[email protected]>
wrote:

> Hi everybody,
>
> I'm currently trying to get into akka-cluster and some questions popped
> up. Maybe somebody is able to help me.
>
> 1. ClusterSingleton: if I leave the cluster programmatically, the
> singleton moves to another node. But if I crash the VM (control-c), nothing
> happens. Is there a solution for this scenario so that we do end up with
> the singleton on another node?
>

You might have to wait a bit for failure detector to kick in.


>
> 2. According to the docs, hand-over for regular actors is only possible
> with partitioning and routed actors? Is there a pattern that I could use
> for plain actors?
>

You could use Cluster Sharding
<http://doc.akka.io/docs/akka/2.3.11/contrib/cluster-sharding.html> which
would rebalance actors if nodes go up or down.


>
> 3. How about hand-over and FSM, is the state preserved?
>

Actors do not preserve state automatically. One can use Persistent Actors
to achieve that. Currently FSM and Persistent Actors can not be used
together, but there is an ongoing effort
<https://github.com/akka/akka/pull/16255> to enable this.


>
> 4. Is there a pattern one should follow to hand-over the state between
> actors, too?
>

Check out Persistent Actors
<http://doc.akka.io/docs/akka/2.3.11/scala/persistence.html>.


>
> Thank you,
>
> Jan
>
>  --
> >>>>>>>>>> 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.
>



-- 
Martynas Mickevičius
Typesafe <http://typesafe.com/> – Reactive
<http://www.reactivemanifesto.org/> Apps on the JVM

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