0 Replies Latest reply on Aug 22, 2007 4:59 AM by Guofeng Zhang

    The master shut down, but the first access to slave is very

    Guofeng Zhang Novice

      Apache HTTPD 2.2.4, mod_jk 2.2.4, JBoss 4.0.4 GA

      I configured the mod_jk to work in the failover mode.

      I shut down the master machine first, then I access my application. I think the mod_jk shoud direct my request immediately to the salve machine. but it takes about one minute to do it.

      What is wrong with my worker properties? How to solve it?

      Thanks for your help very much.

      The following is the content of worker.properties.

      # Define list of workers that will be used
      # for mapping requests
      worker.list=loadbalancer,status
      
      # Define Master
      worker.master.host=192.168.225.195
      worker.master.port=8009
      worker.master.type=ajp13
      worker.master.lbfactor=1
      worker.master.cachesize=10
      worker.master.cache_timeout=600
      worker.master.socket_timeout=180
      worker.master.recycle_timeout=100
      worker.master.prepost_timeout=50
      worker.master.recovery_options=0
      
      # Define prefered failover node for master
      worker.master.redirect=slave
      
      # Define Slave
      worker.slave.host= 192.168.225.116
      worker.slave.port=8009
      worker.slave.type=ajp13
      worker.slave.lbfactor=1
      worker.slave.cachesize=10
      worker.slave.cache_timeout=600
      worker.slave.socket_timeout=180
      worker.slave.recycle_timeout=100
      worker.slave.prepost_timeout=50
      worker.slave.recovery_options=0
      
      #Disable slave for all requests except failover
      worker.slave.activation=disabled
      
      # Load-balancing behaviour
      worker.loadbalancer.type=lb
      worker.loadbalancer.balance_workers=master, slave
      worker.loadbalancer.sticky_session=1
      
      # Status worker for managing load balancer
      worker.status.type=status