Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 58229 invoked from network); 30 Mar 2011 16:55:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Mar 2011 16:55:39 -0000 Received: (qmail 89719 invoked by uid 500); 30 Mar 2011 16:55:38 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 89662 invoked by uid 500); 30 Mar 2011 16:55:38 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 89651 invoked by uid 99); 30 Mar 2011 16:55:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2011 16:55:38 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kowsik@gmail.com designates 209.85.210.180 as permitted sender) Received: from [209.85.210.180] (HELO mail-iy0-f180.google.com) (209.85.210.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2011 16:55:33 +0000 Received: by iyf40 with SMTP id 40so2063012iyf.11 for ; Wed, 30 Mar 2011 09:55:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=rL0nnWRMZpBK0bWZuAeU2BfbrlCHIWAKUy5UhPNmu8c=; b=KuRU7BSi3edcfNlddBk8ijNr64UXign6jZE56xAU36RJ4XiPtdw4+5E/BewV3qwWEA 4qTkNdTgPu2Jrwp7ygf+S8wH9jfy9sC2BuzMCFzY/ugtvfkQ4xD+VBteqXK3SYfoGJ0M zMtFPVre0zo2DmoP5kAF1NgAtdNw4Ho4T7pOs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=MVA7sEyICqyVo42sV6W7THbNj1XrXINdkIz3bNkdeLRR5lejtIrdt4FM5UO+cdki9G shAFyMH4AAwY9YZS1wpSOdk7LMvp7o4rDquA7aembzGl39BaxIvfLq+X+t+zXNXLy1Wv T3Oy1XFh07PnLn8riTciDlGvyqoOEd66RSDfQ= MIME-Version: 1.0 Received: by 10.231.63.6 with SMTP id z6mr1514533ibh.142.1301504112852; Wed, 30 Mar 2011 09:55:12 -0700 (PDT) Received: by 10.43.69.209 with HTTP; Wed, 30 Mar 2011 09:55:12 -0700 (PDT) In-Reply-To: References: <95002D3F-8F13-4977-A640-446AF2745DBD@adesso.de> <1301469307.21215.199.camel@meerkat.green.sophos> Date: Wed, 30 Mar 2011 09:55:12 -0700 Message-ID: Subject: Re: Surprisingly high CPU load From: kowsik To: user@couchdb.apache.org Cc: bryan rasmussen Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable In the end, RAM *always* wins. Use fragment caching (rails/sinatra) or memcached/redis before you bother Couch. That said, I'm seeing direct doc fetches from CouchDB in the low 10's of milliseconds running on an EC2 large instance. This could be an interesting "feature" in CouchDB. Since it "knows" about the changes and revisions, it could cache the the latest revisions of a certain number of documents (memory threshold of sorts) in memory and return it without disk seeks. K. --- http://blitz.io http://twitter.com/pcapr On Wed, Mar 30, 2011 at 3:10 AM, bryan rasmussen wrote: > How do people deal with this issue in production environments? Just > adding more CPUs? Any optimizations that one commonly sees? > > Thanks, > Bryan Rasmussen > > On Wed, Mar 30, 2011 at 11:54 AM, Filipe David Manana > wrote: >> On Wed, Mar 30, 2011 at 8:15 AM, Paul Hirst wrot= e: >>> >>> You might find this an interesting read >>> https://issues.apache.org/jira/browse/COUCHDB-1092 >>> >>> The performance improvements discussed in that bug sound extremely >>> appealing but the discussion has gone quiet which is a great shame. I'm >>> still hoping something comes of it. >> >> It probably will, the only drawback identified in the discussion of >> that ticket is not that hard to fix. >> >> Also, before moving that one forward, I've been trying several other >> performance and disk saving approaches and measure the gains of each >> one. In the end we'll see. Maybe that one gets dropped and something >> better or equivalent comes out. >> >>> >>> >>> >>> Sophos Limited, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP= , United Kingdom. >>> Company Reg No 2096520. VAT Reg No GB 991 2418 08. >>> >> >> >> >> -- >> Filipe David Manana, >> fdmanana@gmail.com, fdmanana@apache.org >> >> "Reasonable men adapt themselves to the world. >> =C2=A0Unreasonable men adapt the world to themselves. >> =C2=A0That's why all progress depends on unreasonable men." >> >