Re: mod_perl shared perl instances?

2000-04-08 Thread Leslie Mikesell

According to Soulhuntre:

> > My favorite is throwing a proxy in front...
> 
> The issue in question was getting the perl core out of the address space of
> the httpd process entirely :)
> 
> Velocigen does this nicely (though there is a performance penalty) and even
> allows degicated machines runnign the perl services that talk to the
> webserver over sockets.

Look at the problem from the opposite direction.  There is not
that much overhead in including http in the perl processes
actually doing the work, and (unsurprisingly...) http turns
out to be a reasonable protocol to forward http requests
instead of inventing something else.  So, consider mod_perl
to be the backend perl process with a non-mod_perl frontend
using ProxyPass and/or RewriteRules to talk to it amd
you end up with the same thing, except more flexible, with
a single config file style, and the ability to test the backend
with only a browser.

  Les Mikesell
   [EMAIL PROTECTED]



RE: mod_perl shared perl instances?

2000-04-08 Thread Soulhuntre

Hiya :)


> -Original Message-
> From: Joshua Chamas [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, April 08, 2000 1:12 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: mod_perl shared perl instances?
>
> Nothing really to be done, but you should note that if you make
> ample use of PerlModule and Apache::ASP->Loader to precompile
> modules and scripts, your processes will be much lighter.  Then,
> you have many options for decreasing the number of mod_perl
> httpds.  My favorite is throwing a proxy in front...

The issue in question was getting the perl core out of the address space of
the httpd process entirely :)

Velocigen does this nicely (though there is a performance penalty) and even
allows degicated machines runnign the perl services that talk to the
webserver over sockets.

Ken

---
Soulhuntre

(icq# 275066)
http://www.soulhuntre.com - my world
http://www.dotpublishing.com - my income
http://www.virtualchemy.com - my company
http://www.the-estate.com - my passion




Re: mod_perl shared perl instances?

2000-04-07 Thread Joshua Chamas

Soulhuntre wrote:
> 
> Hiya :)
> 
> OK... mod_perl embeds an instance of Perl inside the Apache system, and with
> Apache::ASP allows us to mix perl/html. Good :)
> 
> The problem is that these processes are 'heavy'.
> 
> Is there any way to simulate the actions of "Velocigen" in that we could
> have a few (configurable number) of perl's running that round robin to work
> with Apache::ASP to render pages?
> 
> This should also seperate out the systems a bit for stability.
> 

Nothing really to be done, but you should note that if you make
ample use of PerlModule and Apache::ASP->Loader to precompile
modules and scripts, your processes will be much lighter.  Then,
you have many options for decreasing the number of mod_perl 
httpds.  My favorite is throwing a proxy in front...

  http://perl.apache.org/guide/strategy.html#Adding_a_Proxy_Server_in_http_Ac

... though lots of people prefer it the way Gunther suggested.

--Joshua
_
Joshua Chamas   Chamas Enterprises Inc.
NodeWorks >> free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com1-714-625-4051



Re: mod_perl shared perl instances?

2000-04-06 Thread Gunther Birznieks

Yeah...

http://perl.apache.org/guide/strategy.html#One_Plain_Apache_and_One_mod_per

Soulhuntre wrote:

> Hiya :)
>
> OK... mod_perl embeds an instance of Perl inside the Apache system, and with
> Apache::ASP allows us to mix perl/html. Good :)
>
> The problem is that these processes are 'heavy'.
>
> Is there any way to simulate the actions of "Velocigen" in that we could
> have a few (configurable number) of perl's running that round robin to work
> with Apache::ASP to render pages?
>
> This should also seperate out the systems a bit for stability.
>
> Ken
>
> ---
> Soulhuntre
>
> (icq# 275066)
> http://www.soulhuntre.com - my world
> http://www.dotpublishing.com - my income
> http://www.virtualchemy.com - my company
> http://www.the-estate.com - my passion




mod_perl shared perl instances?

2000-04-06 Thread Soulhuntre

Hiya :)

OK... mod_perl embeds an instance of Perl inside the Apache system, and with
Apache::ASP allows us to mix perl/html. Good :)

The problem is that these processes are 'heavy'.

Is there any way to simulate the actions of "Velocigen" in that we could
have a few (configurable number) of perl's running that round robin to work
with Apache::ASP to render pages?

This should also seperate out the systems a bit for stability.

Ken

---
Soulhuntre

(icq# 275066)
http://www.soulhuntre.com - my world
http://www.dotpublishing.com - my income
http://www.virtualchemy.com - my company
http://www.the-estate.com - my passion