开发者

Session affinity on load balancer

We have a situation, where we are talking to a set of app servers(B) directly from another application(A). Since both are within the same SAN, we are making the httpClient Call directly connecting to application servers(from A to B) . For scaling purposes, we have put a load balancer in between(httpclient requests from A to B), but we want to make the subsequent requests goto same JVM on application(B). Hence we are looking if we can configure session affinity on load balancer, if you have experiences or insight on how t开发者_高级运维his problem can be solved please let me know.


The most common way is to use a cookie like JSESSIONID to guide the load balancer.

With Apache + mod_proxy_balancer for example, define it like this:

ProxyPassMatch /.* balancer://mycluster stickysession=JSESSIONID|jsessionid

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜