force apache to always rebalance to same box for different tomcat contexts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi,

I am having a serious issue for which I could not find solution.
The configuration:

Apache: 2.2 serving as load balancer as well

workers.properties
worker.list=balancer

worker.engine1.port=10001
worker.engine1.host=localhost
worker.engine1.type=ajp13
worker.engine1.lbfactor=1

#worker.engine2.port=10002
#worker.engine2.host=localhost
#worker.engine2.type=ajp13
#worker.engine2.lbfactor=1

#worker.engine3.port=10003
#worker.engine3.host=localhost
#worker.engine3.type=ajp13
#worker.engine3.lbfactor=1

worker.balancer.type=lb
worker.balancer.sticky_session=1
worker.balancer.sticky_session_force=1
worker.balancer.balance_workers=engine1,engine2,engine3

Cluster of three Tomcat 6 instances with ajp connector with two webapps without session serialization e.g.

<Connector
port="10001"
redirectPort="10011"
connectionTimeout="-1"
protocol="AJP/1.3">
</Connector>

<Context path="/webapp1" distributable="false">
</Context>
<Context path="/webapp2" distributable="false">
</Context>

The problem is that once user logs in into webapp1 and goes to link to webapp2, it's not guarantied that he will go to same box as webapp 1. This results in session lost and sometimes Principal is not correctly setup. Using session serialization is not an option because sessions used in webapp1/webapp2 are very heavy and it results in awfull performance.

Is there a way to force apache to always rebalance to same box for different tomcat contexts?

Thanks,
Andrey.


---

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux