[chef] Re: Re: couchdb question


Chronological Thread 
  • From: Joe Van Dyk < >
  • To:
  • Subject: [chef] Re: Re: couchdb question
  • Date: Thu, 13 Aug 2009 21:11:35 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=kM5V83fmVWG0nHzai7n37/U5TqwzXv5A2Pz4y4Ue/Mk0idDjy2wgvYqPPhNbG/uqb4 s93kRZvWORItu9BiJfVy0VILcl2iiuQ6z9vE3DL5f+CzsGDmMdWHM6JkAf+S891try1c LvjtjE08pj3dE29A6b5GlrI81YuI7aGAuCIvQ=

On Tue, Aug 4, 2009 at 8:15 PM, Adam 
Jacob< >
 wrote:
> On Tue, Aug 4, 2009 at 12:10 PM, Joe Van 
> Dyk< >
>  wrote:
>> Why was couchdb chosen as the data store for chef-server?
>
> Because it fit the model we needed very well.  We needed it to be
> lightweight, extensible, and schema-free. (Mapping Ohai data into a
> relational database is not fun, and it doesn't scale well at all.)  We
> met most/all of the requirements for using CouchDB well - the data
> changes with a fairly low frequency (even in the largest of
> infrastructures updating constantly,) we know exactly how we want to
> query it, and we don't need transactional consistency above the level
> of a single object.  Also, the data itself translates almost directly
> to CouchDB - we just serialize objects as JSON, and store them.
>
> It also is, in essence, just another HTTP application - which means
> when you learn how to scale the rest of Chef, you are also learning
> how to scale it's data store.  Things like proxies, caches, etc. are
> all right there, waiting to make both Chef and CouchDB faster in a
> pretty trivial way.
>
> Basically, we chose CouchDB because it was exactly the way we wanted
> to relate to the data-store for this sort of data.  Flexible, fast
> (enough), queryable (enough) and trivial to scale for our use case.

Ah, makes sense.

It probably wouldn't make sense to store the documents directly on the
filesystem, right?  (in appropriately named directories)

Joe



Archive powered by MHonArc 2.6.16.

§