Hi Nitin,
mod_jk currently supports only one method of load balancing i.e, weighted round
robin. As you may be aware now, the workers.properties configuration file
defines the configuration for each node as follows.
# Define list of workers that will be used
# for mapping requests
worker.list=loadbalancer,status
# Define Node1
worker.node1.port=8009
worker.node1.host=node1.mydomain.com
worker.node1.type=ajp13
worker.node1.lbfactor=1
#worker.node1.local_worker=1 (1)
worker.node1.cachesize=10
# Define Node2
worker.node2.port=8009
worker.node2.host= node2.mydomain.com
worker.node2.type=ajp13
worker.node2.lbfactor=1
#worker.node2.local_worker=1 (1)
worker.node2.cachesize=10
Here the value for "worker.node1.lbfactor" defines the weightage to be given
to the node. For instance if Node1 has 3 and Node2 has 1 for
"worker.node1.lbfactor", the round robin ratio would be 3:1, i.e for every 4
requests 3 will go to Node1 and 1 will go to Node2.
You may read more about it at
http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingMod_jk1.2WithJBoss
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887076#3887076
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887076
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user