Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B51702009D9 for ; Tue, 3 May 2016 00:01:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B3A591609B0; Tue, 3 May 2016 00:01:22 +0200 (CEST) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 07DAB1602C5 for ; Tue, 3 May 2016 00:01:21 +0200 (CEST) Received: (qmail 87224 invoked by uid 500); 2 May 2016 22:01:20 -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 87211 invoked by uid 99); 2 May 2016 22:01:20 -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; Mon, 02 May 2016 22:01:20 +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 2F35B1804D6 for ; Mon, 2 May 2016 22:01:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id dKXR2Vd1MWd5 for ; Mon, 2 May 2016 22:01:19 +0000 (UTC) Received: from mail-vk0-f45.google.com (mail-vk0-f45.google.com [209.85.213.45]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 03B615F2F0 for ; Mon, 2 May 2016 22:01:18 +0000 (UTC) Received: by mail-vk0-f45.google.com with SMTP id c189so2095905vkb.3 for ; Mon, 02 May 2016 15:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=G/8AGZ/t2xU66zIqNykH2C38zRYs0EtF3KdjnovSV4s=; b=n/tqLbyHt4OpzD7lwwljZhPWyL+ASh8yfmVDAuCQSc9hEU9h+hCtsdArEvd9urJShV iOcsiYNPlWrl9bohe9J82koioXtgZTyzvzFUmF6Z6ReOHZPfqdOTxvq/6aiElvlVw70J lf9ExMxlSd/o1TEGd6ZfSzqQS9VPWBzyNQvCal5DdvCrAhKeTJHqGVT8rFpXn20omNpp l4Z53GdjC8xYJvO+B5Z0y9F3k9a54+fIji7shxAS79Pzl0dHrFFgnZvAzMt6MZLo1oj0 aNM4xsxqc6fyBngDkENz3MgZf6gYhv2HqC82Re2BMDGvd0bqMP/5z8pkkgPeo4bply5y o2BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=G/8AGZ/t2xU66zIqNykH2C38zRYs0EtF3KdjnovSV4s=; b=h98kPP6Ndt3t0M+DPQyYEqXfDRnzX04NXDT6IAAgHtRea56+TPKSZcNlHROn1PqDPj G/4Efh7cPC0G94r5U4ADGXKYLh4eNMfY9x+npSoX8y2yMIbCQ+c6RhgGKtwAxvvkNGcj T3vEAP9SCRNlGx9EYonLffF49scHgUut+FGdcRGCsVPmKwNgfHXvcOxtH21u8a9l0IDZ HnVhgGMcqSDZKe1Tu+SkKZpVV1ty0Rdy+RatnXOEU5jinEvIhBeJIj7OIbcTZeN9ewu7 ZCEQU+PwK75JxBGtSZ78KN72hPhq3WzWMZMr0ztlMYWnGSRR1I6TMroXwWwBAwHT9Xp3 TkjA== X-Gm-Message-State: AOPr4FUR5kAxma3/6uVhFV8UjYlcaGR6sPbpVag02G1hueJGuCuPc/7ol2VchGXNZgY40UeEl4P1bLhmj4fqwA== X-Received: by 10.176.64.161 with SMTP id i30mr20495646uad.150.1462226478333; Mon, 02 May 2016 15:01:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.107.202 with HTTP; Mon, 2 May 2016 15:00:58 -0700 (PDT) In-Reply-To: References: <1c79892c.4730.15471195e30.Coremail.wangyongqiang0617@163.com> From: Alexander Shraer Date: Mon, 2 May 2016 15:00:58 -0700 Message-ID: Subject: Re: how to make a server be leader permanently To: "user@zookeeper.apache.org" Content-Type: multipart/alternative; boundary=94eb2c123712d285e40531e321f8 archived-at: Mon, 02 May 2016 22:01:22 -0000 --94eb2c123712d285e40531e321f8 Content-Type: text/plain; charset=UTF-8 If you're interested to work on something like that, a good starting point could be implementing a leader handoff API: ZOOKEEPER-2076 On Mon, May 2, 2016 at 4:19 AM, Flavio P JUNQUEIRA wrote: > We don't have this kind of behavior enabled because it'd affect > availability. If your single leader fails, then the zookeeper ensemble > becomes unavailable until the server comes back and might require manual > intervention if the server is permanently down. > > Also, upon recovery, the configured leader might not have the most recent > committed state, which could cause you to lose data. > > The bottom line is that you can't really force this kind of behavior > currently with zookeeper. > > -Flavio > On 2 May 2016 11:53, "WangYQ" wrote: > > i want to make a server with lower load be the zookeeper leader > permanently. is there any method or configuration? > --94eb2c123712d285e40531e321f8--