WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

Load balancing 2 WAS 6.1 Base version

  • 1.  Load balancing 2 WAS 6.1 Base version

    Posted 08/11/10 10:39 AM
    Load balancing 2 WAS 6.1 Base version

    --------------------------------

    I am trying to load balance two WAS servers using Apache mod_proxy as webserver. Below is the apache conf:

    #HTTP Server

    ProxyPassReverseCookieDomain .abc.com .abc.com


    BalancerMember http://was1:8080 route=ld1
    BalancerMember http://was2:8080 route=ld2



    ProxyPass balancer://app_serv_pool/serv/xyz/appweb stickysession=JSESSIONID nofailover=On
    ProxyPassReverse balancer://app_serv_pool/serv/xyz/appweb
    ProxyPassReverse http://was1:8080/serv/xyz/appweb
    ProxyPassReverse http://was2:8080/serv/xyz/appweb


    RewriteEngine On
    RewriteRule .* - [CO=JSESSIONID:balancer.ld1]
    RewriteRule .* - [CO=JSESSIONID:balancer.ld2]

    This config does not maintain session affinity. Can someone please point out what I am doing wrong and what should be the right configuration?

    --------------------------------

    Posted By: vangogh78 at Feb 17 2010 7:30PM