httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: new watchdog module
Date Wed, 04 Feb 2009 16:29:48 GMT
Mladen Turk wrote:

> I would like to commit this module to trunk.
> It's a watchdog module that creates a worker threads
> either in parent, child via an API, and it's not for
> standalone use, but for other module usage like
> mod_heartbeat, probably mod_jk and others that need
> maintenance threads.
> 
> The reason is because couple of modules would benefit
> from this functionality, and this adds a common API.
> 
> Usage is very simple
> 1. ap_watchdog_get_instance
> 2. set singleton mode (only one child will execute)
> 3. register a callback(s) with desired interval
> 
> Module can either use pre-created watchdog instance
> or create it's own in special cases thus creating
> additional thread(s)
> 
> For example heartbeat would be by an order of magnitude
> simpler (I took some concepts from it)
> Also I'd love to register the callbacks for balancer
> so transferred method can normalize the load.
> 
> Comments?

A huge +1.

The availability of this API will help mod_cache and friends to keep the 
  cache cleaned without expecting the admin to jump through hoops, and 
mod_session_dbd needs this to clean up expired sessions from time to time.

Regards,
Graham
--

Mime
View raw message