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 7FB1A18F1F for ; Sat, 27 Jun 2015 10:47:31 +0000 (UTC) Received: (qmail 65092 invoked by uid 500); 27 Jun 2015 10:47:30 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 65043 invoked by uid 500); 27 Jun 2015 10:47:30 -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 65032 invoked by uid 99); 27 Jun 2015 10:47: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; Sat, 27 Jun 2015 10:47:30 +0000 Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 4127F1A01D7 for ; Sat, 27 Jun 2015 10:47:30 +0000 (UTC) Received: by wicgi11 with SMTP id gi11so36290979wic.0 for ; Sat, 27 Jun 2015 03:47:28 -0700 (PDT) X-Gm-Message-State: ALoCoQnRp1wkoIvrogbYWnTP6L/kAQ875m8leEENA5T7ZKzi23WeNxRsugODVVe6Jo/l7DA0uN2B X-Received: by 10.180.100.101 with SMTP id ex5mr5088279wib.13.1435402048563; Sat, 27 Jun 2015 03:47:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ivan Kelly Date: Sat, 27 Jun 2015 10:47:19 +0000 Message-ID: Subject: Re: zookeeper max no of children of znode To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=f46d0442811a3703b005197d9565 --f46d0442811a3703b005197d9565 Content-Type: text/plain; charset=UTF-8 Hi Shushant Is there any max number of children limit of a znode? > As there is a limit of 1MB data of a znode. > There's no explicit limit to the number of children. However, there is a limit to the size of the packet that can be sent back from the server in response to getChildren which effectly ends up being the limit. This is controls with a system property, jute.maxbuffer and defaults to 4MB (I think you can get a around 200,000 znodes into this, though it also depends on the length of the znode name). > Does in zookeeper noodes which are behind the leader not accept the > connection til they come in sync? If yes and only those nodes which are in > sync with leader accept the connection then How Zookeeper is eventual > consistent, it should be fully consistent then since client will never get > connected to unsync nodes. > Once they have joined the quorum, all zookeeper nodes will accept client connections. Followers are not guaranteed to be 100% in sync with the leader, due to physics (messages take time to travel over the network). However, a follower does guarantee that all clients connected will see all updates in the same sequence that they occur on the server, and they should only be a number of milliseconds behind. This isn't eventual consistency. Thats what databases like cassandra do where all clients will eventually be able to see all updates though the order it sees them can change. ZooKeeper provides sequential consistency. However it only provides this consistency within a single client session. -Ivan --f46d0442811a3703b005197d9565--