Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 92970 invoked from network); 5 Nov 2009 19:34:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Nov 2009 19:34:52 -0000 Received: (qmail 8308 invoked by uid 500); 5 Nov 2009 19:34:52 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 8263 invoked by uid 500); 5 Nov 2009 19:34:52 -0000 Mailing-List: contact zookeeper-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zookeeper-user@hadoop.apache.org Delivered-To: mailing list zookeeper-user@hadoop.apache.org Received: (qmail 8253 invoked by uid 99); 5 Nov 2009 19:34:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2009 19:34:52 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of avinash.lakshman@gmail.com designates 209.85.223.171 as permitted sender) Received: from [209.85.223.171] (HELO mail-iw0-f171.google.com) (209.85.223.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2009 19:34:49 +0000 Received: by iwn1 with SMTP id 1so280515iwn.2 for ; Thu, 05 Nov 2009 11:34:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=oznAvksd8ARMQrwueLcAm4DTzGMJ/+j7h4EWI0SlSVU=; b=ca6E5NYl+pjgZCFrB4bJu20GNM0P1lUWVEcRL/jKVesHvQZkezp8tDFPg/o7CHK9BY Pf6RzauVHOQzUPWaCjyITZD/aAI7tJLvBM7rFUbH1o/TPfjJ9LMyuNWLD/BntqX9cpEf gdzu7voLfOTlzUF0LbM6aD69sxd2L1IIn0nig= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=n1CjbFW0ApJbZzu3H4Z1baNe/3P5KZrGt9BbEdrpm3QkVnZlEYBBuRsM2RPlW+QA3u gm/ZG1m4L/ZLZzxwHE23GsWiirM/lTgOImu/lc1KWxr+QWzYlZnNrZHTPb5IitvAW+mB 4lYFB6i6hWJfpWorqtzSFINncxqF4aSRgmzAY= MIME-Version: 1.0 Received: by 10.231.28.143 with SMTP id m15mr744215ibc.23.1257449668207; Thu, 05 Nov 2009 11:34:28 -0800 (PST) In-Reply-To: References: Date: Thu, 5 Nov 2009 11:34:28 -0800 Message-ID: Subject: Re: API for node entry to the cluster. From: Avinash Lakshman To: zookeeper-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=00151774126ccbe3d10477a4d095 --00151774126ccbe3d10477a4d095 Content-Type: text/plain; charset=ISO-8859-1 Ah. Sorry. But I got it. I guess what Henry is working on is what I am looking for. Thanks A On Thu, Nov 5, 2009 at 11:32 AM, Ted Dunning wrote: > You have two options. > > What Henry is talking about is a sophisticated update to ZK internals that > does a very nice job of handling all the possible split-brain issues and > other pathologies that can result from growing or shrinking a cluster. His > patch isn't ready yet, but when it is, it should be really nice. > > What I am talking about is pretty tame hack that allows you to get 99% of > the result needed with very little effort. It can be done today. > > Restarting servers one at a time is conventionally used for minor releases > of ZK and can be (ab)used to allow configuration changes. > > I don't quite follow what you are saying in your second and third sentences > so I can't answer the question in your fourth. > > Can you clarify what you mean? I halfway suspect you dropped a word > somewhere. > > On Thu, Nov 5, 2009 at 11:24 AM, Avinash Lakshman < > avinash.lakshman@gmail.com> wrote: > > > I would prefer not restarting. Start/Stop the new/old process and then > > start > > a round of consensus for adding/removing a machine. I guess if one can do > > that then there is stopping of process required. Am I missing something > > here? > > > > A > > > > On Thu, Nov 5, 2009 at 11:14 AM, Ted Dunning > > wrote: > > > > > It is pretty easy to do by hand and is pretty easy to script (it was > for > > > us). > > > > > > The process for adding is > > > > > > a) configure and start a new node > > > > > > b) re-configure and restart each existing node in turn to know about > the > > > new > > > node > > > > > > you now have a larger cluster. > > > > > > To drop a node, > > > > > > a) reconfigure and restart each surviving node > > > > > > b) kill the node(s) that is(are) leaving > > > > > > you now have a smaller cluster. > > > > > > On Thu, Nov 5, 2009 at 11:02 AM, Avinash Lakshman < > > > avinash.lakshman@gmail.com> wrote: > > > > > > > Hi All > > > > > > > > Is it possible to remove nodes and add nodes dynamically to the ZK > > > cluster > > > > via API? Any plans in the future to do this? > > > > > > > > TIA > > > > A > > > > > > > > > > > > > > > > -- > > > Ted Dunning, CTO > > > DeepDyve > > > > > > > > > -- > Ted Dunning, CTO > DeepDyve > --00151774126ccbe3d10477a4d095--