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 415BF7F59 for ; Fri, 2 Sep 2011 18:24:41 +0000 (UTC) Received: (qmail 55680 invoked by uid 500); 2 Sep 2011 18:24:40 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 55636 invoked by uid 500); 2 Sep 2011 18:24:40 -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 55628 invoked by uid 99); 2 Sep 2011 18:24:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2011 18:24:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ted.dunning@gmail.com designates 209.85.216.44 as permitted sender) Received: from [209.85.216.44] (HELO mail-qw0-f44.google.com) (209.85.216.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2011 18:24:33 +0000 Received: by qwg2 with SMTP id 2so2467366qwg.3 for ; Fri, 02 Sep 2011 11:24:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=KVSncZcLtc5j9sCavxu0h3zEKbLnXkbV1J+k1+Riktc=; b=gn/6499TCFu1EJZ0ZDevPh22UMHCwLRn35wb+94FTNtK1se/kkYja6iiivUmyS84TP zpHiqrut4kJn4j0eCenZw7gUKrGfVPPBd4J5tRWJxXSKqJHTQppBKGMpHfhq0Gk/zJTM bEKZNG7igaoa9kDqz2+ATtmF8CJIIOymsGDNs= Received: by 10.224.210.1 with SMTP id gi1mr1121525qab.73.1314987852211; Fri, 02 Sep 2011 11:24:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.80.136 with HTTP; Fri, 2 Sep 2011 11:23:52 -0700 (PDT) In-Reply-To: <4E60EE17.8080209@dehora.net> References: <4E60EE17.8080209@dehora.net> From: Ted Dunning Date: Fri, 2 Sep 2011 13:23:52 -0500 Message-ID: Subject: Re: upper bound on znode entries? To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=20cf300fa971d0a5df04abf9774e X-Virus-Checked: Checked by ClamAV on apache.org --20cf300fa971d0a5df04abf9774e Content-Type: text/plain; charset=UTF-8 There is a bound based on maximum response size. This typically kicks in somewhere above 100,000 entries in a directory. If you stay in the tens of thousands or below and have reasonable znode name lengths, you should be fine. Degradation with designs like the one you propose typically comes from causing broadcast storms of ever increasing object sizes. Thus, you need to be cautious about having all clients watch a directory that all clients register in. On Fri, Sep 2, 2011 at 9:54 AM, Bill wrote: > Hi, > > [I had a quick look around and couldn't find any guidance on this] > > I was wondering how Zookeeper behaves as the number of entries under a > znode increases. Specifically I'm looking at a design that tracks which > servers in a cluster have loaded which search index files into their memory, > and this would involve a znode folder that keeps an index->server mapping as > indexes come and go. I have a sense that's going to degrade as the number of > loaded indexes increases but was wondering what typically is considered a > sane upper bound of entries under a znode (ie is it hundreds, thousands, > hundreds of zillions) or is there some other naturally limiting factor? > > Bill > --20cf300fa971d0a5df04abf9774e--