Re: get apache's concurrent connection number

2007-11-26 Thread Perrin Harkins
On Nov 25, 2007 10:08 PM, yonghua [EMAIL PROTECTED] wrote:
 How to get Apache's concurrent connection number under modperl?
 We have a plan that, when an apache's concurrent connection is large,
 we make the apache to redirect user's new request to another http
 server. So I need to write a mp module to do that.

I think you'd be much better off building this into a proxy server.
There are several that allow customization.  However, the way to
access this information is through Apache::Scoreboard.

- Perrin


Re: get apache's concurrent connection number

2007-11-26 Thread yonghua
On Nov 27, 2007 2:56 AM, Perrin Harkins [EMAIL PROTECTED] wrote:

 I think you'd be much better off building this into a proxy server.
 There are several that allow customization.  However, the way to
 access this information is through Apache::Scoreboard.


Thanks Perrin.
Our application has a large cluster, that's to say, there is an
application, which is running on about 40 linux boxes (each box is a
mirror).And those 40 linux boxes are locatated in different areas.
When a server get high load, we redirect the new requests to other
remote server box.
Will check Apache::Scoreboard. thanks.

--yonghua (Jeff)


Re: get apache's concurrent connection number

2007-11-26 Thread Perrin Harkins
On Nov 26, 2007 8:54 PM, yonghua [EMAIL PROTECTED] wrote:
 Our application has a large cluster, that's to say, there is an
 application, which is running on about 40 linux boxes (each box is a
 mirror).And those 40 linux boxes are locatated in different areas.
 When a server get high load, we redirect the new requests to other
 remote server box.

That sounds like exactly what load balancers are intended for.  With
one like perlbal, you could even write the code to choose where to
send things in perl.

- Perrin


get apache's concurrent connection number

2007-11-25 Thread yonghua
Hello,

How to get Apache's concurrent connection number under modperl?
We have a plan that, when an apache's concurrent connection is large,
we make the apache to redirect user's new request to another http
server. So I need to write a mp module to do that.

Thanks for any guide.


Re: get apache's concurrent connection number

2007-11-25 Thread Roberto C . Sánchez
On Mon, Nov 26, 2007 at 11:08:32AM +0800, yonghua wrote:
 Hello,
 
 How to get Apache's concurrent connection number under modperl?
 We have a plan that, when an apache's concurrent connection is large,
 we make the apache to redirect user's new request to another http
 server. So I need to write a mp module to do that.
 
 Thanks for any guide.

Umm, why would you want to do that?  Why not just use a proper load
balancing solution?

Regards,

-Roberto
-- 
Roberto C. Sánchez
http://people.connexer.com/~roberto
http://www.connexer.com


signature.asc
Description: Digital signature


Re: get apache's concurrent connection number

2007-11-25 Thread Jeff Pang
On Nov 26, 2007 11:16 AM, Roberto C. Sánchez [EMAIL PROTECTED] wrote:



 Umm, why would you want to do that?  Why not just use a proper load
 balancing solution?


because, when redirecting, apache doesn't know the exact location for
that redirection.
apache must do some querying to get the redirected url and then redirect it.