1 Reply Latest reply on Oct 24, 2016 3:42 AM by Mirko Swillus

    Apache2 Load Balancing

    lopar

      Hi,

       

      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:

      <VirtualHost 100.12.69.1:80>
        ProxyRequests off
        ServerName cluster.local

        <Proxy balancer://cluster>
        BalancerMember http://100.12.69.100:8080 route=AppNode1 loadfactor=1
        BalancerMember http://100.12.69.110:8080 route=AppNode2 loadfactor=1
        ProxySet lbmethod=byrequests stickysession=JSESSIONID|jsessionid
        </Proxy>

        ProxyPass / balancer://cluster/
        ProxyPass http://100.12.69.100 http://100.12.69.100:8080
        ProxyPass http://100.12.69.110 http://100.12.69.110:8080
        ProxyPassReverse / http://100.12.69.100:8080
        ProxyPassReverse / http://100.12.69.110:8080
      </VirtualHost>

       

      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?

      Thanx.