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 5E4C7177B4 for ; Wed, 2 Sep 2015 14:52:25 +0000 (UTC) Received: (qmail 20230 invoked by uid 500); 2 Sep 2015 14:52:11 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 20177 invoked by uid 500); 2 Sep 2015 14:52:11 -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 20166 invoked by uid 99); 2 Sep 2015 14:52:11 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Sep 2015 14:52:11 +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 3051B18027C for ; Wed, 2 Sep 2015 14:52:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.001 X-Spam-Level: **** X-Spam-Status: No, score=4.001 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id YaB5kOnbL1gm for ; Wed, 2 Sep 2015 14:51:58 +0000 (UTC) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 2814924A72 for ; Wed, 2 Sep 2015 14:51:58 +0000 (UTC) Received: by pacex6 with SMTP id ex6so8930721pac.0 for ; Wed, 02 Sep 2015 07:51:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type; bh=kAW0L/oCd97netadzjYvHrvOwnJBxY4wuLbTvyazbIE=; b=S8z0NcLEZjqEuQI07vbRHTJC5gUPmx6gRUuccrmpq4pggnvkWXYrorASNqQPIxdeMN tU+3N791fB9OB70AeuSce3+ptPhAhKpftCNhwRiR1NKSSqJPUKvYzjJWC98y/X090WPV pzig9GsRd9p/dXqqnFNgmGHAekuYljjXG9Wd0a3zHMhFscZ/x8EmrgyG9X/IyOEqUveL GpQQ5LA3sEmaxbFe+nVoZp+GgW+rEZXydpLkn+upDhjijrFYPoNRlew/DH2vFAj7gL+B j+xe18ebZF2Gwhec946aRmOUVN7c4b9KuVpw83LjYAwlvUCLtIwaV5GguHTloL+qIH4O ew4Q== X-Gm-Message-State: ALoCoQmQruXCufk8UpNAqG6hVW2+W1vgh8pAHG3pOd4dMnvdSJYtsK2QB+xMur6DKlfKucomyeDz X-Received: by 10.68.244.34 with SMTP id xd2mr55341152pbc.50.1441205517763; Wed, 02 Sep 2015 07:51:57 -0700 (PDT) Received: from Jordans-MacBook-Pro.local (173-11-86-161-SFBA.hfc.comcastbusiness.net. [173.11.86.161]) by smtp.gmail.com with ESMTPSA id y15sm21890015pbt.90.2015.09.02.07.51.56 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Sep 2015 07:51:56 -0700 (PDT) Date: Wed, 2 Sep 2015 07:51:56 -0700 From: Jordan Zimmerman To: Prabhjot Bharaj , user@zookeeper.apache.org Message-ID: In-Reply-To: References: <6cd5e356-b8e2-4760-918b-ea4441302781@email.android.com> Subject: Re: Distributed Task Queue with client node failovers X-Mailer: Airmail (303) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="55e70d0c_5847dcfd_217" --55e70d0c_5847dcfd_217 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Please have a look at Nirmata Workflow (which I wrote). Given your descri= ption, it does what you want. Even if you don=E2=80=99t use it, you can r= eview it for an example of how to do what you want:=C2=A0http://nirmataos= s.github.io/workflow/ -Jordan On September 2, 2015 at 5:14:47 AM, Prabhjot Bharaj (prabhbharaj=40gmail.= com) wrote: Hi Adam, =20 I had not gone through the contents of the link you provided =20 But, after reading the Tech Note 4, I can say that my use case is not on = =20 that scale. =20 Regards, =20 Prabhjot =20 On Wed, Sep 2, 2015 at 4:09 PM, Adam Milne-Smith =20 wrote: =20 > Not an answer to your question but I just wanted to check you've read =20 > https://cwiki.apache.org/confluence/display/CURATOR/TN4 =20 > =20 > On 2 Sep 2015 09:47, Prabhjot Bharaj wrote: =20 > > =20 > > Hello =46olks, =20 > > =20 > > I am trying to design a distributed queue with Zookeeper. The use cas= e is =20 > > like this:- =20 > > =20 > > A set of 't' tasks to be executed by 'n' nodes in round-robin fashion= . =20 > But, =20 > > if any node goes down, the other nodes should take the task. =20 > > =20 > > =46or this purpose, I'm reading about zookeeper Queue recipe. The Que= ue =20 > > recipe relies on client watcher. =20 > > =20 > > Initially, all clients run their respective tasks. But, after one =20 > > iteration, lets say one client node goes down. =20 > > In this case, that client node itself is unavailable to get a Watch =20 > Event, =20 > > can the task be transferred to another node =3F =20 > > =20 > > The worst case will be - =20 > > All the client nodes, but one, are down. Can this one node still pick= up =20 > > all tasks sequentially and execute them =3F =20 > > =20 > > Thanks, =20 > > Prabhjot =20 > =20 -- =20 --------------------------------------------------------- =20 =22There are only 10 types of people in the world: Those who understand =20 binary, and those who don't=22 =20 --55e70d0c_5847dcfd_217--