Re: mod_proxy_balancer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx] 
> Sent: Friday, April 20, 2007 9:56 AM
> To: users@xxxxxxxxxxxxxxxx
> Subject:  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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 
> ---------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux