From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Garzik Subject: Re: Zookeeper instead of CLD in Hail Date: Mon, 07 Jun 2010 22:32:30 -0400 Message-ID: <4C0DABBE.7050807@garzik.org> References: <20100604212737.01ac0e37@lembas.zaitcev.lan> <4C0CF243.8040809@redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=IIuJ9I8ur+I3foBDdWEnnR/eiqFNLQkYixyaou+PnmY=; b=nIuyx2OtJJQx/CKvTJ2HsfgtFbXKlzBWGfTCdb565jTZRGLimq0+6okCbxteyCt5sP 02vgmpNV2KwxDK/rN8cjLhus9n0i4L0nIRU1pFoyWFUrkZwPp2mJv+Fizc5dqzhML1nY A8xr4szhjSbraYADpjIvw0JdsCkJKo4hOHxlY= In-Reply-To: <4C0CF243.8040809@redhat.com> Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Jeff Darcy Cc: Pete Zaitcev , hail-devel@vger.kernel.org On 06/07/2010 09:21 AM, Jeff Darcy wrote: > On 06/04/2010 11:27 PM, Pete Zaitcev wrote: >> About the focus, ZK is just like CLD from a certain angle (it has >> the good old files and provides a set of un-posixy operations >> on them: watches, uniques, "ephemerals"), but it's also entirely >> unlike CLD (e.g. no locks in the protocol). CLD's model is that >> clients are daemons, each of which reads a few of its files, maybe >> locks one or two at boot, and then nothing happens except keepalives. >> Zookeeper's model... honestly I don't know what it is because it's >> never explained concisely, but the docs that I saw seem to imply >> huge numbers of clients all doing random ops all the time on the >> same files, enough to cause a herd concerns. It looks like Yahoo >> may be using Zookeeper as a lease manager or something. Crazy. > > According to the Chubby paper (available at e.g. > http://labs.google.com/papers/chubby.html) Chubby itself is mostly used > as a naming service. They even say explicitly that few clients hold > locks (page 11, left column, under "use and behavior"). > >> I heard people say they cribbed from the same Chubby paper, but >> it's bollocks. It's absolutely nothing like what Chubby implies. >> No locks for one thing. > > I guess it could be argued that locks are the essential feature of > Chubby - both the name of the service and the title of the paper refer > to it - but I think your dismissal of ZK and Chubby as unrelated is > itself bollocks. Watches and ephemerals within a hierarchical namespace > of small pseudo-files are also central to how Chubby is actually used > within Google, even without locking. ZK copied those features, along > with many of the underlying algorithms and protocols. CLD copied a > slightly different set. There's still a lot of overlap, even if the one > feature that has been overused in Hail is absent (by design) in ZK. I think you're overselling that angle a bit. Google discourages use of Chubby as a strict publish-subscribe mechanism, so watches and ephemerals aren't the bread-and-butter of Chubby necessarily. A lot of the supposed commonality comes simply from the attribute of being a centralized respository of data for autonomous cloud systems -- a shared, highly reliable filesystem -- not any particular attribute related to watches or ephemerals. >> So I do not see >> an upside for us to switch at this point, and I have better things >> to do than learning Zookeeper ropes for weeks. > > That's a fair enough evaluation. I think I'm the one who might have > suggested investigating ZK, but the reasons for that are largely > community-related and not technical. If the technical barriers are too > high, then it's probably not worth the bother. That does, however, > leave the door open for someone else to provide more scalable solutions > for the same problems by using more appropriate primitives. If the goal > of Hail is to provide building blocks for people to use in constructing > their own higher-level service, then it seems to me that the building > blocks should be of a familiar shape and the adoption of ZK is about > 100x that of CLD for similar purposes. Not sure what you mean by familiar shape? ZK design is too haphazard, and developers IMO have an easier time grasping CLD's fundamental FS-like API. The implementation is also 3x or more in terms of size, compared to CLD. I'd rather get the basics right first, then pursue a popularity contest :) Jeff