IC5Notice: We have upgraded developerWorks Community to the latest version of IBM Connections. For more information, read our upgrade FAQ.
Topic
  • 2 replies
  • Latest Post - ‏2013-01-22T11:13:42Z by SystemAdmin
SystemAdmin
SystemAdmin
37422 Posts

Pinned topic Load Balancing not working with IHS + 2 Websphere servers (6.1)

‏2013-01-22T04:48:41Z |
Hi,
We have deployed one IHS server on one machine and two Websphere servers on two separate hosts.
Although the simple load balancing works fine i.e. before login page,
all static content is delivered in round robin fashion by two websphere servers.
When we login to application(post in login.jsp),the new request is send to second server.
Please find attached the plugin logs from IHS.

The code to create session is simple as below

HttpSession session = request.getSession(true);

What I feel is that when first time login.jsp request is made, WAS is attaching a session with it and
after post request, it is creating new session because of which request is going to second WAS and not first one where post request was sent. Other thing noticed is that after login,server is returning 302 response code. will this be a problem ?
We are not using any session replication mechanism as of now.
Any help will be greatly appreciated.

Thanks in advance.
Rahul S
Updated on 2013-01-22T11:13:42Z at 2013-01-22T11:13:42Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    37422 Posts

    Re: Load Balancing not working with IHS + 2 Websphere servers (6.1)

    ‏2013-01-22T11:10:25Z  
    This issue was resolved after following steps mentioned in the below url

    http://pic.dhe.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=%2Fcom.ibm.websphere.base.doc%2Finfo%2Faes%2Fae%2Ftwsv_configsimplelb.html

    Basically we had not created clone id for each server.
    We created clone id and edited plugin-cfg.xml file.
    Everything worked.!!!

    Thanks
    Rahul
  • SystemAdmin
    SystemAdmin
    37422 Posts

    Re: Load Balancing not working with IHS + 2 Websphere servers (6.1)

    ‏2013-01-22T11:13:42Z  
    This issue was resolved after following steps mentioned in the below url

    http://pic.dhe.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=%2Fcom.ibm.websphere.base.doc%2Finfo%2Faes%2Fae%2Ftwsv_configsimplelb.html

    Basically we had not created clone id for each server.
    We created clone id and edited plugin-cfg.xml file.
    Everything worked.!!!

    Thanks
    Rahul
    Sorry,
    Where is the "binocular" icon to unsubscribe me?
    Thanks