Right now I am using Apache2 proxy_pass as load balancer for my Jive8 nodes. It is configured as roundrobin with session affinity.
Here is my config:
BalancerMember http://126.96.36.199:8080 route=AppNode1 loadfactor=1
BalancerMember http://188.8.131.52:8080 route=AppNode2 loadfactor=1
ProxySet lbmethod=byrequests stickysession=JSESSIONID|jsessionid
ProxyPass / balancer://cluster/
ProxyPass http://184.108.40.206 http://220.127.116.11:8080
ProxyPass http://18.104.22.168 http://22.214.171.124:8080
ProxyPassReverse / http://126.96.36.199:8080
ProxyPassReverse / http://188.8.131.52:8080
But session affinity is not working somehow. When I login to Jive node changes almost every time I refresh the page.
Where am I wrong?
Hi Igor B,
you need to set the corresponding Jive property on each AppNode like so: jive set webapp.app_cluster_jvmroute AppNode1 (see Configuring Session Affinity on a Load Balancer ).
Otherwise the loadbalancer adds your AppNode1 string to each JSESSIONID, but the application wont understand this and will generate a new JSESSIONID for each request (because the other one can not be found), which is obviously the case in your current setup.
Hope this makes sense,