[Zope] Running ZopeHTTPServer and PCGI together = a bad thing?
Jim Fulton
jim@digicool.com
Fri, 04 Jun 1999 18:40:20 -0400
Michel Pelletier wrote:
>
(snip)
> A wafer-thin CGI program is forked for every request, this is used to
> connect up Apache and the Zope long running process. So yes, this
> expensive fork happens for every request.
It's not *that* expensive. This is a very thin wrapper.
> It's no different, however, then other CGI overhead.
It's reallu much lower than typical CGI overhead. Most CGI
scripts are written using interpreters (e.g. sh, perl, Python).
Cranking up an interpreter is much more expensive than cranking up
the pcgi_wrapper.
> One of these days, someone is going to write a
> mod_pcgi module for Apache, and take that expensive fork out. For light
> loads, it's really not noticeable, but for heavy loads, one fork per
> request gets heavy.
I think a site could sustain a million hits a day using pcgi on moderately
fast hardware.
> ZServer is noticably faster in this regard than
> Apache.
True. An an apache module would definately be a good thing.
BTW, ZServer supports PCGI, so you *can* use Apache+PCGI+ZServer.
This is useful, for example, if you want to use Apache to do SSL
while using ZServer for other HTTP requests and FTP.
Jim
--
Jim Fulton mailto:jim@digicool.com Python Powered!
Technical Director (888) 344-4332 http://www.python.org
Digital Creations http://www.digicool.com http://www.zope.org
Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission. Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.