Hi Markus,

Finally found out my issue in this post, thanks a lot..
So i have similar issues where the initial leader always back to be leader 
once restarted...
So there is not a real solution dealing with akka leader related component 
right where getLeader will return the appropriate leader (who become leader 
stay leader until it does) ?
Your workaround solution is to use the oldest node instead?

 


On Wednesday, 18 May 2016 06:11:12 UTC+8, Markus Fresh wrote:

> Thank you for the reply; in one fell swoop, this explains what I 
> encountered.
>
> On Friday, 13 May 2016 22:20:01 UTC+2, Patrik Nordwall wrote:
>>
>> Where in the documentation have you read that the leader is the oldest 
>> member? I would like to correct that, because it's not true.
>>
>
> In fact, there is no such description in the current version of the 
> documentation (and there hasn't been for quite a few versions); as far as I 
> can reconstruct it, I first encountered a description of a link between the 
> cluster leader and a ClusterSingleton actor in version 2.1.4 of the 
> documentation 
> <http://doc.akka.io/docs/akka/2.1.4/contrib/cluster-singleton.html>. I've 
> then also seen questions (and answers) on stackoverflow mentioning this 
> connection.
> But newer versions of the documentation (at least 2.2.0 and later) mention 
> only the oldest cluster node being linked to ClusterSingleton actors, just 
> as you describe. I suspect that lingering remains of the v2.2.0 
> documentation page are perpetuated by search engines.
>
> ClusterSingleton run on the oldest node. 
>
>
>> The leader is something that is mostly used by Akka Cluster itself to 
>> manage the membership. It's the node with the "lowest" address, sorted by 
>> host and port, with a few additional rules related to member status.
>>
>  
> Thanks a lot for clearing this up for me. We have now started testing an 
> implementation using information on the node age, and so far this does show 
> the expected behaviour.
>
> Cheers,
> Markus
>

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