httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cliff Skolnick" <>
Subject RE: Apache 2 mutiple pools feature request
Date Sat, 06 Mar 1999 02:18:24 GMT

> Rather than trying to spawn the different httpd "pools" from a single
> invocation of the server, would having the single config file but with
> multiple invocations be good enough?

It would depend...  I think a major issue here is to be able to give a
virtual host it's own address space as apache moves to a multi-threaded
model.  As the use of modules like mod_php and mod_perl grows there would be
a risk of a bug that would bring down a whole bunch of threads and their
associated requests.  This would not be acceptable for a large ISP running a
shared server.  Even IIS4.0 will let you run certain sites in their own
address space, probably because of the real possibility of a buggy .asp page
taking down multiple requests.

With 5000 web sites on a large server, I would have to run 5000 processes in
your model all the time.  I would much rather the server see that this vhost
gets it's own address space (process pool) and looks to see if there is an
active process handling the pool.  If there is a process hand off the
request, and if not fork() a process to handle the request.  The ability to
fork multiple processes for a busy pool, and to reap inactive pools to zero
processes would need to be a goal.


> If so, I think <IfDefine> would do the job
> On Mon, Mar 01, 1999 at 12:54:20AM -0500, Rasmus Lerdorf wrote:
> [major snippage all over the place]
> > Something like:
> > <Pool web1>
> > User web1
> > </Pool>
> >
> > <Pool web2>
> > User web2
> > </Pool>
> >
> > <VirtualHost My.Host>
> > ServerName My.Host
> > Pool web1
> > </VirtualHost>
> This could be done using:
> <IfDefine web1>
> Listen
> <VirtualHost My.Host>
> ServerName My.Host
> User web1
> </VirtualHost>
> </IfDefine>
> <IfDefine web2>
> Listen
> <VirtualHost The.Other.Guys.Host>
> ServerName The.Other.Guys.Host
> User web2
> </VirtualHost>
> </IfDefine>
> Then you run:
> httpd -Dweb1
> httpd -Dweb2
> Does this work? Naturally, you still don't get support for different
> pools listening on the same socket.
> --
> Manoj Kasichainula - manojk at io dot com -
> "How can one live in this age and not be curious?" -- Charles Krauthammer

View raw message