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 49A9811AD6 for ; Fri, 4 Jul 2014 11:38:11 +0000 (UTC) Received: (qmail 43865 invoked by uid 500); 4 Jul 2014 11:38:10 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 43811 invoked by uid 500); 4 Jul 2014 11:38:10 -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 43799 invoked by uid 99); 4 Jul 2014 11:38:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2014 11:38:09 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mckenzie.cam@gmail.com designates 209.85.217.178 as permitted sender) Received: from [209.85.217.178] (HELO mail-lb0-f178.google.com) (209.85.217.178) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2014 11:38:06 +0000 Received: by mail-lb0-f178.google.com with SMTP id 10so1094439lbg.9 for ; Fri, 04 Jul 2014 04:37:42 -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=rwnjbP17olnujWeS7b1dF3S3Eh1QuPavgcZUro84raU=; b=c+7wBy0OEo3G5DLDXqqWHbpZRrZZ3YUIW9tRXl5hA3s1DvG8u9disF22X+RcNG02ij pLzUWZZhQnW21kXwFMiZ3vRoODoceizdxnlPuunimIf5xyIxZ275SznCz5svbdNeL7fS 0OMNpy+b280Tr2aDJrhg9Owj7omYAxRUfnnUZm5ssRqwDvs0ARNi5y5a8wliRN9JLrfI b733tSug7DD2lr7lT9nPNpfcak1p4b1i8GTpq0n2KXuz1rP7jHO8VJ1mHFh12MJaTpgc J7Y5J8dBrv4Ny0T/kJYWfVzSSkIvEoKhdXPedwRhprrav/RsFlR4QcFiBo3zchhuZwEK B3rQ== MIME-Version: 1.0 X-Received: by 10.152.1.228 with SMTP id 4mr1364488lap.69.1404473861867; Fri, 04 Jul 2014 04:37:41 -0700 (PDT) Received: by 10.112.236.135 with HTTP; Fri, 4 Jul 2014 04:37:41 -0700 (PDT) In-Reply-To: References: Date: Fri, 4 Jul 2014 21:37:41 +1000 Message-ID: Subject: Re: Running Zookeeper in clustered setup/ From: Cameron McKenzie To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=089e0112bfcaa20e3104fd5c8d92 X-Virus-Checked: Checked by ClamAV on apache.org --089e0112bfcaa20e3104fd5c8d92 Content-Type: text/plain; charset=UTF-8 Glad you got it going. I'm not much help with tuning, but the user guide has a bit on it. I'm sure some other people on the list will be able to help you if you have specific questions. cheers On Fri, Jul 4, 2014 at 8:29 PM, lalit jangra wrote: > Thanks Cam, > > It was very helpful and i have setup a cluster of 6 nodes on 2 nodes, with > each node having 3 zookeeper servers and they all talk to each other and i > could see that. > > I could also see that each zookeeper server creates a lots of data and logs > which are related to transaction logs and snapshots to maintain high > availability in the system. Currently i have configured everything in nodes > only but i have read that data & logs should be in separate partition. > > Can you help on this? Also are there any more performance tuning guidelines > available? > > Regards. > > > On Fri, Jul 4, 2014 at 12:58 AM, Cameron McKenzie > wrote: > > > If you're running across two hosts (call them serverA and serverB) in a > 2+1 > > configuration then your config should be. > > > > server.1=serverA:2888:3888 > > server.2=serverA:2889:3889 > > server.3=serverB:2888:3888 > > > > Then in the configured data directory for each ZooKeeper node you need to > > set up the myid file appropriately (i.e. It should contain 1 for > server1, 2 > > for server2, 3 for server 3). > > > > cheers > > > > > > > > On Fri, Jul 4, 2014 at 8:02 AM, lalit jangra > > wrote: > > > > > Thanks Cam, > > > > > > So i should have either 2+1 or 3+2 Zookeeper servers on these tow nodes > > to > > > which both nodes are talking? > > > > > > In this case, what should i put in zoo.cfg file for host values as > > > currently i am using localhost at both nodes. > > > > > > server.1=localhost:2888:3888 > > > server.1=localhost:2889:3889 > > > server.1=localhost:28908:3890 > > > > > > Again how these 3 nodes will form a cluster? > > > > > > Regards. > > > > > > > > > On Thu, Jul 3, 2014 at 10:27 PM, Cameron McKenzie < > > mckenzie.cam@gmail.com> > > > wrote: > > > > > > > hey Lalit, > > > > I'm not familiar with Apache ManifoldCF, but the configuration > sounds a > > > bit > > > > strange. You've essentially got two independent ZooKeeper clusters > set > > > up. > > > > They won't communicate with each other at all. I'd presume that if > > you've > > > > got a database shared between your ManifoldCF instances, that you'd > > also > > > > want your ZooKeeper cluster to be shared between these two instances. > > > > > > > > In this case, you'd normally run your ZooKeeper nodes across both > sites > > > (2 > > > > + 1, or 3 + 2) and then have both of your client (ManifoldCF) nodes > > > > communicate with this cluster. > > > > > > > > Having said that, there may be a reason that ManifoldCF uses two > > > > independent clusters that don't communicate with each other, I'm not > > > sure. > > > > > > > > cheers > > > > Cam > > > > > > > > > > > > > > > > On Fri, Jul 4, 2014 at 7:17 AM, lalit jangra < > lalit.j.jangra@gmail.com > > > > > > > wrote: > > > > > > > > > Hi, > > > > > > > > > > I am a newbie in Zookeeper are so please apologize for any not so > > > > relevant > > > > > question asked. > > > > > > > > > > I am running clustered Apache ManifoldCF on two nodes which are > > > pointing > > > > to > > > > > same database. But i need synchronization between both nodes so > avoid > > > > race > > > > > condition while both nodes are working together. > > > > > > > > > > For same, as per Apache ManifoldCF guidelines, i am using Zookeeper > > to > > > > > manage synchronization in cluster.Also as per ManifoldCF & > Zookeeper > > > > > instructions, i have setup & configured two set of three Zookeeper > > > server > > > > > at both nodes which are working fine. > > > > > > > > > > But i have a clustered setup where both ManifoldCF nodes point to > > same > > > > DB , > > > > > i am still clueless about how should i proceed to connect Zookeeper > > > nodes > > > > > at both servers to make a single setup. > > > > > > > > > > Also i am not sure whether it is necessary or not but then the > > question > > > > > arises that how two servers & Zookeeper nodes in cluster will talk > to > > > > each > > > > > other? > > > > > > > > > > So normally what should be the steps taken once zookeeper servers > are > > > > setup > > > > > to maintain synchronization. > > > > > > > > > > Regards, > > > > > Lalit Jangra. > > > > > > > > > > > > > > > > > > > > > -- > > > Regards, > > > Lalit Jangra. > > > > > > > > > -- > Regards, > Lalit Jangra. > --089e0112bfcaa20e3104fd5c8d92--