httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <>
Subject Re: proxy_worker_stat in mod_proxy
Date Sun, 09 Jul 2006 14:44:06 GMT
Jean-frederic Clere wrote:
> Hi,
> I am looking in mod_proxy and I think that proxy_worker_stat of 
> proxy_worker should be replaced by some void * to allow to write new 
> balancers.
> The idea is each worker needs to point to the view the balancer of its, 
> but only the balancer needs to know the structure it needs to make the 
> balancing.
> Comments?

The current design is to allow for additional lb methods to be added
easily, without low level code changes. When I added the provider
impl, I also added some void * to the end of the various data
structs, the intent being if these providers needs additional info
for data storage, they could create them (via tables or APR shared
memory segments) and access them via the *context pointers.

One feature that I'm looking into, but holding off on since others
have expressed interest in doing some code work in some changes,
is added a 'lbload' parameter and an additional provider that
sole purpose is to calculate the the "load" of that particular
worker in whatever method makes the most sense. Thus, the
load calculation itself is "external" same as the "fine the
best worker" impl as well.

   Jim Jagielski   [|]   [|]
	    "If you can dodge a wrench, you can dodge a ball."

View raw message