logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: mod_jk redirect for worker
Author
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Tue 09 Apr '13 13:10    Post subject: mod_jk redirect for worker Reply with quote

I would like to ask what is the proper configuration for loadbalancing worker and non-balanced worker referring to retries parameter.

My current configuration :

Code:


worker.list=loadbalancer,node3,node4
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node3,node4
worker.loadbalancer.sticky_session=1
worker.loadbalancer.method=R

worker.template.type=ajp13
worker.template.socket_connect_timeout=5000
worker.template.socket_keepalive=true
worker.template.ping_mode=A
worker.template.ping_timeout=10000
worker.template.connection_pool_minsize=0
worker.template.connection_pool_timeout=60
worker.template.reply_timeout=300000
worker.template.recovery_options=3

worker.node3.reference=worker.template
worker.node3.port=8309
worker.node3.host=127.0.0.1
worker.node3.type=ajp13
worker.node3.lbfactor=1
worker.node3.redirect=node4

worker.node4.reference=worker.template
worker.node4.port=8409
worker.node4.host=127.0.0.1
worker.node4.type=ajp13
worker.node4.lbfactor=1
worker.node4.redirect=node3


Before balancing node3 and node4 i used retries parameter for both workers, to avoid double requests to tomcat --> http://www.itpile.com/r2089/apache-mod-jk-repeats-request-to-tomcat-why :

Code:


worker.node3.port=8309
worker.node3.host=127.0.0.1
worker.node3.type=ajp13
worker.node3.lbfactor=1
worker.node3.retries=1    <--------
worker.node3.connect_timeout=15000
worker.node3.socket_timeout=60
worker.node3.connection_pool_timeout=60
worker.node3.socket_keepalive=True

worker.node4.port=8409
worker.node4.host=127.0.0.1
worker.node4.type=ajp13
worker.node4.lbfactor=1
worker.node4.retries=1    <--------
worker.node4.connect_timeout=15000
worker.node4.socket_timeout=60
worker.node4.connection_pool_timeout=60
worker.node4.socket_keepalive=True



I had skipped retries parameter between non-balanced and balanced configuration as i'm confused where to set it up - on loadbalancer or directly on node, i would like to also avoid infinite loops (is it even possible to misconfigure it so bad ?) because of misconfiguration.

The doubts are :

- if retries parameter for loadbalancer is set up to 0 is it equal to node parameter equal 1

- how the request is handled when retries is set up on loadbalancer and balanced worker simultaneously - which of them has higher "priority", if both are checked or one is skipped etc. ?
Back to top


Reply to topic   Topic: mod_jk redirect for worker View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules