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 41FD29B98 for ; Thu, 5 Jan 2012 04:10:32 +0000 (UTC) Received: (qmail 7874 invoked by uid 500); 5 Jan 2012 04:10:32 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 7247 invoked by uid 500); 5 Jan 2012 04:10:00 -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 7227 invoked by uid 99); 5 Jan 2012 04:09:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2012 04:09:55 +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 pacesysjosh@gmail.com designates 209.85.210.42 as permitted sender) Received: from [209.85.210.42] (HELO mail-pz0-f42.google.com) (209.85.210.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2012 04:09:47 +0000 Received: by dadp13 with SMTP id p13so69382dad.15 for ; Wed, 04 Jan 2012 20:09:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=/JV1T5SL9nkclpc9iQuFpL6IBpIINpqWKtQx87yf1DA=; b=n3+gidcB8iJWxjuXLQfxMik+R9ZitXoRBJ+pS8zasNFNEg9FcVrO2qeGXBGINcXZeI +Ksst+LysxD+wWQ4x9DJIl3+YnHPFnYmc008pmaXV7VfFrfS5jCvLPZXbaS/xBLX8WrH XDEf6Aev3jT5oxgqURb5sF/oDl4+M5sGQ3HEs= MIME-Version: 1.0 Received: by 10.68.213.97 with SMTP id nr1mr1072018pbc.127.1325736567692; Wed, 04 Jan 2012 20:09:27 -0800 (PST) Received: by 10.68.2.229 with HTTP; Wed, 4 Jan 2012 20:09:27 -0800 (PST) Date: Wed, 4 Jan 2012 20:09:27 -0800 Message-ID: Subject: Use cases for ZooKeeper From: Josh Stone To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=e89a8ff1c0ea2edeb304b5c019e7 --e89a8ff1c0ea2edeb304b5c019e7 Content-Type: text/plain; charset=ISO-8859-1 I have a few use cases that I'm wondering if ZooKeeper would be suitable for and would appreciate some feedback. First use case: Distributing work to a cluster of nodes using consistent hashing to ensure that messages of some type are consistently handled by the same node. I haven't been able to find any info about ZooKeeper + consistent hashing. Is anyone using it for this? A concern here would be how to redistribute work as nodes come and go from the cluster. Second use case: Distributed locking. I noticed that there's a recipe for this on the ZooKeeper wiki. Is anyone doing this? Any issues? One concern would be how to handle orphaned locks if a node that obtained a lock goes down. Third use case: Fault tolerance. If we utilized ZooKeeper to distribute messages to workers, can it be made to handle a node going down by re-distributing the work to another node (perhaps messages that are not ack'ed within a timeout are resent)? Cheers, Josh --e89a8ff1c0ea2edeb304b5c019e7--