weight problem

Fernando A. P. Gomes fapg at eurotux.com
Wed Jul 29 13:40:47 UTC 2009


Hi,

 I've configured lvs to give diferent weight to my virtual servers:

     server s1 {
         address = 172.16.42.15
         active = 1
         weight = 1000
     }
     server s2 {
         address = 172.16.42.124
         active = 1
         weight = 1
     }

However, the the ipvs list of connections give me this:

TCP  xxx.xxx.xxx.xxx:80 rr persistent 2700
  -> 172.16.42.124:80            Masq    1           24        2674
  -> 172.16.41.15:80              Masq    1000   400        2159

And an access count with the apache logs gives me this:

s1 (172.16.41.15):
grep "29/Jul/2009:14:23" access_log.2009-07-29 | wc -l
1054
s2 (172.16.42.124): 
grep "29/Jul/2009:14:23" access_log.2009-07-29 | wc -l
1380

I've more accesses to s2, that have a lower weight than s1, and the ipvs 
connection list should be 1000 to 1.

Can anybody comment?

Regards,
Fernando Gomes
-- 
Fernando Alexandre Peixoto Gomes <fapg at eurotux.com>
Eurotux Informática, S.A. [http://eurotux.com]
Rua Rosalvo de Almeida, 5. 4710-429 BRAGA PORTUGAL
Tel: (+351) 253 257395 - Fax: (+351) 253 257396

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/piranha-list/attachments/20090729/6f0870c0/attachment.sig>


More information about the Piranha-list mailing list