<div dir="ltr"><div>Hi, </div><div><br></div>Thats because you choose  "rr"  scheduling algorithm  - which is not aware of weight parameter <div><br></div><div>try to change it to  wlc or wrr  and see what you get </div>
<div><br></div><div>-Mike <br><br><div class="gmail_quote">On Wed, Jul 29, 2009 at 4:40 PM, Fernando A. P. Gomes <span dir="ltr"><<a href="mailto:fapg@eurotux.com">fapg@eurotux.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
 I've configured lvs to give diferent weight to my virtual servers:<br>
<br>
     server s1 {<br>
         address = 172.16.42.15<br>
         active = 1<br>
         weight = 1000<br>
     }<br>
     server s2 {<br>
         address = 172.16.42.124<br>
         active = 1<br>
         weight = 1<br>
     }<br>
<br>
However, the the ipvs list of connections give me this:<br>
<br>
TCP  xxx.xxx.xxx.xxx:80 rr persistent 2700<br>
  -> <a href="http://172.16.42.124:80" target="_blank">172.16.42.124:80</a>            Masq    1           24        2674<br>
  -> <a href="http://172.16.41.15:80" target="_blank">172.16.41.15:80</a>              Masq    1000   400        2159<br>
<br>
And an access count with the apache logs gives me this:<br>
<br>
s1 (172.16.41.15):<br>
grep "29/Jul/2009:14:23" access_log.2009-07-29 | wc -l<br>
1054<br>
s2 (172.16.42.124):<br>
grep "29/Jul/2009:14:23" access_log.2009-07-29 | wc -l<br>
1380<br>
<br>
I've more accesses to s2, that have a lower weight than s1, and the ipvs<br>
connection list should be 1000 to 1.<br>
<br>
Can anybody comment?<br>
<br>
Regards,<br>
Fernando Gomes<br>
<font color="#888888">--<br>
Fernando Alexandre Peixoto Gomes <<a href="mailto:fapg@eurotux.com">fapg@eurotux.com</a>><br>
Eurotux Informática, S.A. [<a href="http://eurotux.com" target="_blank">http://eurotux.com</a>]<br>
Rua Rosalvo de Almeida, 5. 4710-429 BRAGA PORTUGAL<br>
Tel: (+351) 253 257395 - Fax: (+351) 253 257396<br>
<br>
</font><br>_______________________________________________<br>
Piranha-list mailing list<br>
<a href="mailto:Piranha-list@redhat.com">Piranha-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/piranha-list" target="_blank">https://www.redhat.com/mailman/listinfo/piranha-list</a><br></blockquote></div><br></div></div>