tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Rossbach>
Subject Re: mod_jk configure failover
Date Mon, 02 May 2005 16:18:26 GMT
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.


<IfModule !mod_jk.c>
    LoadModule jk_module modules/
JkWorkerProperty worker.list=loadbalancer,jkstatus
JkWorkerProperty worker.node01.type=ajp13
JkWorkerProperty worker.node01.port=7201
JkWorkerProperty worker.node01.cachesize=150
JkWorkerProperty worker.node01.cache_timeout=600

JkWorkerProperty worker.node02.type=ajp13
JkWorkerProperty worker.node02.port=7202
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/"
JkMount /jkstatus jkstatus

At mod_jk 1.2.11 exists also a stopped flag to setup a cold standby.



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.
>Glenn Nielsen    | /* Spelin donut madder    |
>MOREnet System Programming               |  * if iz ina coment.      |
>Missouri Research and Education Network  |  */                       |
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message