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 ED3219A15 for ; Thu, 15 Mar 2012 20:30:21 +0000 (UTC) Received: (qmail 96469 invoked by uid 500); 15 Mar 2012 20:30:21 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 96392 invoked by uid 500); 15 Mar 2012 20:30: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 96384 invoked by uid 99); 15 Mar 2012 20:30:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2012 20:30:21 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tivv00@gmail.com designates 209.85.160.170 as permitted sender) Received: from [209.85.160.170] (HELO mail-gy0-f170.google.com) (209.85.160.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2012 20:30:15 +0000 Received: by ghbg2 with SMTP id g2so3439702ghb.15 for ; Thu, 15 Mar 2012 13:29: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 :cc:content-type; bh=wMuUrNqhMHoGzGxHO0ar48UxcvIUAyF9OzK4uGPRmO4=; b=CLQvbnThFpKfPhkRmeMGekfDOO6a0lSzeRB8WLjkq9TuRP0dqhno70ckxINfvr+lG5 TGUXwTcZuJ8Na+Szyeb9YxfBoqrXVYoqerqSy3scQQ3VjQeBBCTxwHwxwgAb7gCek3tg rEa0bFyh8ht91bppDKja1UP6Jo+tZIawkgwq/uGW+rxZQGoD2luVxIYV1n2CjQ+rKgqF emlO+J0hJcAZ9XJ6aZSgYL9LKstZvU4z8PzIhIwr0E3mgRf0fPaETsRn3QTUjMIJ0HvK gE/RkbItgmRq6MaJszouSw0kYE8r+8wWf94ZiR7Epao/eyT3Wk6bBrf/mXVGm0/FRlZ8 Pnrg== MIME-Version: 1.0 Received: by 10.236.155.168 with SMTP id j28mr75407yhk.16.1331843394276; Thu, 15 Mar 2012 13:29:54 -0700 (PDT) Received: by 10.147.115.14 with HTTP; Thu, 15 Mar 2012 13:29:54 -0700 (PDT) In-Reply-To: References: <4F60C181.90802@nokia.com> <4F60CED2.5080601@nokia.com> <4F61BB76.5040505@nokia.com> Date: Thu, 15 Mar 2012 22:29:54 +0200 Message-ID: Subject: Re: Zookeeper on short lived VMs and ZOOKEEPER-107 From: =?KOI8-U?B?96bUwcymyiD0yc3eydvJzg==?= To: user@zookeeper.apache.org Cc: shralex@gmail.com Content-Type: multipart/alternative; boundary=20cf302d4b36698c2f04bb4df4da X-Virus-Checked: Checked by ClamAV on apache.org --20cf302d4b36698c2f04bb4df4da Content-Type: text/plain; charset=ISO-8859-1 As for me this can work in given environment (where is it externally ensured that old server is down until new one is up), but can't be introduced as generic zookeeper patch. Simply because without such an external ensurance, two servers with different IPs and same name can be recognized by different parts of the ensemble. BTW: Are there possibility of such a problem now with dynamic DNS and servers started at different DNS states? As for me, better option would be to assign IPs to your VMs dynamically. E.g. when you think given server should become serverA, you should simply add IPa as an alias IP for it. ARP will ensure you won't have two As and you don't need to touch the code. Best regards, Vitalii Tymchyshyn --20cf302d4b36698c2f04bb4df4da--