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 9911317F30 for ; Fri, 10 Oct 2014 14:19:32 +0000 (UTC) Received: (qmail 31541 invoked by uid 500); 10 Oct 2014 14:19:31 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 31310 invoked by uid 500); 10 Oct 2014 14:19:31 -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 31289 invoked by uid 500); 10 Oct 2014 14:19:30 -0000 Delivered-To: apmail-hadoop-zookeeper-user@hadoop.apache.org Received: (qmail 31284 invoked by uid 99); 10 Oct 2014 14:19:30 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Oct 2014 14:19:30 +0000 Received: from ip-10-56-193-148.eu-west-1.compute.internal (ec2-54-247-85-211.eu-west-1.compute.amazonaws.com [54.247.85.211]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 0532D1A054F; Fri, 10 Oct 2014 14:19:21 +0000 (UTC) References: <1065A2D3-E37E-4C9A-A561-BB8369AC48AC@codepuppy.com> From: Ivan Kelly To: user@zookeeper.apache.org Cc: "zookeeper-user\@hadoop.apache.org" Subject: Re: Changing leader to follower? Date: Fri, 10 Oct 2014 14:16:19 +0000 In-reply-to: Message-ID: <87h9zcxb1h.fsf@ip-10-56-193-148.eu-west-1.compute.internal> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Or just pause the process until someone else takes over. 1. kill -STOP 2. // wait for election to happen 3. kill -CONT This wont top it from becoming leader again. Also, client may migrate to other servers. -Ivan Alexander Shraer writes: > Hi, > > I don't think there's a direct way, although this seems a useful thing to > add. > > One think you could do is to issue a reconfig changing the leader's > leading/quorum port (through which > it talks with the followers). This will cause it to give up leadership > while keeping it in the cluster. > > Cheers, > Alex > > On Fri, Oct 10, 2014 at 5:57 AM, Jeff Potter < > jpotter-zookeeper@codepuppy.com> wrote: > >> >> Hi, >> >> Is there a way to “retire” a leader while keeping it in the cluster? >> >> Thanks, >> Jeff