Re: Apache pre-forking

[prev] [thread] [next] [Date index for 2004/08/02]

From: Stuart Johnston
Subject: Re: Apache pre-forking
Date: 16:16 on 02 Aug 2004
Tony Bowden wrote:
> So, IIUC
>  - It's a good idea to pre-load modules in your Apache startup
>  - It's a bad idea to have database connections as part of these
> 
> So how do people marry these two concepts if they're being sufficiently
> lazy to use a driver specific Class::DBI subclass that sets up the
> column info etc at compile time by accessing the database?

I had not been pre-loading modules for a long time because I thought 
these issue were going to cause lots of problems.  I recently started 
testing it and found that it just worked automagically.

I simply added a PerlModule line to the httpd.conf.  A connection is 
made pre-fork to set up the modules and then is disconnected.  When a 
child starts, it creates its own connection.

I don't know if it matters but I am not using the latest module versions:

Class::DBI - 0.92
Class::DBI::Pg - 0.02
Ima::DBI - 0.29


Stuart Johnston
http://vaultranet.com

Apache pre-forking
Tony Bowden 15:35 on 02 Aug 2004

Re: Apache pre-forking
Simon Wilcox 15:43 on 02 Aug 2004

Re: Apache pre-forking
Tim Bunce 21:17 on 02 Aug 2004

Re: Apache pre-forking
Stuart Johnston 16:16 on 02 Aug 2004

Re: Apache pre-forking
Perrin Harkins 17:47 on 02 Aug 2004

Re: Apache pre-forking
Tim Bunce 21:19 on 02 Aug 2004

Re: Apache pre-forking
Perrin Harkins 21:50 on 02 Aug 2004

Re: Apache pre-forking
jason scott gessner 00:06 on 03 Aug 2004

Re: Apache pre-forking
Perrin Harkins 17:33 on 03 Aug 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52