Existing connexion on Apache and mod_proxy_balancer don't fail over second JBoss node
        Posted  
        
            by 
                Jean-Rémy Revy
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by Jean-Rémy Revy
        
        
        
        Published on 2012-09-24T12:00:53Z
        Indexed on 
            2012/11/01
            11:03 UTC
        
        
        Read the original article
        Hit count: 514
        
I have a Jboss farm, load balanced by Apache HTTP + mod_proxy_balancer and mod_proxy_ajp, with the following configuration :
<VirtualHost *:80>
    ServerName web-gui-acceptance.myorg.com
    ServerAlias web-gui-acceptance
    ProxyRequests Off
    ProxyPass /web-gui balancer://jbosscluster/web-gui stickysession=JSESSIONID nofailover=On
    ProxyPassReverse /web-gui http://srvlnx01.myorg.com:8080/web-gui
    ProxyPassReverse /web-gui http://srvlnx02.myorg.com:8080/web-gui
    <Proxy *>
      AuthType Kerberos
      [...]
    </Proxy>
    <Proxy balancer://jbosscluster>
        BalancerMember ajp://srvlnx01.myorg.com:8009 route=SRVLNX01_node1
        BalancerMember ajp://srvlnx01.myorg.com:8009 route=SRVLNX02_node1
        ProxySet lbmethod=byrequests
    </Proxy>
</VirtualHost>
When the first JBoss node fail (the hosting VM is down), my existing connexions don't fail over the second node ... the fist route is keeped (in table / .shm ?) and that provide me 503 errors.
Can someone tell me what I missed ?
© Server Fault or respective owner