Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 3645 invoked from network); 5 Jan 2010 16:57:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Jan 2010 16:57:16 -0000 Received: (qmail 4167 invoked by uid 500); 5 Jan 2010 16:57:15 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 4087 invoked by uid 500); 5 Jan 2010 16:57:14 -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 4077 invoked by uid 99); 5 Jan 2010 16:57:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jan 2010 16:57:14 +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.217.214 as permitted sender) Received: from [209.85.217.214] (HELO mail-gx0-f214.google.com) (209.85.217.214) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jan 2010 16:57:06 +0000 Received: by gxk6 with SMTP id 6so5389304gxk.13 for ; Tue, 05 Jan 2010 08:56:46 -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=GvJPBWq/AgCaoSK9ZnnZbfln+xhXL8t//3uPqabxJeo=; b=QO87RJ1WVB39bO05LZ96Yx6vqrgPLVl8yPWcjrgXSppnym1MpRfpY7xXoVaFnotnW+ bjINF0xNMEroac95eX12/av1hELNbpi/WUyJ4nAZUSim20XuM+zihSm6Z2qiRSuPu8oK 0rDVsVWFLsHAv32IKXARLTeBurY9y9Fmc1DHM= 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=QwkU1bO8WYjEPX3X3ssRDHQ4vCv4njSixJ+eEH80mgx+8b7h+6ONuZ7FGM9dOOxV5N HLqZgaXE6WZqxr6sLvdEiLMVqAGJOFnwTzKWBTapcckCrKCVXs4/sJ3MnCtgY1UDc3qN kaaueDjfq3kVgOJrdpS6HgyzqHOA6pA4lLvaY= MIME-Version: 1.0 Received: by 10.101.142.22 with SMTP id u22mr39231706ann.117.1262710606100; Tue, 05 Jan 2010 08:56:46 -0800 (PST) In-Reply-To: <1bca98391001050411h6ea643eas7b2b8d2224c3076b@mail.gmail.com> References: <1bca98391001050411h6ea643eas7b2b8d2224c3076b@mail.gmail.com> From: Paul Davis Date: Tue, 5 Jan 2010 16:56:26 +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 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 >