0 Replies Latest reply on Mar 23, 2004 2:07 PM by zhangj

    failover doesn't work in my cluster

    zhangj

      I set up 2 jboss3.2.3 in one cluster,and use apache2 as web server,use jk2 as connector
      I config the worker.properties like
      [config:]
      file=C:/Program Files/Apache Group/Apache2/conf/workers2.properties
      debug=0
      debugEnv=0

      [shm]
      file=C:/Program Files/Apache Group/Apache2/logs/jk2.shm
      size=1048576

      # The load balancer
      [lb:lb]
      stickySession=0

      # Server 1, override port and host.
      [channel.socket:penpc06:8009]
      port=8009
      host=penpc06
      tomcatId=penpc06
      graceful=0
      disabled=0

      # Server 2, override port and host.
      [channel.socket:penpc30:8009]
      port=8009
      host=penpc30
      tomcatId=penpc30
      graceful=0
      disabled=0

      # define worker for server 1
      [ajp13:penpc06:8009]
      channel=channel.socket:penpc06:8009
      group=lb

      # define worker for server 2
      [ajp13:penpc30:8009]
      channel=channel.socket:penpc30:8009
      group=lb

      # Uri mapping
      [uri:/webflex/*]
      group=lb

      also,on each jboss server,I set
      <Engine jvmRoute=”penpc06” name=”MainEngine” defaultHost=”localhost”>

      or
      <Engine jvmRoute=”penpc30” name=”MainEngine” defaultHost=”localhost”>

      every thing works fine,I can see both server hit if I open 2 browsers

      but once I shut down one jboss by close the window,the web application r which connect to this jboss doesn't work if the page need session.looks like the session didn't replicated to another jboss server.I have to ask the user login again.
      how can I make the session failover work?