You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Wilson, Wayne" <ww...@ettain.com> on 2001/12/10 16:51:52 UTC
lbfactor again
Hi,
As I hadn't gotten any responses, I thought I throw this out there one more
time. Is anyone sucessfully using load balancing with mod_jk where the load
is properly balance according to the lbfactor set in the workers? I can only
get an equal balance, despite what I assign to the lbfactor.
Thanks,
Wayne Wilson
-----Original Message-----
From: Wilson, Wayne [mailto:wwilson@ettain.com]
Sent: Thursday, December 06, 2001 2:06 PM
To: 'Tomcat Users List'
Subject: Load balancing where lbfactors not equal?
Hi,
I am using Apache 1.3.22, Tomcat Tomcat-3.2.3 and mod_jk on Windows 2000
Professional.
I have load balancing working fine with mod_jk across 2 instances of Tomcat
except that it seems to ignore the lbfactor I assign to the workers. When
the workers' lbfactors are both set to 1, they spread the load evenly across
both instances of Tomcat. The problem is that if I set one to 1 and the
other to 100 or 1000 ( iwant them to get all the requests), it still seems
to send a disproportionate amount of requests to the Tomcat instance with
the lbfactor of 1.
Here is a snippet from my workers.properties:
worker.list=loadbalancer
worker.localworker.port=8009
worker.localworker.host=localhost
worker.localworker.type=ajp13
worker.localworker.lbfactor=1000
worker.localworker2.port=9009
worker.localworker2.host=localhost
worker.localworker2.type=ajp13
worker.localworker2.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=localworker,localworker2
Is there something I am doing wrong? What I am basically trying to achieve
is to send all my requests to one Tomcat instance and only if it fails send
it to the other. Basically failover rather than load balancing. I have two
Apache servers (which are load balanced through a hardware load balancer)
and each one has a primary Tomcat and a failover Tomcat .
I have even experimented with setting the lbfactor on the failover Tomcat to
0 with no effect.
Has anyone done this before? Is the lbfactor even implemented yet?
Thanks in advance,
Wayne Wilson
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>