tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Angus Mezick" <amez...@guidestar.org>
Subject I think lb_factor in JK2 is broken (or just backwards from JK)
Date Thu, 08 Apr 2004 13:44:01 GMT
Web01 is running apache
Web01 and web02 are running tomcat
I set web01 to lb_factor=1
I set web02 to lb_factor=15

I would expect web02 to get 15 requests for every 1 request that web01
gets.  In reality the reverse happens!!  Web01 gets 15 requests for
every one that web02 gets.  To test this I just added the line "This
tomcat is running on web0X" to my two index.jsp's.  The only
documentation for lb_factor in jk2 is at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.htm
l:

lb_factor 	1 	 Load balancing factor to use. At this moment,
it'll be set on the worker, but in future it should be possible to use
lb on a channel level.

I was assuming that it worked the same as the lbfactor in JK.
Especially because the docs on jk2 used to list this parameter as
lbfactor until I submitted a patch.  

Can anyone confirm what I am seeing?  I want to make sure I am not going
nuts.



# only at beginning. In production comment it out
[logger.apache2]
level=0

[shm]
file=/ApacheGroup/Apache2/logs/jk2.shm
size=1048576

################################################################
#  LOAD BALANCERS                                              #
################################################################
[lb:lbTest]
info=Load balanced group for www test
debug=0
recovery=15
noWorkerMsg=We are sorry for the delay, the servers are undergoing
speedy servicing.

[lb:lbTestAffinity]
info=Load balanced group for test sites needing affinity
debug=0
recovery=15
noWorkerMsg=We are sorry for the delay, the servers are undergoing
speedy servicing.


################################################################
#  CHANNELS                                                    #
################################################################
[channel.socket:web01Test:8019]
port=8019
host=web01.guidestarisp.net
lb_factor=1
group=lbTest

[channel.socket:web02Test:8019]
port=8019
host=web02.guidestarisp.net
lb_factor=15
group=lbTest

[ajp13:web01Test:8019]
channel=channel.socket:web01Test:8019
[ajp13:web02Test:8019]
channel=channel.socket:web02Test:8019

[uri:test.guidestar.org/*.jsp]
group=lbTest
[uri:test.guidestar.org/*.inc]
group=lbTest
[uri:test.guidestar.org/servlet/*]
group=lbTest
[uri:test.guidestar.org/*.gs]
group=lbTest
[uri:test.guidestar.org/*.wga]
group=lbTest
[uri:test.guidestar.org/*.flexi]
group=lbTest


(You need to view the source of index.jsp to see the web0x number)

Angus Mezick
GuideStar - Philanthropic Research Inc.
427 Scotland St.
Williamsburg, Virginia 23185
PHONE: (757)299-4631 x35  FAX:(757)229-8912
amezick@guidestar.org <mailto:amezick@guidestar.org>
www.guidestar.org <http://www.guidestar.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