Apache with Sticky Session,connects to the Weblogic server that is down (not running)

Discussion in 'Apache' started by patnim17, Mar 22, 2011.

  1. #1
    Hi,
    We have configured an Apache instance on server 1 (as load balancer) to connect to my application which is deployed in weblogic cluster, on server X and server Y. We have enabled the Sticky Session on the Apache server (Server1) as this is needed for our application.

    As part of session replication, I have configured the weblogic.xml for MyApplication (hosted in weblogic servers) as follows:
    <session-descriptor>
    <timeout-secs>5400</timeout-secs>
    <invalidation-interval-secs>60</invalidation-interval-secs>
    <id-length>52</id-length>
    <tracking-enabled>true</tracking-enabled>
    <cookies-enabled>true</cookies-enabled>
    <cookie-name>MYAPP_SESSIONID</cookie-name>
    <cookie-comment>WebLogic Server Session Tracking Cookie</cookie-comment>
    <cookie-max-age-secs>-1</cookie-max-age-secs>
    <persistent-store-type>REPLICATED_IF_CLUSTERED</persistent-store-type>
    </session-descriptor>

    And the Apache configuration (httpd.conf) I have the entry to connect to the weblogic cluster like this (the IP Address is for weblogic Server X and Y resp.):

    <Location /DEV/MyTestApp>
    SetHandler weblogic-handler
    WebLogicCluster 15.31.82.7:7205,15.31.82.8:7205
    WLIOTimeoutSecs 90
    Idempotent ON
    FileCaching ON
    MatchExpression *.action
    MatchExpression *.jsp
    PathTrim /DEV
    </Location>


    Now, to perform the failover and session replication testing, I connect to my application using the Apache load balanced URL. Since the Sticky session is enabled, my HTTP request connects to Server X (weblogic server, I ensured it). But when I shut down the Server X and send another HTTP request, the apache server is still trying to connect to Server X weblogic server which is down (even the 2nd and 3rd requests). It is supposed to go to the Server Y weblogic Server, but apparently it is not.

    Any help, to check configuration on weblogic or Apache configurations tha I might be missing..would be helpful.
     
    patnim17, Mar 22, 2011 IP