Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 48129 invoked from network); 12 Jan 2011 00:22:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jan 2011 00:22:21 -0000 Received: (qmail 98274 invoked by uid 500); 12 Jan 2011 00:22:21 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 98202 invoked by uid 500); 12 Jan 2011 00:22:20 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 98194 invoked by uid 99); 12 Jan 2011 00:22:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jan 2011 00:22:19 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of neil.mckee@inmon.com designates 74.125.83.45 as permitted sender) Received: from [74.125.83.45] (HELO mail-gw0-f45.google.com) (74.125.83.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jan 2011 00:22:13 +0000 Received: by gwj23 with SMTP id 23so11054gwj.18 for ; Tue, 11 Jan 2011 16:21:52 -0800 (PST) Received: by 10.150.136.14 with SMTP id j14mr1045815ybd.341.1294791711620; Tue, 11 Jan 2011 16:21:51 -0800 (PST) Received: from [10.0.0.72] ([38.99.24.226]) by mx.google.com with ESMTPS id g78sm13093yhd.22.2011.01.11.16.21.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 Jan 2011 16:21:50 -0800 (PST) Subject: Re: mod_sflow Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Neil McKee In-Reply-To: <20110110235249.3c2d2269@baldur> Date: Tue, 11 Jan 2011 16:21:48 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <64258452-9380-4E36-AD69-298CC66DDB43@inmon.com> <20110110235249.3c2d2269@baldur> To: modules-dev@httpd.apache.org X-Mailer: Apple Mail (2.1082) X-Virus-Checked: Checked by ClamAV on apache.org I removed all the ap_assert() calls. The "master" process that is forked at the beginning will simply bow-out = gracefully if it loses self-confidence, which will result in the pipe = being closed. When a child processes detects this (or any other IPC or = mutex problem) it will log an error and go into a "logging disabled" = state where it will ignore all subsequent transactions and generally do = as little as possible. http://code.google.com/p/mod-sflow/source/browse/trunk/mod_sflow.c?r=3D22 Does anyone have any comments about the choice of performance counters = for HTTP?=20 typedef struct _SFLHTTP_counters { uint32_t method_option_count; uint32_t method_get_count; uint32_t method_head_count; uint32_t method_post_count; uint32_t method_put_count; uint32_t method_delete_count; uint32_t method_trace_count; uint32_t method_connect_count; uint32_t method_other_count; uint32_t status_1XX_count; uint32_t status_2XX_count; uint32_t status_3XX_count; uint32_t status_4XX_count; uint32_t status_5XX_count; uint32_t status_other_count; } SFLHTTP_counters; For example, Ganglia already supports sFlow for monitoring cluster = performance and could easily be extended to monitor web-farms using = these counters. http://blog.sflow.com/2010/10/ganglia.html Neil On Jan 10, 2011, at 3:52 PM, Nick Kew wrote: > On Fri, 7 Jan 2011 15:06:19 -0800 > Neil McKee wrote: >=20 >> Hello all, >>=20 >> A new module that exports log data using the sFlow protocol is = available for review: >>=20 >> http://mod-sflow.googlecode.com >=20 > I started to look at it, then got distracted. >=20 > Five-minute review: > (1) It looks well-formed as a module. If the question was > meant to be "have I got the basics", then the answer is yes. > (2) I don't like modules that die on error. Use of ap_assert > makes me uneasy. >=20 > --=20 > Nick Kew >=20 > Available for work, contract or permanent. > http://www.webthing.com/~nick/cv.html