Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 84056 invoked from network); 7 Jan 2010 13:32:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jan 2010 13:32:20 -0000 Received: (qmail 82208 invoked by uid 500); 7 Jan 2010 13:32:18 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 82140 invoked by uid 500); 7 Jan 2010 13:32:18 -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 82130 invoked by uid 99); 7 Jan 2010 13:32:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jan 2010 13:32:18 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.211.183 as permitted sender) Received: from [209.85.211.183] (HELO mail-yw0-f183.google.com) (209.85.211.183) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jan 2010 13:32:10 +0000 Received: by ywh13 with SMTP id 13so42508353ywh.29 for ; Thu, 07 Jan 2010 05:31:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=KVHUcbq6OTzUL0p5bt/AkXKDmduI/zqBNKwsEwUl24U=; b=jyh5enHsHbLY2zkhPxzK2EC8Vv9ZL0cCX/5VTDd0lHktbrJH/0nzz8osNc6bd6gsmi mR3nX/yhqFKFQCoV0GCN6Xba8YyMLfd9qUGtd5vD/JQzGeAACPiyltodvWKEpgz3Pwn6 P8P7fINMH49xEGGjUGr8mKxczkgzDqVdq62wE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=g+MXqqEYTxKoC991xm88ftFvlzxpkgWP6m1MS4B1/KOZHSiHFlJ0vF6bghycKXjnYM FbfPSrNraGMFhff6EfeOLRc/6FTzETWzNJHPxk3mHJuOKY54U3Z48c3R5SIH5rNqr145 X0fGaY6xyReyLXpKVhrEz7yTsZsUZvzAHKDbU= MIME-Version: 1.0 Received: by 10.101.183.37 with SMTP id k37mr35827704anp.70.1262871109124; Thu, 07 Jan 2010 05:31:49 -0800 (PST) In-Reply-To: <1bca98391001050939j338e434cvb82b570ed3de8975@mail.gmail.com> References: <1bca98391001050411h6ea643eas7b2b8d2224c3076b@mail.gmail.com> <1bca98391001050939j338e434cvb82b570ed3de8975@mail.gmail.com> From: Paul Davis Date: Thu, 7 Jan 2010 13:31:29 +0000 Message-ID: Subject: Re: in _stats, how is couchdb.request_time calculated? To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Oh, I see what you're saying. I'll have to dig into it this weekend when I get home. You're actually giving me something worth thinking about as I just trawl through email occasionally to burn time. Internet cafes are a brief respite from trying to walk on the ice rinks that are Britain's sidewalks. Paul Davis On Tue, Jan 5, 2010 at 5:39 PM, Matteo Caprari w= rote: > Thanks paul :) > > I swear, I'm not trying to disturb your holiday. But I still don't > understand why couchdb.requests_time sees 2 requests while > httpd.requests sees 3 (it this is what is happening). > > My ass is freezing, hope your holidays are warm :) > > On Tue, Jan 5, 2010 at 4:56 PM, Paul Davis = wrote: >> Still just shooting from memory on holiday, but that should mean that >> you only had 2 requests in a 1 second window of the 60 seconds. The >> stats modules work by accumulating values and then aggregating. The >> different range query parameters just show a longer history for each >> endpoint. >> >> HTH, >> Paul Davis >> >> On Tue, Jan 5, 2010 at 12:11 PM, Matteo Caprari >> wrote: >>> Hi. >>> >>> I'm looking at this snippet from _stats?range=3D60 >>> >>> "couchdb": { >>> =A0 =A0 "request_time": { >>> =A0 =A0 =A0 =A0 =A0 =A0"description": "", >>> =A0 =A0 =A0 =A0 =A0 =A0"current": 36.5, >>> =A0 =A0 =A0 =A0 =A0 =A0"sum": 36.5, >>> =A0 =A0 =A0 =A0 =A0 =A0"mean": 18.25, >>> =A0 =A0 =A0 =A0 =A0 =A0"stddev": 22.274, >>> =A0 =A0 =A0 =A0 =A0 =A0"min": 2.5, >>> =A0 =A0 =A0 =A0 =A0 =A0"max": 34.0 >>> =A0 =A0 =A0 =A0}, >>> >>> Looking at how numbers add up, it looks like there have been 2 >>> requests, but 'sum' is 3 in http.requests for the same period >>> >>> =A0"requests": { >>> =A0 =A0 =A0 "description": "number of HTTP requests", >>> =A0 =A0 =A0 =A0 =A0 =A0"current": 3.0, >>> =A0 =A0 =A0 =A0 =A0 =A0"sum": 3.0, >>> =A0 =A0 =A0 =A0 =A0 =A0"mean": 0.05, >>> =A0 =A0 =A0 =A0 =A0 =A0"stddev": 0.287, >>> =A0 =A0 =A0 =A0 =A0 =A0"min": 0, >>> =A0 =A0 =A0 =A0 =A0 =A0"max": 2 >>> =A0 =A0 =A0 =A0} >>> >>> tnx >>> >>> -- >>> :Matteo Caprari >>> matteo.caprari@gmail.com >>> >> > > > > -- > :Matteo Caprari > matteo.caprari@gmail.com >