I think you are confusing two different things. You are looking for cluster
singleton, which runs on the oldest node. Cluster leader is something else,
used by the internal cluster membership management. It's simply the lowest
address (with a few additional rules around memember status).
/Patrik
ons 27 jan. 2016 kl. 10:03 skrev Harjinder Singh <
[email protected]>:

> I am starting three akka actors(A1,A2,A3) on 3 different physical
> machines.All the actors are configured to join in same akka cluster.
>
> If I start A1 first and then A2 & A3. In that case A1 becomes the leader
> which is fine.
>
> However if I start A2 first then it remains leader until i am not starting
> A1. As soon as I am starting A1, it is taking back the cluster leadership
> from A2, which is quite strange.
>
> In my understanding, the node which is started first should always remain
> leader.
>
> If somebody can explain this behavior of akka actors that what would be
> great help.
>
>
>
>
> --
> >>>>>>>>>> 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