From user-return-12085-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Wed Aug 21 14:42:37 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id D4D51180607 for ; Wed, 21 Aug 2019 16:42:36 +0200 (CEST) Received: (qmail 81981 invoked by uid 500); 21 Aug 2019 14:42:35 -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 81967 invoked by uid 99); 21 Aug 2019 14:42:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Aug 2019 14:42:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 27C2F18105C for ; Wed, 21 Aug 2019 14:42:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.804 X-Spam-Level: *** X-Spam-Status: No, score=3.804 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, KAM_BADIPHTTP=2, NORMAL_HTTP_TO_IP=0.001, NUMERIC_HTTP_ADDR=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id bMHZh9CVB_5W for ; Wed, 21 Aug 2019 14:42:33 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.50; helo=mail-lf1-f50.google.com; envelope-from=shralex@gmail.com; receiver= Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id DB457BC7F0 for ; Wed, 21 Aug 2019 14:42:32 +0000 (UTC) Received: by mail-lf1-f50.google.com with SMTP id h28so2001590lfj.5 for ; Wed, 21 Aug 2019 07:42:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=lqc/fWNWDP946AFufbFBia7tpMJlaQQQOblMMV0AnH8=; b=QXIhNgF0+AjIy7eqZxyXoCTo9LfU/A79E6LwwbyDmivyv5TjitEtT42aSzudPlgSY6 +t4lcCSQJLYa0qTUHJ56HYCDtVk83cuvt353CX6OV0N/i2Pl/tzb4Fd9i/kPoAJyG6NG n0Ixi5vzMtQdeqFsF79b8LhWVf+02h+KVEicOmOV2vSXlYAAwnmiPE9qeQ8aa4BKrY/S nHTrY6zn5i+AAW1fhYotl8An99IZp/S7K1xLX0/9fEnrnmr5jzktlVqV9yiXdJGbrzPD mIAEwnevzJPlyQfs1Xp8V0j/HpO5XIT2kCxgGJ5XFSuNbhpd+gGQVn7CE42n0ccyk/Br liEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=lqc/fWNWDP946AFufbFBia7tpMJlaQQQOblMMV0AnH8=; b=crlvXL14gI04w3VSpx+EuFakWvKMRsF/UBMqiDoi/d/oYUWj2y2CQCP5xXvkzmlKEV 3IaMr8nUOrksP6vDgsJ1sno7AF53TKCWcfOwxiR5+iW3BR5wqaOKhuAYqXQgeWDdjE/w kmZRT0iZ7oZUzuNXXoWSIAteZfXb++CgRw7VIVvU4QlPgneWf4aBtPbfK82Jr20cbk6r H9K48dFcFWN25miLXCd4YsJTZ1+LyUZ+uLD+ve3xJ1itlcumFv8PaxsQBgUgKL/rGjt3 lp0ZS5lJqi8LQkVAfi7ix3fTrESc4LHwjEWedTWs1RuLGZ3UVHL/CHAyo1Wvc3GUUEuE zcBA== X-Gm-Message-State: APjAAAUtK6nPYxmo3j2FgFtN7vPTlPngc5mT4diry3SpETCedXKpx91S k/uXTP6PFPkfyvjmChWaG2UJfdo3ran7zR/s0NhLeJa1Lmw= X-Google-Smtp-Source: APXvYqyzklZOqqIGP+JNDQd/zNqQtTr5l/gjFKxLelHnpivpYrq59Q9Xhh9YfWKfoRRS2vnMRJXlbaFSYrtd7bVX0PE= X-Received: by 2002:ac2:4a75:: with SMTP id q21mr18221573lfp.175.1566398545722; Wed, 21 Aug 2019 07:42:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Shraer Date: Wed, 21 Aug 2019 07:42:11 -0700 Message-ID: Subject: Re: About ZooKeeper Dynamic Reconfiguration To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary="000000000000e502a00590a194c7" --000000000000e502a00590a194c7 Content-Type: text/plain; charset="UTF-8" Hi, Reconfiguration, as implemented, is not automatic. In your case, when failures happen, this doesn't change the ensemble membership. When 2 of 5 fail, this is still a minority, so everything should work normally, you just won't be able to handle an additional failure. If you'd like to remove them from the ensemble, you need to issue an explicit reconfiguration command to do so. Please see details in the manual: https://zookeeper.apache.org/doc/r3.5.5/zookeeperReconfig.html Alex On Wed, Aug 21, 2019 at 7:29 AM Gao,Wei wrote: > Hi > I encounter a problem which blocks my development of load balance using > ZooKeeper 3.5.5. > Actually, I have a ZooKeeper cluster which comprises of five zk > servers. And the dynamic configuration file is as follows: > > server.1=zk1:2888:3888:participant;0.0.0.0:2181 > server.2=zk2:2888:3888:participant;0.0.0.0:2181 > server.3=zk3:2888:3888:participant;0.0.0.0:2181 > server.4=zk4:2888:3888:participant;0.0.0.0:2181 > server.5=zk5:2888:3888:participant;0.0.0.0:2181 > > The zk cluster can work fine if every member works normally. However, if > say two of them are suddenly down without previously being notified, > the dynamic configuration file shown above will not be synchronized > dynamically, which leads to the zk cluster fail to work normally. > I think this is a very common case which may happen at any time. If so, > how can we resolve it? > Really look forward to hearing from you! > Thanks > --000000000000e502a00590a194c7--