Can one tomcat instance (with an ajp connector) be accessed by two different loadbalancers (httpd+mod_jk)?
Thanks!
Can one tomcat instance (with an ajp connector) be accessed by two different loadbalancers (httpd+mod_jk)?
Thanks!
Possible but futile, in fact completely pointless. The load balancers won't know about each other, so they will make wrong decisions about the load on the Tomcat in question, so they won't load-balance at all. Instead they will overload the shared Tomcat.
I guess that you're going to build Tomcat servers with high availability, something like this:
+------------+ (VIP) +------------+
| Apache 1 |---------| Apache 2 |
+------------+ +------------+
|(mod_jk) |(mod_jk)
+---------------------------+
| |
+-----------+ +-----------+
| Tomcat 1 | | Tomcat 2 |
+-----------+ +-----------+
If so, I'm pretty sure you can because at a momment, you'e working with only one LB via virtual IP.
I have several customers using Equalizer hardware load balancers in front of Apache/Tomcat in exactly this configuration. Does your application have any persistence requirements (Client must always be directed to the same server)? If yes, configuring the LBs persistence properly is the only potential issue I can see. You should be on safe ground.