On Sep 6, 2005, at 11:33 AM, Perrin Harkins wrote:
Two separate instances with mod_perl 1 or mod_perl 2 in prefork
MPM. It
may be possible to set up pooling of interpreters to get a similar
benefit without multiple servers when using mod_perl 2 with
threads, but
I haven't tried this.
To elaborate:
The benefit of the proxy setup is that you have a stripped down
'vanilla' apache serving static files and proxying to a tricked out
mod_perl apache, which uses considerably more memory per process. By
running the proxy, vanilla apache serves static files super fast and
essentially serves mp2 content off of the proxied server as static.
the mp2 server only has to work on generating dynamic content and is
more often available to do that then if it were constantly using a
connection to server static files.
if you run both off of a virtualhost, then you're just having an
apache configuration proxying to itself (which should be slower than
either using 2 different apaches or just using a virtual host without
proxy)
You don't need to use apache as a the proxy though - you could use
squid or lighttpd
There's a really good discussion of this in Practical mod_perl By
Stas Bekman, Eric Cholet