Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B299390A2 for ; Tue, 8 May 2012 22:20:21 +0000 (UTC) Received: (qmail 90943 invoked by uid 500); 8 May 2012 22:20:21 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 90906 invoked by uid 500); 8 May 2012 22:20:21 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 90896 invoked by uid 99); 8 May 2012 22:20:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 22:20:21 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jzimmerman@netflix.com designates 69.53.237.162 as permitted sender) Received: from [69.53.237.162] (HELO exout101.netflix.com) (69.53.237.162) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 22:20:15 +0000 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=s1024;d=netflix.com; h=from:to:subject:date:message-id:in-reply-to:content-type:mime-version; bh=aoqOZ7rVIQlIxoHFQlG6XLxMinU=; b=mnogfoLMC0XufzWyO775fSVGw3sQtZDk35Y9W+6lbTL9k4fkF9GaEcKNPcO/FfdUMWNUzvCg 8Z3pNBjBZ5YuOtJGF7URSBGSHhIoskvX5UP2zmrUrgMgOZyhUfXYS8zK5tklKeRNfnyAruz0 6094KyFVeIQc85ZRUvuvCS9s3rA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024;d=netflix.com; h=from:to:subject:date:message-id:in-reply-to:content-type:mime-version; b=PrtRM5W+mSBZ99UvIXCQRS36yEeWLIA3T7cru6oVZ+2AIu+Ozyw5wMUsZK87Nl5g6D/Dn3i4 IfADRQugZcP1g38yuoq545TOWEvCBHBQLmLDzz1euKZKBLRQ1W73/2IroHuejT2eWVpeDCWj wnLX2t/R6245dajySzUJPpTYJ6A= Received: from EXFE103.corp.netflix.com (10.64.32.103) by exout101.netflix.com (10.64.240.73) with Microsoft SMTP Server (TLS) id 8.3.245.1; Tue, 8 May 2012 15:19:14 -0700 Received: from EXMB107.corp.netflix.com ([169.254.7.134]) by exfe103.corp.netflix.com ([10.64.32.103]) with mapi id 14.02.0283.003; Tue, 8 May 2012 15:19:54 -0700 From: Jordan Zimmerman To: "user@zookeeper.apache.org" Subject: Re: Zookeeper multiserver setup? Thread-Topic: Zookeeper multiserver setup? Thread-Index: AQHNLWH6mdAoy81cfkW9VWgLmTEp3JbAaooAgAB3T4D//4tAgIAAd+OA//+NrQCAAHd9AP//jHYA Date: Tue, 8 May 2012 22:19:53 +0000 Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.10.0.110310 x-originating-ip: [10.2.245.51] Content-Type: text/plain; charset="us-ascii" Content-ID: <88C9148215C57F40919F8D2354988399@netflix.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org For most uses, 3 instances is enough. For heavy usage, 5 instances can be used. ZooKeeper write performance degrades with the number of instances added. There's a lot of doc on the net about this. A ZNode is a data entry in the ZooKeeper database. An instance is a server running the ZooKeeper software. -JZ On 5/8/12 3:13 PM, "Something Something" wrote: >We have a cluster of 17 machines. Somewhere in the HBase documentation I >read - usually we should divide by 2 & use an odd number. May be I >mis-read. That's why I started Zookeeper on 9 machines. I guess, I don't >understand the difference between Nodes & Instance. I expected ZKNodes to >be 9. Please explain. Thanks a lot for your help. > >On Tue, May 8, 2012 at 3:05 PM, Jordan Zimmerman >wrote: > >> You have 9 instances? That's a lot. Why so many? >> >> I believe the "Node" field in the stat is the number of ZKNodes, not >> instances in the ensemble. That stat looks good. It means that that >> instance is serving requests as a "follower" instance (one of the >> instances will be the leader). >> >> -JZ >> >> On 5/8/12 2:54 PM, "Something Something" >>wrote: >> >> >Hmm... >> > >> > >> >Trying 127.0.0.1... >> >Connected to localhost. >> >Escape character is '^]'. >> >stat >> >Zookeeper version: 3.3.4-cdh3u3--1, built on 01/26/2012 20:09 GMT >> >Clients: >> > /127.0.0.1:42510[0](queued=3D0,recved=3D1,sent=3D0) >> > >> >Latency min/avg/max: 0/0/0 >> >Received: 4 >> >Sent: 3 >> >Outstanding: 0 >> >Zxid: 0x100000000 >> >Mode: follower >> >Node count: 11 >> >Connection closed by foreign host. >> > >> > >> >Not sure I understand this output. I have 9 nodes in the ensemble. >> > >> >On Tue, May 8, 2012 at 2:45 PM, Jordan Zimmerman >> >wrote: >> > >> >> Yes - they should. Keep in mind that the zoo.cfg, and the ID file >>must >> >>be >> >> correct and in agreement on each instance. You can do a stat on each >> >> instance to see what state it's in: >> >> >> >> >telnet localhost 2181 >> >> stat >> >> >> >> -JZ >> >> >> >> On 5/8/12 2:43 PM, "Something Something" >> >>wrote: >> >> >> >> >Thanks Jordan. Will definitely look at the cluster management tool. >> >>In >> >> >the mean time, am I correct with my assumption in #4? Once all of >>them >> >> >are >> >> >started they would automagically start talking to each other, right? >> >> > >> >> > >> >> >On Tue, May 8, 2012 at 2:36 PM, Jordan Zimmerman >> >> >wrote: >> >> > >> >> >> Yes, you must start them all individually. ZooKeeper does not >> >>currently >> >> >> have any cluster-wide management tools built in. >> >> >> >> >> >> FYI - we've open sourced a cluster management tool for ZooKeeper. >> >>Please >> >> >> have a look: >> >> >> >> >> >> https://github.com/Netflix/exhibitor >> >> >> >> >> >> On 5/8/12 2:31 PM, "Something Something" >> >> >> >>wrote: >> >> >> >> >> >> >Hello, >> >> >> > >> >> >> >Trying to follow directions from here: >> >> >> > >> >> >> >> >> >> >> >> >> >> >>=20 >>http://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html#sc_zkMulitServe >> >> >>r >> >> >> >Setup >> >> >> > >> >> >> >to setup a cluster of zookeepers. >> >> >> > >> >> >> >Questions: >> >> >> > >> >> >> >1) If everything is setup correctly, do I have to go to each >> >>machine >> >> >>and >> >> >> >start Zookeeper server in each of them individually? >> >> >> >2) I was thinking if I start it on one master machine (well >> >>there's no >> >> >> >real master) then all zookeepers in the quorum would be started, >>but >> >> >>this >> >> >> >is not how it works correct? >> >> >> >3) If I start individually, then I get messages saying the other >> >> >> >zookeepers haven't started. Is that just a warning? >> >> >> >4) When all of them are started, would they all be able to talk >>to >> >> >>each >> >> >> >other? >> >> >> > >> >> >> >Sorry for the dumb questions and thanks for the help. >> >> >> >> >> >> >> >> >> >> >> >>