1 Reply Latest reply on Mar 18, 2006 2:19 AM by Rajesh

    Sticky session is not working always in Cluster

    praneeth reddy Newbie

      Hi,
      I have configured apache with jboss using mod_jk . I am using 4 servers in the JBoss cluster.

      My worker.properties file:

      # Define list of workers that will be used
      # for mapping requests
      worker.list=loadbalancer,status

      # Define Node1
      # modify the host as your host IP or DNS name.
      worker.node1.port=8009
      worker.node1.host=node1-IP
      worker.node1.type=ajp13
      worker.node1.lbfactor=1
      worker.node1.cachesize=10

      # Define Node2
      # modify the host as your host IP or DNS name.
      worker.node2.port=8009
      worker.node2.host=node2-IP
      worker.node2.type=ajp13
      worker.node2.lbfactor=1
      worker.node2.cachesize=10

      # Define Node3
      # modify the host as your host IP or DNS name.
      worker.node3.port=8009
      worker.node3.host=node3-IP
      worker.node3.type=ajp13
      worker.node3.lbfactor=1
      worker.node3.cachesize=10

      # Define Node4
      # modify the host as your host IP or DNS name.
      worker.node4.port=8009
      worker.node4.host=node4-IP
      worker.node4.type=ajp13
      worker.node4.lbfactor=1
      worker.node4.cachesize=10

      # Load-balancing behaviour
      worker.loadbalancer.type=lb
      worker.loadbalancer.balance_workers=node1,node2,node3,node4
      worker.loadbalancer.sticky_session=1
      #worker.list=loadbalancer

      # Status worker for managing load balancer
      worker.status.type=status

      Since sticky_session=1 Apache is forwarding all the requests from a user to the same JBoss node(node1). But If this node goes down, Apache is forwarding few requests(from same USER) to node2 and few requests to node3. How to Configure Apache to send all requests to same node?

      Thanks