Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46442 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68726 invoked from network); 16 Dec 2009 03:29:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Dec 2009 03:29:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=oorza2k5@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=oorza2k5@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.226 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: oorza2k5@gmail.com X-Host-Fingerprint: 209.85.219.226 mail-ew0-f226.google.com Received: from [209.85.219.226] ([209.85.219.226:50683] helo=mail-ew0-f226.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/C5-33900-624582B4 for ; Tue, 15 Dec 2009 22:29:43 -0500 Received: by ewy26 with SMTP id 26so606841ewy.23 for ; Tue, 15 Dec 2009 19:29:39 -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 :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=MnEgMNw5vAG1i9FmmNPLcZhN9SFcgaJDrMWy7nClEsw=; b=MThIYVm9jK0/ecuNhxTZ0jTEBmrqjaWkLAo9F2IFW4v1dq7vfjg4oNGyebv57YJBT4 4rJznGpyDefKwWOakMelPWYUtlwJOLX47hnn6zEu/LJ2MMVoFLsle51u91mtQQZr8Ooz JCGLidZEajLR/hYSQZUZ7MDAPCMbiSlY7OSZw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=uk7cTvh8FDtBuqzCBCnsZDR3x9s9Jo19L8bLKSpVPsfd1+Hwj6rwbuBVapP6iyaeCh QvGjy6rM0dRSGCrvopkSRKkRxVZdOk6IHhujgBdF5WSKbsG0RkesZPE2xdl26xxkljjg /LMFf4C0W6+2jBAdxxDwZhYrlN2YmAto6XNSA= MIME-Version: 1.0 Received: by 10.216.90.7 with SMTP id d7mr176535wef.81.1260934179675; Tue, 15 Dec 2009 19:29:39 -0800 (PST) In-Reply-To: <20091216025940.GA19675@joeysmith.com> References: <3bea96c40912141216u6019bc9bv4bdf054a4cd1919f@mail.gmail.com> <4B275138.4040200@iki.fi> <4B27538C.7030108@daylessday.org> <4B27573D.6080601@iki.fi> <4B2758E6.2070506@daylessday.org> <4B27802C.9010802@daylessday.org> <20091216025940.GA19675@joeysmith.com> Date: Tue, 15 Dec 2009 22:29:39 -0500 Message-ID: <68de37340912151929q9f032c0y791e14751e7986d@mail.gmail.com> To: Joey Smith Cc: php-dev Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [PATCH] fpm/typo: change some log about dynamic + homogenize log message about pool From: oorza2k5@gmail.com (Eddie Drapkin) On Tue, Dec 15, 2009 at 9:59 PM, Joey Smith wrote: > On Tue, Dec 15, 2009 at 02:27:30PM -0800, Michael Shadle wrote: >> However if people have ideas on how this will help or be useful (i.e. >> you -are- planning on running logfiles or logwatch or something) then >> it might be smart to bring it back to the table again. J=C3=A9r=C3=B4me = and I >> were talking about some way to grab statistics in real-time (as close >> as they can be, obviously the connection counts can change rapidly) >> and I thought it might make sense to have a PHP function which can >> access that information. Originally he had mentioned a /url-prefix but >> that seems a bit complex, having to configure it in the webserver and >> such. > > I don't use FPM, but I certainly am a heavy user of PostgreSQL's 'log_lin= e_prefix' > configuration setting. For those who aren't familiar with it, check out t= he table > at http://www.postgresql.org/docs/8.4/static/runtime-config-logging.html = for some > ideas on the kinds of information you can add (or exclude) from logfile l= ines. In > production enviroments, I don't use many of these, as any analysis done o= n them > will likely come hours (if not days) after the issue occurred; however, i= n a > development or staging environment, knowing something like the PID can be= very > useful. It strikes me that these kind of rules might also apply in the FP= M case - > but, again, I'm not actually *using* FPM, so maybe I'm wrong. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > I can see this sort of thing being incredibly useful. I *am* using FPM in production (dozens of sites, some share pools, some don't) and if that level of logging was supported, a lot of application-level logging that I'm doing would be rendered obsolete. It would be nice to have a more granular approach to logging what went wrong (knowing what worker, for instance, which I think is currently unavailable) and enough information to re-create the problem. Because of the operational model of FPM, I think that this idea would greatly improve the SAPI, especially as part of a development idea. Definitely a +1 to that idea.