You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by LAGALISSE Eric <Er...@casden.banquepopulaire.fr> on 2003/03/22 14:14:12 UTC

RE : Lb_factor didn't work as expected

Yes, we are using the worker MPM and the behavior mentionned in my initial mail if we use the same lb_factor value 1.

Eric LAGALISSE

-----Message d'origine-----
De : Bill Barker [mailto:wbarker@wilshire.com] 
Envoyé : samedi 22 mars 2003 09:59
À : tomcat-user@jakarta.apache.org
Objet : Re: Lb_factor didn't work as expected

Which MPM are you using?  AFAIK, the load balancing only works currently
with the 'worker' MPM.


"LAGALISSE Eric" <Er...@casden.banquepopulaire.fr> wrote in message
news:1254328B3558EE49BA3A9AA8778B8325010EE998@cnos1099.casden...
After several test using mod_jk 2.0.43 on Linux with apache 2.0.43 we
noticed that if we define workers.properties as follow the load balancing
send to both tomcat server but not in the same ratio.
For example if we stress with 100 users, 80 are routed to the first tomcat
server declared in workers.properties and 20 are routed to the second.

So if soemone on this small planet already configured and tested
SUCCESSFULLY the load balancing we'll very interested in his experience on
this subject.

# Workers.properties
ps=/

worker.list=infonetworker

# ------------------------
# First tomcat server
# ------------------------
worker.tomcat1.port=8112
worker.tomcat1.host=clos1030.casden.fr
worker.tomcat1.type=ajp13
worker.tomcat1.cachesize=10
worker.tomcat1.cache_timeout=600
worker.tomcat1.socket_keepalive=0
worker.tomcat1.socket_timeout=300



#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  ----> lbfactor must be > 0
#  ----> Low lbfactor means less work done by the worker.
worker.tomcat1.lbfactor=1

# ------------------------
# Second tomcat server
# ------------------------
worker.tomcat2.port=8112
worker.tomcat2.host=clos1032.casden.fr
worker.tomcat2.type=ajp13
worker.tomcat2.cachesize=10
worker.tomcat2.cache_timeout=600
worker.tomcat2.socket_keepalive=0
worker.tomcat2.socket_timeout=300

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  ----> lbfactor must be > 0
#  ----> Low lbfactor means less work done by the worker.
worker.tomcat2.lbfactor=1


# ------------------------
# Load Balancer worker
# ------------------------
#

# The loadbalancer (type lb) worker performs weighted round-robin
# load balancing with sticky sessions.
# Note:
#  ----> If a worker dies, the load balancer will check its state
#        once in a while. Until then all work is redirected to peer
#        worker.
worker.infonetworker.type=lb
worker.infonetworker.balanced_workers=tomcat1, tomcat2


#
# END workers.properties
#


Eric LAGALISSE



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




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


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