Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 40912 invoked from network); 30 Jan 2009 06:59:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jan 2009 06:59:15 -0000 Received: (qmail 3549 invoked by uid 500); 30 Jan 2009 06:59:14 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 3508 invoked by uid 500); 30 Jan 2009 06:59:14 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 3497 invoked by uid 99); 30 Jan 2009 06:59:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jan 2009 22:59:14 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of antony.blakey@gmail.com designates 209.85.200.171 as permitted sender) Received: from [209.85.200.171] (HELO wf-out-1314.google.com) (209.85.200.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jan 2009 06:59:06 +0000 Received: by wf-out-1314.google.com with SMTP id 28so352966wfc.29 for ; Thu, 29 Jan 2009 22:58:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=zUBgilEKVMbQE5KHHjpXUC+Ca8u22Juov0yVnQ43qa8=; b=OaLFDzlloUuIHK7qNDwP2ZMFMDomVhg+mDjgykLMP2uvLoVEQZqluDc279OiPk5mOy lRgePBLQGev8zTaO6iuOEG6tu8Esb7qz2UT5SGh2qEe6+w8nmuyE4U99A+Ol4pkbEqH5 MYnSbMgLVz5EkRIwG6LhUQL1XwWYkcxSBpk9E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=ELmLqxmPYTAvQjV/KbX+CsmphFwl341Aq5dXqydfMOMRcujGEAEIXxV06f4wU54d3M QAe5o6S9DS1yBmcLfoEmZSsI61sravuMYk24qChMhY6+uM/sWxeywPHfQw/Mdc3KylEC 4QwUhC8/CjEZc9n8CLqYLs7mnFMgXLBzCHCsg= Received: by 10.142.88.4 with SMTP id l4mr381316wfb.112.1233298725888; Thu, 29 Jan 2009 22:58:45 -0800 (PST) Received: from ?192.168.0.19? (ppp121-45-202-232.lns10.adl2.internode.on.net [121.45.202.232]) by mx.google.com with ESMTPS id 24sm701312wfc.2.2009.01.29.22.58.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 29 Jan 2009 22:58:45 -0800 (PST) Message-Id: <4E1BB3D8-950D-4851-A87C-9A64FA0934AD@gmail.com> From: Antony Blakey To: dev@couchdb.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Statistics Module Date: Fri, 30 Jan 2009 17:28:41 +1030 References: X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org On 30/01/2009, at 4:27 PM, Paul Davis wrote: > On Fri, Jan 30, 2009 at 12:32 AM, Antony Blakey > wrote: >> >> On 30/01/2009, at 9:56 AM, Paul Davis wrote: >> >>> The way that stats are calculated currently with the dependent >>> variable being time could cause some issues in implementing more >>> statistics. With my extremely limited knowledge of stats I think >>> moving that to be dependent on the number of requests might be >>> better. >>> This is something that hopefully someone out there knows more about. >>> (This is in terms of "avg for last 5 minutes" vs "avg for last 100 >>> requests", (the later of the two making stddev type stats >>> calculateable on the fly in constant memory.) >> >> The problem with using # of requests is that depending on your >> data, each >> request may take a long time. I have this problem at the moment: 1008 >> documents in a 3.5G media database. During a compact, the status in >> _active_tasks updates every 1000 documents, so you can imagine how >> useful >> that is :/ I thought it had hung (and neither the beam.smp CPU time >> nor the >> IO requests were a good indicator). I spent some time chasing this >> down as a >> bug before realising the problems was in the status granularity! >> > > Actually I don't think that affects my question at all. It may change > how we report things though. As in, it may be important to be able to > report things that are not single increment/decrement conditions but > instead allow for adding arbitrary floating point numbers to the > number of recorded data points. I think I have the wrong end of the stick here - my problem was with the granularity of updates, not with the basis of calculation. Antony Blakey ------------- CTO, Linkuistics Pty Ltd Ph: 0438 840 787 It is no measure of health to be well adjusted to a profoundly sick society. -- Jiddu Krishnamurti