tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Rossbach ...@objektpark.de>
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.

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             glenn@more.net | /* Spelin donut madder    |
>MOREnet System Programming               |  * if iz ina coment.      |
>Missouri Research and Education Network  |  */                       |
>----------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
>
>
>  
>





---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message