Return-Path: X-Original-To: apmail-curator-dev-archive@minotaur.apache.org Delivered-To: apmail-curator-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EFCAD11509 for ; Thu, 7 Aug 2014 05:45:20 +0000 (UTC) Received: (qmail 59336 invoked by uid 500); 7 Aug 2014 05:45:20 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 59291 invoked by uid 500); 7 Aug 2014 05:45:20 -0000 Mailing-List: contact dev-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list dev@curator.apache.org Received: (qmail 59276 invoked by uid 99); 7 Aug 2014 05:45:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Aug 2014 05:45:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mckenzie.cam@gmail.com designates 209.85.217.181 as permitted sender) Received: from [209.85.217.181] (HELO mail-lb0-f181.google.com) (209.85.217.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Aug 2014 05:45:15 +0000 Received: by mail-lb0-f181.google.com with SMTP id 10so2269877lbg.40 for ; Wed, 06 Aug 2014 22:44:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kSVOlAKYXhFZRF8XJwDTfzpPc0fOBtUUs2N9FBT2P8o=; b=hL7gl01kJYIjoLscnBg5qJKyGN5Nb2bWBu/xUpNfvrorwV+FmAmg12L8BVuqRa4364 HXrUkLgaN7F/dpV1/8wI4vPSK2YHqMtHrzstPOOBTfZGUdGTnBiCfqa6m6FXVnDJM88o lAEJBVc3eW0/nGU0uuFhmOnhKf9rql5dnSIfBP86QSpw8mxXSNw52lz6t3WJOHhlNdyQ 7GC51QfsJNk9GYkRebyg0Gv2raxr5HPZxqkOaDVPxG30y8RF05jpWp/x5ZliKR1r5PEc U1yCsnOP45aAcMfizm4zlYf8a1GiBj/3E96ZqHc7ofi1XFdpsvLiGKKNyLsJ3GRIdzNb 9mrA== MIME-Version: 1.0 X-Received: by 10.112.247.11 with SMTP id ya11mr14195130lbc.28.1407390294559; Wed, 06 Aug 2014 22:44:54 -0700 (PDT) Received: by 10.112.180.202 with HTTP; Wed, 6 Aug 2014 22:44:54 -0700 (PDT) In-Reply-To: References: Date: Thu, 7 Aug 2014 15:44:54 +1000 Message-ID: Subject: Re: ZooKeeper 3.5.0 is coming From: Cameron McKenzie To: dev@curator.apache.org Content-Type: multipart/alternative; boundary=001a113471dc9153b30500039655 X-Virus-Checked: Checked by ClamAV on apache.org --001a113471dc9153b30500039655 Content-Type: text/plain; charset=UTF-8 >From the following: https://docs.google.com/document/d/1AF8pIfQbN5cKxe0c4cQ4_DW6ZjBJqSkyANcTGUwkzjc/edit It appears that from Curator's point of view, we need to be aware of config changes (by watching the /zookeeper/config zNode), to determine when the clusters configuration has changed. Then, if it has changed, determine whether our client needs to connect to a different host in the cluster. There are underlying API calls on the Zookeeper client that handle the algorithms for reconnection, Curator would just need to identify when the changes occur. Presumably we'd add something to the CuratorFramework and CuratorFrameworkFactory classes. This sort of changes the way that client configuration works to a degree. Instead of it being a static thing where you configure your list of ZK nodes, and that's it, now you're kind of configuring a set (potentially a subset of all ZK nodes in the cluster) of ZK nodes that will then allow you to look up the full set of nodes in the cluster. I would think that this needs to be optional, but I think that it would be useful functionality to have Curator be able to configure itself against what the ZK cluster considers the cluster members to be at startup, and then dynamically reconfigure itself as this changes. So, essentially, Curator would: -Start -Connect to one of its configured ZK nodes -Read the /zookeeper/config configuration -Reconfigure itself based on that configuration -Watch for future config updates. I'm happy to start looking into this in a bit more detail unless someone else has their heart set on it. cheers Cam On Wed, Aug 6, 2014 at 10:53 PM, Jordan Zimmerman < jordan@jordanzimmerman.com> wrote: > An alpha of ZooKeeper 3.5.0 is being released. We should start thinking > about how Curator should adjust to 3.5.x features, in particular > https://issues.apache.org/jira/browse/ZOOKEEPER-107 (dynamic reconfig). > > > https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310801&version=12316644 > > -Jordan --001a113471dc9153b30500039655--