Hey Glenn,
a hot standby is very easy. You confgure your nodes inside a loadbalancer and
then disabled some nodes. Very best is, you can configure this with the new
lb status worker.
Example:
<IfModule !mod_jk.c> LoadModule jk_module modules/mod_jk.so </IfModule> JkWorkerProperty worker.list=loadbalancer,jkstatus JkWorkerProperty worker.node01.type=ajp13 JkWorkerProperty worker.node01.port=7201 JkWorkerProperty worker.node01.host=localhost JkWorkerProperty worker.node01.cachesize=150 JkWorkerProperty worker.node01.cache_timeout=600
JkWorkerProperty worker.node02.type=ajp13 JkWorkerProperty worker.node02.port=7202 JkWorkerProperty worker.node02.host=localhost JkWorkerProperty worker.node02.cachesize=150 JkWorkerProperty worker.node02.cache_timeout=600 JkWorkerProperty worker.node02.disabled=false
JkWorkerProperty worker.loadbalancer.type=lb JkWorkerProperty worker.loadbalancer.balance_workers=node01,node02
JkWorkerProperty worker.jkstatus.type=status
JkLogFile logs/mod_jk.log JkLogLevel info # unix only JkShmMem logs/mod_jk.shm
JkMountFile "conf/uriworkermap.properties" JkMount /jkstatus jkstatus
At mod_jk 1.2.11 exists also a stopped flag to setup a cold standby.
s. http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html
regards Peter
Glenn Nielsen schrieb:
Now that local worker is gone from mod_jk how can you configure two app servers where you want one to be the primary and the second one to be used for automatic failover only if the primary is in an error state?
I tried setting lbfactor=1 on the primary and lbfactor=0 on the failover worker but mod_jk sets lbfactor=1 if you configure a value <1.
Thanks,
Glenn
---------------------------------------------------------------------- Glenn Nielsen [EMAIL PROTECTED] | /* Spelin donut madder | MOREnet System Programming | * if iz ina coment. | Missouri Research and Education Network | */ | ----------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
