HAProxy loadbalancing HTTP and session switching

We are exploring whether HAProxy can be used to balance the load on multiple tomcat servers. We would like to use HTTP for all requests and use sessions through the JSESSIONID cookie. HAProxy does not support SSL natively, but we can use stunnel in front of it.

Given this setting:

1) Do I need to use sticky sessions (the subsequent request always goes to one tomcat instance)?

2) If we need to use sticky sessions, then how can we decide to upgrade our tomcat instance with a new webapp deployment without forcing users to log out (lose sessions)?

+3
source share
1 answer

, , , http://tomcat.apache.org/tomcat-7.0-doc/config/manager.html (, JDBC). , , Redis Memcache, .

, , , - ( ). .

+4

All Articles