This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes How to configure Apache Tomcat load balancing for the below scenario Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to configure Apache Tomcat load balancing for the below scenario" Watch "How to configure Apache Tomcat load balancing for the below scenario" New topic
Author

How to configure Apache Tomcat load balancing for the below scenario

Abdul aariz
Greenhorn

Joined: Dec 23, 2011
Posts: 2
1. User tries to access the App
2. Apache server should redirect the request to 2 different Apps based on the following condition

2.1 If the request comes from 192.168.10.XXX series it should redirect to App1
2.2 If the request comes from 192.168.100.XXX series it should redirect to App2
2.3 If any one App is down the Apache server should send the reuqest to the running App

For Eg:
2.3.1 If a request is coming from 192.168.100.XXX series and App2 is down then the Apache server should
redirect to App1
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

So what's the question?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Abdul aariz
Greenhorn

Joined: Dec 23, 2011
Posts: 2
How to configure the above setup
I want know the details steps to configure the above setup
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15964
    
  19

It would be better to route requests based on actual loads rather than simply on which source network address they came from. Otherwise, one server can end up swamped while the other is idle, and since "swamped" isn't the same thing as "down", your fallback case wouldn't apply.

However, you should be able to employ Apache's mod_rewrite rules to rewrite the incoming URLs based on the source network.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to configure Apache Tomcat load balancing for the below scenario
 
Similar Threads
How to replicate sessions between two web applications on the same tomcat?
was5 IBMhttpserver
Redirecting context paths in Tomcat 5.5
Session problem!
Calling RPC present in different server