Ah. I am not a programmer. That's why I missed the look into the sources.
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 > -----Original Message----- > From: owner-pen_at_siag.nu [mailto:owner-pen_at_siag.nu] On Behalf > Of Thomas Eckhardt > Sent: Wednesday, January 28, 2009 1:00 PM > To: pen_at_siag.nu > Subject: Re: What is the formula for the weight algorithm? > > Tobias Gablunsky wrote: > > Can please anyone explain the used algorithm in short? > > from pen.c: > > load = (WEIGHT_FACTOR*servers[i].c)/servers[i].weight; > > where WEIGHT_FACTOR is by default defined as 256 ("to make weight kick > in earlier"). server[i].c are the numbers of connections which are > currently assigned to server [i]. servers[i].weight is of course the > weight-value you defined to this server. > The server with the smallest value of "load" is selected for a > particular request. > > Thomas > > > >Received on Wed Jan 28 2009 - 15:30:16 CET
This archive was generated by hypermail 2.2.0 : Wed Jan 28 2009 - 15:30:16 CET