zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flavio Junqueira <...@yahoo-inc.com>
Subject Re: Zookeeper Leader Election Preference
Date Tue, 03 Jul 2012 20:39:24 GMT
On a side note, we had some initial thoughts about how to select leaders using performance
metrics, but the project never really took off. Here is the jira we created, just in case
someone is looking for a project to work on:

https://issues.apache.org/jira/browse/ZOOKEEPER-873

-Flavio

On Jul 3, 2012, at 9:48 PM, Raj N wrote:

> The problem is for some reason which I don't have control on, we only have
> 2 nodes in the primary DC.
> 
> -Raj
> 
> On Tue, Jul 3, 2012 at 3:27 PM, John Sirois <john.sirois@gmail.com> wrote:
> 
>> On Tue, Jul 3, 2012 at 1:16 PM, Raj N <raj.cassandra@gmail.com> wrote:
>> 
>>> Hi experts,
>>>     I am trying to setup a Zookeeper ensemble of 3 nodes across 2 DCs. 2
>>> of the 3 will run in the primary. And 1 will run in the secondary DC. Is
>>> there a way to hint that the leader should be selected from the 2 nodes
>> in
>>> the primary DC. I am trying to avoid the case where the node in the
>>> secondary DC is the leader since that means I will have to pay for the
>> WAN
>>> latency for every write request.
>>> 
>> 
>> Whats the purpose of the node in the secondary dc?  I can't see a case
>> where having the full quorum in the primary dc (3 nodes) and an observer in
>> the secondary dc is not preferrable.
>> 
>> 
>>> 
>>> Thanks
>>> -Raj
>>> 
>> 


Mime
View raw message