Failover but not loadbalanced

Hi ,

Can I deploy a webapp or application on two nodes in a cluster such that they are the whole webapp is failed over when one node goes down , but the app is not load balanced. That is I want the webapp to work only on one node at a time. When this node goes down , all requests to the webapp are routed to the next node only , even if node one were to be recovered after some time.

[405 byte] By [709287] at [2007-11-25 4:58:26]
# 1

No, there is no easy way to have failover without loadbalancing. But, assuming that you are only using one application, you may be able to get close.

Setup loadbalancing with weighted round robin and assign the "primary" with a very large weight. (You may even be able to assign the "secondary" a weight of zero, but I haven't tested this.) Then setup the application with sticky loadbalancing.

This will force nearly all of the requests to be sent to the primary. But in a failover condition all requests will be sent to the remaining server. The sticky loadbalancing will enforce your second requirement: that once node 1 resumes that requests continue to node 2.

708857 at 2007-6-29 9:14:11 > top of Java-index,Application & Integration Servers,Application Servers...