You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David OBrien <do...@naccrra.org> on 2003/11/12 06:26:27 UTC

lbfactor and weighted load balancing

Just a quick question on the lbfactor setting...

If I have say four quad processor machines and two dual processor machines 
in a "cluster" would
setting the lbfactor for the quad machines to say 4 and the lbfactor for 
the dual machines to two
mean that the quad's will get twice as many requests as the dual's?

-Dave



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


Re: lbfactor and weighted load balancing

Posted by David Rees <dr...@greenhydrant.com>.
On Tue, November 11, 2003 at 9:26 pm, David OBrien wrote:
> Just a quick question on the lbfactor setting...
>
> If I have say four quad processor machines and two dual processor machines
> in a "cluster" would setting the lbfactor for the quad machines to say 4
and
> the lbfactor for the dual machines to two mean that the quad's will get
> twice as many requests as the dual's?

Depends if you are using sessions or not.  In theory, if you are using
sessions, new sessions should be balanced as you expect.  Without
sessions, then yes, in theory workers with a lbfactor of 4 should receive
twice as many requests as a worker with a lbfactor of 2.

Unfortunately, in practice it doesn't always seem to work that way because
Tomcat processes don't know what the other is doing.

-Dave

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