terracha
journeyman
Joined: 09/14/2012 09:12:06
Messages: 32
Offline
|
Hi,
We are using Terracotta for 2 webservers with 3 tomcat instances each. Our application fails over when we kill the tomcat used and that we jump to another tomcat on the same web server.
However, if i start on web01 and kill all tomcat instances on web01, I don't fail over to web02. Is this by design or is this likely a configuration issue?
Thanks,
TerraCha
|
terracha
journeyman
Joined: 09/14/2012 09:12:06
Messages: 32
Offline
|
I believe I know what the issue is. I'm not sure if this is the standard configuration others would use with multiple web servers, apache and mod_jk.
I believe our issues stems from the fact that subsequent requests from a user after logging in usually go to the same web server. Therefore, we will chose to make sure that all requests for a specific user always go to the same web server.
The only way I see to get around this is that in our workers.properties file for both webservers, we would need all tomcat instances in both so that mod_jk could realize if all tomcat instances on a server are not working, Ie:
workers.properties:
worker.list=w1lbworker
worker.w1worker1.type=ajp13
worker.w1worker1.host=localhost
worker.w1worker1.port=8009
worker.w1worker1.connection_pool_timeout=10
worker.w1worker1.lbfactor=1
worker.w1worker2.type=ajp13
worker.w1worker2.host=localhost
worker.w1worker2.port=8010
worker.w1worker2.connection_pool_timeout=10
worker.w1worker2.lbfactor=1
worker.w1worker3.type=ajp13
worker.w1worker3.host=localhost
worker.w1worker3.port=8011
worker.w1worker3.connection_pool_timeout=10
worker.w1worker3.lbfactor=1
worker.w2worker4.type=ajp13
worker.w2worker4.host=2ndwebserver
worker.w2worker4.port=8009
worker.w2worker4.connection_pool_timeout=10
worker.w2worker4.lbfactor=1
worker.w2worker5.type=ajp13
worker.w2worker5.host=2ndwebserver
worker.w2worker5.port=8010
worker.w2worker5.connection_pool_timeout=10
worker.w2worker5.lbfactor=1
worker.w2worker6.type=ajp13
worker.w2worker6.host=2ndwebserver
worker.w2worker6.port=8011
worker.w2worker6.connection_pool_timeout=10
worker.w2worker6.lbfactor=1
worker.w1lbworker.type=lb
worker.w1lbworker.balance_workers=w1worker1, w1worker2, w1worker3, w2worker4, w2worker5, w2worker6
worker.w1lbworker.sticky_session=True
TerraCha
|