Hi,

there are several things you could do:

- use the Akka Cluster leader property (
https://doc.akka.io/docs/akka/2.5/common/cluster.html) as a marker for
"master". You don't get to control it, but then you also don't have to
worry about it. You can listen to cluster events to figure out if your
current node becomes leader:
https://doc.akka.io/docs/akka/2.5.3/scala/cluster-usage.html#subscribe-to-cluster-events

- use a cluster singleton (
https://doc.akka.io/docs/akka/2.5.3/scala/cluster-usage.html#cluster-singleton)
which fails over automatically

Beware of network partitions though if you run this in production since you
might end up with two leaders / singletons during a partition.

Manuel

On 26 January 2018 at 10:05, Hsnamed <[email protected]> wrote:

> Hello, everybody .
>
> I have physical node with jvm process and with 100k stefull actors ,  they
> makes calculation and holds calculation results , sometimes result *writes
> *to external service.
>
> I'm looking for failover strategy which :
> - Several nodes are working separate of each other , that means the actors
> data on another node differs eventually but in common it equal.
> - Only one of nodes has master node *marker* , that means only that node
> can *write* data to external service.
> - master node marker setup manually (if possible).
> - Master node *marker *should moves from node-A to node-B if node-A fail
> , returning of marker to node-A is optional.
> - Data duplication in receiving system acceptably in the moment of migrate
> marker to other node.
>
> So , how i can achive that, are CRDTs helps me for implement *marker* ?
>
> --
> >>>>>>>>>> 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.
>

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