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 405AB482E for ; Wed, 15 Jun 2011 18:48:35 +0000 (UTC) Received: (qmail 94411 invoked by uid 500); 15 Jun 2011 18:48:34 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 94387 invoked by uid 500); 15 Jun 2011 18:48:34 -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 94379 invoked by uid 99); 15 Jun 2011 18:48:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2011 18:48:34 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ted.dunning@gmail.com designates 209.85.220.170 as permitted sender) Received: from [209.85.220.170] (HELO mail-vx0-f170.google.com) (209.85.220.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2011 18:48:28 +0000 Received: by vxb40 with SMTP id 40so729960vxb.15 for ; Wed, 15 Jun 2011 11:48:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=TP+rP0ahYjlI8Sgv8M6J/nED1WHNrJWpe3AZjiav1J4=; b=kNInytVsKkl4Vn51Wdruu1L4ONTz4BwfGsRVN1xG3afBzuk7LoI6atFjx+MyEmWAT2 WnBJMJiudYHhPT6NuaCU8ygXBj0QLjZPlpch7yAi1xoNr2hC5W4VsvgHj310exSngJ1U SJBzXZLlYfJ21UL3ogD4vrF3j765YLHRupS3k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=bAqcdARRYyvRDZ7hM01nMQw488L4LRmpldGs0yi27pGDpB6cZSvIy420n4CSU6Ez6+ 0X/UsuVd3Neeg7gEF+hErQcEw1mBlEPZGU9p+QjlvIprRp4DpDYLEzULDP+EDHjdETA7 uLO8rVHtpnyvvmGxcBhfz2x0uvQTtIbgyXGz4= Received: by 10.52.100.36 with SMTP id ev4mr65077vdb.288.1308163686140; Wed, 15 Jun 2011 11:48:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.187.66 with HTTP; Wed, 15 Jun 2011 11:47:46 -0700 (PDT) In-Reply-To: References: From: Ted Dunning Date: Wed, 15 Jun 2011 20:47:46 +0200 Message-ID: Subject: Re: why zookeeper bind 0.0.0.0 at mitihomed server To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=20cf3071c696d20c2304a5c49734 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3071c696d20c2304a5c49734 Content-Type: text/plain; charset=UTF-8 Jared, Sounds like you have a quorum of users interested in this patch. On Wed, Jun 15, 2011 at 2:55 PM, Jared Cantwell wrote: > I suggested something similar a while back. I too don't see a reason to > bind to all interfaces when we know the interface other servers are going > to > contact us on. See this thread, where I propose a patch. If there's > interest, I can attach this patch to a JIRA you open. I've been using this > for about a year now. > > > http://mail-archives.apache.org/mod_mbox/hadoop-zookeeper-dev/201008.mbox/%3CAANLkTikkT97Djqt3CU=H2+7Gnj_4p28hgCXjh345HiyN@mail.gmail.com%3E > > ~Jared > > On Wed, Jun 15, 2011 at 6:52 AM, Kiall Mac Innes > wrote: > > > Obviously the server.* settings are for connecting to other servers, I > > believe he is referring to the clientPort and clientPortAddress > > combination. > > These looks suspiciously like they are for choosing an IP and Port combo > to > > bind on.. > > > > > > Thanks, > > Kiall > > > > > > On Wed, Jun 15, 2011 at 8:53 AM, Ted Dunning > > wrote: > > > > > So that other machines can contact it. > > > > > > Seriously, why did you have an expectation it would not bind to > 0.0.0.0? > > > > > > The configuration file tells how to reach OTHER servers. It doesn't > > > limit which interfaces to use for incoming connections. > > > > > > On Wed, Jun 15, 2011 at 5:33 AM, Isaac wrote: > > > > why zookeeper bind 0.0.0.0 at miti-homed server? > > > > > > > > $ netstat -lnp | grep 99 > > > > ... > > > > tcp 0 0 0.0.0.0:9900 0.0.0.0:* > > > LISTEN > > > > 16536/java > > > > tcp 0 0 0.0.0.0:9910 0.0.0.0:* > > > LISTEN > > > > 16536/java > > > > ... > > > > > > > > i deploy 3 zookeeper on the same server for test. > > > > zoo.cfg > > > > ------------------------------ > > > > # The number of milliseconds of each tick > > > > tickTime=2000 > > > > # The number of ticks that the initial > > > > # synchronization phase can take > > > > initLimit=5 > > > > # The number of ticks that can pass between > > > > # sending a request and getting an acknowledgement > > > > syncLimit=2 > > > > # the directory where the snapshot is stored. > > > > dataDir=/data/zookeeper/data > > > > # the port at which the clients will connect > > > > clientPort=10000 > > > > clientPortAddress=172.27.31.48 > > > > server.1=172.27.31.48:9900:9910 > > > > server.2=172.27.31.48:9901:9911 > > > > server.3=172.27.31.48:9902:9912 > > > > > > > > > > --20cf3071c696d20c2304a5c49734--