You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jacqui Caren <ja...@ntlworld.com> on 2006/02/12 14:48:21 UTC

[users@httpd] "monitor hooks" docs in apache 2.2

Is there any documentation regarding the 'monitor hooks' feature of 
apache2.2?

A search of the httpd.apache.org web site gives nada.

Jacqui

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] "monitor hooks" docs in apache 2.2

Posted by Nick Kew <ni...@webthing.com>.
On Sunday 12 February 2006 18:23, Jacqui Caren wrote:
> Nick Kew wrote:
> >very different to other hooks, and could be dangerous.
>
> I was thinking of using it to 'nice' a pool of backend processes - but I
> think a standalone daemon may be easier/safer.

I don't see how monitor would be relevant to that, unless your
backend processes needed monitoring from a parent.
But you could certainly use the pre_mpm hook to set that up.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] "monitor hooks" docs in apache 2.2

Posted by Jacqui Caren <ja...@ntlworld.com>.
Nick Kew wrote:
>very different to other hooks, and could be dangerous.

I was thinking of using it to 'nice' a pool of backend processes - but I
think a standalone daemon may be easier/safer.

Thanks

Jacqui

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] "monitor hooks" docs in apache 2.2

Posted by Nick Kew <ni...@webthing.com>.
On Sunday 12 February 2006 13:48, Jacqui Caren wrote:
> Is there any documentation regarding the 'monitor hooks' feature of
> apache2.2?

Not really.  There's the "what's new" page and the source code.
When my book comes out it'll say just a little more.

The vital question here is whether you have a proper understanding of
Apache's hooks.  Since it's you, I'll guess the answer is yes - or at least
that it will be by the time you deploy something with the monitor hook.
Be aware that it's very different to other hooks, and could be dangerous.

The monitor hook runs periodically in the parent process.  The original
motivation for it was to support a "watchdog" module, that keeps watch
on the scoreboard and kills any child processes that appear to be stuck
in a state for longer than some max time.  That saves the server from the
worst efects of buggy applications, or could be used in the manner of
ulimit to place limits on users of a hosting service.

The conceptual gotcha is being in the parent process (which also means
it'll run as root).  The practical gotcha is that you need to take a lot more
care over using the pool, or you'll get a memory leak (or worse).

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] "monitor hooks" docs in apache 2.2

Posted by Nick Kew <ni...@webthing.com>.
On Sunday 12 February 2006 15:16, Boysenberry Payne wrote:
> Is there more information online about hooks you'd suggest checking out?

Not really.  If you were embarking on a project where such information was 
likely to matter, you could ask more specific questions.

The scarcity of developer documentation is precisely why I embarked on
the book.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] "monitor hooks" docs in apache 2.2

Posted by Boysenberry Payne <bo...@humaniteque.com>.
Is there more information online about hooks you'd suggest checking out?

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Feb 12, 2006, at 9:10 AM, Nick Kew wrote:

> On Sunday 12 February 2006 14:07, Boysenberry Payne wrote:
>> Other than the initial blurb about it I could only find general hook
>> info here:
>>
>> http://httpd.apache.org/docs/2.0/developer/hooks.html
>
> FWIW, given that it's dated 1999, that document is surprisingly
> up-to-date and still valid for the hooks available in the apache core.
>
> But it would not be quite such a good reference for third-party 
> modules,
> for which optional hooks are more likely to be appropriate.
>
> -- 
> Nick Kew
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server 
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] "monitor hooks" docs in apache 2.2

Posted by Nick Kew <ni...@webthing.com>.
On Sunday 12 February 2006 14:07, Boysenberry Payne wrote:
> Other than the initial blurb about it I could only find general hook
> info here:
>
> http://httpd.apache.org/docs/2.0/developer/hooks.html

FWIW, given that it's dated 1999, that document is surprisingly
up-to-date and still valid for the hooks available in the apache core.

But it would not be quite such a good reference for third-party modules,
for which optional hooks are more likely to be appropriate.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] "monitor hooks" docs in apache 2.2

Posted by Boysenberry Payne <bo...@humaniteque.com>.
Other than the initial blurb about it I could only find general hook 
info here:

http://httpd.apache.org/docs/2.0/developer/hooks.html

If you find something more, let me know, seems like a very useful hook 
to hack...

Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Feb 12, 2006, at 7:48 AM, Jacqui Caren wrote:

>  'monitor hooks' feature of apache2.2


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org