According to Nick Bauman:
> The servlet zones concept also has no parallel in
> mod_perl. That is one of the most compelling reasons
> for load distribution.

Actually there is not much practical difference between
the jserve interface and using mod_proxy (with or
without mod_rewrite) to pass requests to a mod_perl
enabled httpd.  Neither one provides quite everything
you want for load balancing and dead host detection,
but they are better than nothing.  There is a module
that does claim to proxy with good load balancing
(mod_backhand) but I have not had time to see if it
will mesh with mod_rewrite.

> So, the reason you don't allow direct connections to
> your mod_perl system is because of security? You
> didn't explicitly say...

No, just memory use.  The mod_perl httpd is likely to
use 20 megs of memory and may be able to serve hundreds
of requests per second.  However, if you let it talk
directly to a client browser you are at the mercy of
every overloaded router and modem on the internet as to
how long each of those requests actually take to complete.
It is difficult to model a slow client in a benchmark
test, but this is a real problem in production.  The 
jserve interface acts about the same way, but the threaded
java server might not have as much impact anyway.

> I have both loaded as DSOs. I haven't yet encountered
> the ApJServMount and RewriteRules you speak of, as
> this only when you are mucking directly with the
> Apache API, which I haven't needed to yet. In theory
> it should give you added flexibility (at the tradeoff
> of complexity)

My scheme is for the front end httpd to accept and log
everything but deliver only static and unprotected files
itself.  Things that require any processing, including
*.shtml files are proxied through to mod_perl httpds
spread over several machines.  The programs were
written without this scheme in mind (and we encouraged
people to bookmark everything) so the RewriteRules
that force the proxy to the right backends are pretty
ugly and arbitrary.  But, the ApJServMount fits into
this model pretty well and with new development it is
easy enough to map the servlets into a directory.

  Les Mikesell
   [EMAIL PROTECTED]

Reply via email to