[jboss-user] [Clustering/JBoss] - sticky_session=0 + UseJk=false + HTTP Session Replication

Hellaenergy do-not-reply at jboss.com
Wed Jul 8 15:47:38 EDT 2009


I have a setup with:

Two hardware load balancers -> 2 Apache 2.2 instances running mod_jk
1.2.28 LB w/ sticky_session=0 -> 2 JBossAS 4.2.3 Servers doing HTTP
Session Replication via JBoss Clustering.

* My hardware load balancers are not configured to do sticky sessions
* My Apache 2.2 w/ mod_jk lb workers have sticky_session=0 set (No
Sticky Sessions)

Since I do not have sticky_session enabled do I still need to have
UseJK=true and my jvmRoute value set for mod_jk LB and HTTP Session
Replication to work?

In deploy/jboss-web.deployer/META-INF/jboss-service.xml it reads:

--- SNIP ---
    <!--
     Whether to use MOD_JK(2) for load balancing with sticky session
     combined with JvmRoute. If set to true, it will insert a JvmRouteFilter
     to intercept every request and replace the JvmRoute if it detects a
     failover. In addition, you will need to set the JvmRoute inside
     Tomcat, e.g.,
       Engine name="jboss.web" jmvRoute="Node1" defaultHost="localhost"
     in server.xml.

     For clustering purpose only.
     -->
     false
--- SNIP ---

This suggests to me that unless you are using sticky_session=1 in
mod_jk you shouldn't need to set UseJK to true and/or the jvmRoute. Is this
assumption correct?

If UseJK is set to false does mod_jk LB still work with JBoss? Will
other aspects of jboss clustering still function as they should i.e
session replication?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242473#4242473

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242473



More information about the jboss-user mailing list