Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 45157 invoked from network); 10 Nov 2010 17:15:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 17:15:41 -0000 Received: (qmail 77090 invoked by uid 500); 10 Nov 2010 17:16:09 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 77048 invoked by uid 500); 10 Nov 2010 17:16:08 -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 77040 invoked by uid 99); 10 Nov 2010 17:16:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 17:16:08 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 17:16:02 +0000 Received: by iwn37 with SMTP id 37so1053619iwn.11 for ; Wed, 10 Nov 2010 09:15:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=X4/KzVuq642aDYPP76lFFbCX67nvFuSd++VELqsRbj0=; b=frf+TszdzzMdOV0QICbYu0+4+921hkNm0UhiwQhAHdpiOcVXhupLJJAvkcUD46I/8R Rymx0VSKgSx5jHvA1NmRbEVZyxR15HBJri6al2HynykGE3dJICw0AD9iuYmEnsjrI/fB AH775QeTsKlGX9mzZPdkgKDR7T5vVNfJ+Jh6o= 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; b=GxpplQvQTzfjebK7ea7CoG8wRNhspimIyzrzsAvDmgHHqAZY8bxwhFgQjfprMwPluq N8JTtxBqZSr2RiYPCTE9yPopfXpAkNodC3EygtWuOGIZGDayGxQfeN78hLSnJUeDy7KS /8TIMSEbeN6b9wTE2uI8neJeRtXPhlNrofLGU= Received: by 10.231.37.201 with SMTP id y9mr214110ibd.76.1289409341425; Wed, 10 Nov 2010 09:15:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.15.3 with HTTP; Wed, 10 Nov 2010 09:15:01 -0800 (PST) In-Reply-To: <37B11839-32A9-4B5A-9725-2495E2044487@googlemail.com> References: <37B11839-32A9-4B5A-9725-2495E2044487@googlemail.com> From: Paul Davis Date: Wed, 10 Nov 2010 12:15:01 -0500 Message-ID: Subject: Re: Understanding _stats (again) To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Nov 10, 2010 at 10:17 AM, Sebastian Cohnen wrote: > Hey list, > > since the writing of http://wiki.apache.org/couchdb/Runtime_Statistics it looks like the output of _stats has changed once more. e.g. "count" is no longer available for each stat, "current" is. > > * Is "sum" (which looks new) the new "count"? Sum is a running sum of values aggregated from the collector. Generally, its only intended for things like time per request. > * What range do I get, when calling /_stats without a range? What does mean/min/max etc mean in this case? You get a special range that is "since the server started". > I'm a bit confused and others are too (at least I think so). When a dev willing to be interviewed, I'd love to create a writeup, update the wiki or whatever :) Feel free to find me on IRC in about an hour to ask any questions you have. Or feel free to just keep asking questions here. > > Best > > Sebastian > > I know some people don't like the Erlang too much, but the amount of code is fairly small. You can check the handle_call, new_value, add_value, and rem_value functions in the aggregator [1] to get a pretty good idea on how it all works. HTH, Paul Davis [1] https://github.com/apache/couchdb/blob/trunk/src/couchdb/couch_stats_aggregator.erl