httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: [PATCH] Apache 2.2.x: Implicit creation of new proxy_workers
Date Mon, 17 Sep 2007 10:58:47 GMT
On Mon, 17 Sep 2007 11:33:16 +0200
Axel-St├ęphane  SMORGRAV <Axel-Stephane.SMORGRAV@europe.adp.com> wrote:


> >To be honest I am still not convinced that the dynamic creation of
> >workers is a good idea at all.

Indeedie. 

> I believe I have addressed your concerns in a new patch posted for
> PR#43308 in which I introduce a new configuration directive that
> limits the number of dynamically created workers. During
> configuration I also increment proxy_lb_workers by the value of
> ProxyMaxAddtlWorkers in order (at least I hope) for additional
> scoreboard entries to be allocated...

Instead of limiting the number and thus creating them randomly
(according to what traffic happens to hit the server first),
wouldn't it be better to introduce a configuration directive
to create your choice of those extra workers at startup?

If your config is such that specifying the workers isn't
going to work, then managing them dynamically in a useful
manner is going to be a complex job that should probably
have its own separate module, based on a reslist and a
usage-counting strategy to drop little-used workers.
Or something like that.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

Mime
View raw message