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:20:26 -0400 Message-ID: <4C0DA8EA.7080106@garzik.org> References: <20100604212737.01ac0e37@lembas.zaitcev.lan> 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=aWvFTC2SPatgiNDm9RHVrjnNoMPmbSCrmTHT/ceMmSo=; b=feDi96o7A5Cc6dwSi4JnnzmtH7xfn52iJldEIXQI0brcgmJZ/dfggLQoGb3TAT1r/o V4gEZ9RnUHqvHc/53DrVqu47Tz15Vu3W2r5ddJAk7MAV5EYoLxv1+iHI2CLdDcW3rBw5 PMJmOUFcoIF8iuO6G5XZzstqftGYiN6tP9g+4= In-Reply-To: <20100604212737.01ac0e37@lembas.zaitcev.lan> Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Pete Zaitcev Cc: hail-devel@vger.kernel.org On 06/04/2010 11:27 PM, Pete Zaitcev wrote: > 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. To be sure, Zookeeper provides a canned > piece of code which implements locks, kinda like you can implement > compare-and-swap using Dekker's algorithm on a CPU that doesn't > have it. The canned lock creates "sequenced" files (using a ZK > server call that creates unique filenames), then sets some > "watches" (same as CLD offers), then re-reads the directory to > find the lowest number sequential file, which is the winner of > the lock. Haha, only serious. I tested it, it works, but ewwwww. Yeah, the main similarity is... both ZK and CLD offer some type of filesystem (with all that implies). ZK is IMO not much like Chubby at all, in terms of focus / design goals. Jeff