A question about defining LB in workers.properties
am 21.09.2009 15:25:56 von thomas2004Hi all,
I am going to configure a LB in workers.properties. There are 3 workers.
From the example from internet I found I have two alternatives:
Alternative1:
************
worker.list=worker_fathers1
worker.template.connection_pool_timeout=600
worker.template.socket_timeout=120
worker.template.max_reply_timeouts=10
worker.template.reply_timeout=30000
worker.template.lbfactor=1
worker.template.retries=20
worker.template.recovery_options=7
worker.template.sticky_session=True
worker.template.type=ajp13
worker.worker_fathers1.balance_workers=worker_son1,worker_so n2,worker_son3
worker.worker_fathers1.type=lb
worker.worker_fathers1.error_escalation_time=0
worker.worker_son1.reference=worker.template
worker.worker_son1.port=8009
worker.worker_son1.host=web-myApp1.com
worker.worker_son1.redirect=woprker_son2
worker.worker_son2.reference=worker.template
worker.worker_son2.port=8009
worker.worker_son2.host=web-myApp2.com
worker.worker_son2.redirect=woprker_son3
worker.worker_son3.reference=worker.template
worker.worker_son3.port=8009
worker.worker_son3.host=web-myApp2.com
worker.worker_son3.activation=D
Alternative 2:
************
worker.list=worker_fathers1
worker.template.connection_pool_timeout=600
worker.template.socket_timeout=120
worker.template.max_reply_timeouts=10
worker.template.reply_timeout=30000
worker.template.lbfactor=1
worker.template.retries=20
worker.template.recovery_options=7
worker.template.sticky_session=True
worker.template.type=ajp13
worker.worker_fathers1.balance_workers=worker_son1,worker_so n2,worker_son3
worker.worker_fathers1.type=lb
worker.worker_fathers1.error_escalation_time=0
worker.worker_son1.reference=worker.template
worker.worker_son1.port=8009
worker.worker_son1.host=web-myApp1.com
worker.worker_son1.activation=D
worker.worker_son2.reference=worker.template
worker.worker_son2.port=8009
worker.worker_son2.host=web-myApp2.com
worker.worker_son2.activation=D
worker.worker_son3.reference=worker.template
worker.worker_son3.port=8009
worker.worker_son3.host=web-myApp2.com
worker.worker_son3.activation=D
The difference is the definition on 'activation'. I am not sure which one is
the correct one.
Any idea?
Besides, if I have only one worker and I want to use the template defined as
above, can I do as follow?
worker.worker_son1.reference=worker.template
worker.worker_son1.port=8009
worker.worker_son1.host=web-myApp1.com
worker.worker_son1.activation=D
(The worker_son2 and worker_son3 are gone)
Regards
--
View this message in context: http://www.nabble.com/A-question-about-defining-LB-in-worker s.properties-tp25530326p25530326.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org