Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load Balancing and Failover

Status
Not open for further replies.

rjowens

Vendor
Jul 2, 2010
1
US
I have Apache Http Server v2.2.3 configured as a reverse proxy with load balancing to a WADI clustered application on Geronimo 2.1.5. Load balancing and failover works fine if one of the Geronimo instances fail. However, if only the application fails or is stopped I get a 404 error and failover does not work?

Here’s the LB config:

<IfModule mod_proxy_balancer.c>
<Proxy balancer://wadicluster>
Order deny,allow
Allow from all
BalancerMember ajp://localhost:8209/NodeDetection loadfactor=50 route=node1
BalancerMember ajp://localhost:8409/NodeDetection loadfactor=50 route=node2
</Proxy>
ProxyPass /NodeDetect balancer://wadicluster stickysession=JSESSIONID

ProxyPassReverse /NodeDetect ajp://localhost:8209/NodeDetect
ProxyPassReverse /NodeDetect ajp://localhost:8409/NodeDetect

<Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Allow from all
</Location>

</IfModule>

I need to make this work with an application failure as well as a server failure. Any ideas? Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top