httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian ...@dere.at>
Subject Re: [users@httpd] mod_proxy_balancer
Date Mon, 23 Apr 2007 08:38:02 GMT
Hi Ryan,

thanks for your response.

yes,
jvmRoute is already configured and running.
my problem (or the one of the developers writing the application) is,
that there are some checks performed on every single request.
The result of these checks are needed for the next request (with
different sessionID) of the same server and so on.
For performance reasons, these results are not written to database but
stay in the cache of the application.

i know, that routing per source ip is not really reliable regarding
proxy servers etc.
but this is exactly what i want to do within my system.
my servers are only contacted by other servers, which have mainly own
ip-addresses.
traffic analysis has shown that routing per source IP would result in a
fair load-balancing and would solve some problems in application
development.

Christian

Ryan Murray wrote:
> Christian,
> 
> Unless I misundertsood your question, this is typically done using the
> "jvmRoute" parameter in the Tomcat configuration (check the Tomcat docs for
> how to use this parameter).  In this way, session IDs are suffxied with a
> unique id for each Tomcat and clients are always routed to the same Tomcat
> for the life of their session.
> 
> Routing by source IP alone can be somewhat unreliable if you have many
> clients coming through a single proxy such as from many ISPs, NAT
> translation or from a VPN concentrator.
> 
> Ryan
> 
> -----Original Message-----
> From: Christian [mailto:cb@dere.at] 
> Sent: Friday, April 20, 2007 9:56 AM
> To: users@httpd.apache.org
> Subject: [users@httpd] mod_proxy_balancer
> 
> hi,
> 
> i am using apache 2.2.4 with mod_proxy_balancer and mod_proxy_ajp.
> both working fine using the lbmethod byrequest.
> 
> is there a possibility to change the lbmethod to something like bySourceIP ?
> 
> what i want to do, is to send requests from one client only to one backend
> tomcat server as long as this tomcat is online / reachable.
> 
> for example pen (http://siag.nu/pen/) behaves like this.
> is there any possibility to configure apache to do this ?
> 
> thanks in advance for your input.
> 
> Christian
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message