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:
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.
> On Tue, Jul 3, 2012 at 3:27 PM, John Sirois <[EMAIL PROTECTED]> wrote:
>> On Tue, Jul 3, 2012 at 1:16 PM, Raj N <[EMAIL PROTECTED]> 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
>>> 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
>>> 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.