What is the formula for the weight algorithm?

From: Tobias Gablunsky <t.gablunsky_at_cbxnet.de>
Date: Wed, 28 Jan 2009 10:36:46 +0100

Hello.

I configured a pen instance to LoadBalance HTTP-Traffic between two machines. As they are not equally powerful I configured pen to weight the number of connections.

From the /etc/pen.cf:
server 0 acl 0 address 192.168.39.210 port 80 max 0 hard 0 weight 1
server 1 acl 0 address 192.168.39.204 port 80 max 0 hard 0 weight 2

I expected to see twice as much connections to server 1 as to server 0.
But there were much more connections to server 0.

Can please anyone explain the used algorithm in short?

Thank you,

--
tobias gablunsky
systemtechnik internet
CBXNET combox internet gmbh
Lützowstraße 105-106
10785 Berlin
Telefon: 030 / 59 00 69 -41; Zentrale: -00
Telefax: 030 / 59 00 69 -99
www.cbxnet.de | support_at_cbxnet.de
Amtsgericht Berlin-Charlottenburg HRB 71171
Geschäftsführer: Lutz Treutler 
Received on Wed Jan 28 2009 - 10:36:46 CET

This archive was generated by hypermail 2.2.0 : Wed Jan 28 2009 - 10:36:48 CET