I need to have the following setup for an application
Apache HTTP Server Tomcat Node A Tomcat Node B
I need to load balance the two tomcat instances in such a way that
-initially all requests should go to nodeA.
-only in case Node A is down, requests should start going to NodeB.
-in no scenario should both nodes be serving the requests at the same time.
I am unable to understand what values should I configure for lbfactor
for such a setup.
There is a similar question HTTP Load Balancing - rdirect only if first worker fails using mod_jk but it does not have any answers.