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 5626F17275 for ; Mon, 13 Apr 2015 23:53:12 +0000 (UTC) Received: (qmail 7943 invoked by uid 500); 13 Apr 2015 23:53:02 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 7880 invoked by uid 500); 13 Apr 2015 23:53:02 -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 7868 invoked by uid 99); 13 Apr 2015 23:53:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2015 23:53:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mckenzie.cam@gmail.com designates 209.85.215.41 as permitted sender) Received: from [209.85.215.41] (HELO mail-la0-f41.google.com) (209.85.215.41) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2015 23:52:56 +0000 Received: by laat2 with SMTP id t2so69875384laa.1 for ; Mon, 13 Apr 2015 16:51:05 -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 :content-type; bh=/hPo33G9usnCPguQDaEEWEPyZik6CvF4LCXYK9nEeZk=; b=zj8lwyu4uJ34Gw1TBe2sZIeza5jOmEUHL1BtJYuUM/scu9v6S9EYqFoJNTRiG5lE8+ s9AVU0HerT6btzH2UGT6ij6eiPUxqGM0ZJwFQk2r1MI/xJbNktZHKSUp2PFGe3cTXAgp AdUGM7C177HahOZj97kbidhlmf9u1UeL4zK2FvAB0tIz7LnTy436jgyzK2CSOjKLWI05 jkNcEBn3YHW5hCRtJSlhhnnHsJzBanhHnLh22FT5V0gGsRhjj81jCEAnpSxPOrk6LeOO 5wKPO56F8aYtmeaMvpj6yP1LtF6r1zYghPlKuzE+oXYRpaYgJQfqkVo20BTtDLlghwBZ MS8Q== MIME-Version: 1.0 X-Received: by 10.112.119.234 with SMTP id kx10mr15800992lbb.35.1428969065620; Mon, 13 Apr 2015 16:51:05 -0700 (PDT) Received: by 10.112.63.162 with HTTP; Mon, 13 Apr 2015 16:51:05 -0700 (PDT) In-Reply-To: <1039024312.15054.1428968216451.JavaMail.yahoo@mail.yahoo.com> References: <1039024312.15054.1428968216451.JavaMail.yahoo@mail.yahoo.com> Date: Tue, 14 Apr 2015 09:51:05 +1000 Message-ID: Subject: Re: Managing Watchers From: Cameron McKenzie To: user@zookeeper.apache.org, Vikrant Singh Content-Type: multipart/alternative; boundary=047d7bb042648d29ec0513a3c98c X-Virus-Checked: Checked by ClamAV on apache.org --047d7bb042648d29ec0513a3c98c Content-Type: text/plain; charset=UTF-8 hey Vikrant, If you just need primary / standby failover then a standard leader election should work. Have a look at the Curator recipe. http://curator.apache.org/curator-recipes/leader-latch.html cheers On Tue, Apr 14, 2015 at 9:36 AM, Vikrant Singh < vikrant@yahoo-inc.com.invalid> wrote: > Hello zookeeper users,I am experimenting/prototyping a zookeeper > installation.One part of the same is a watchClient which monitor various > znodes (by applying watches) and perform some action according to triggered > watch. > As part of plan we need to have multiple instances of this watchClient > running against same set of nodes. Idea is to have one client taking all > the load, while other is on standby mode.This is done primarily to make > sure that there is a backup capacity. If primary process dies, other > process (on standby) takes over the load. > Question I wanted to ask is that is there any zookeeper recipe or > framework which gives us this functionality? I wanted to use something > existing which is will proven/tested before choosing to write from scratch. > Thanks,Vikrant > --047d7bb042648d29ec0513a3c98c--