<div dir="ltr">1.  you should try wlc  ( weighted least connection )  - probably in your case it should perform better <div><br></div><div>2.  why do you use "persistent" parameter ?  is there any special purpose for that ?  if not - you should remove it. </div>
<div><br></div><div>and one more thing -  use  ipvsadm  to monitor your connections  - you can get the LVS connection table using ipvsadm as well </div><div><br></div><div>cheers, </div><div>-Mike  </div><div><br><br><div class="gmail_quote">
On Wed, Jul 29, 2009 at 5:26 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>
The beahivor improveed, but isn't the expected (I changed the algorithm and<br>
raised the weight):<br>
<br>
TCP xxx.xxx.xxx.xxx:80 wrr persistent 2700<br>
  -> <a href="http://172.16.42.124:80" target="_blank">172.16.42.124:80</a>             Masq    1      17          951<br>
  -> <a href="http://172.16.41.15:80" target="_blank">172.16.41.15:80</a>              Masq    5000   221        3215<br>
<br>
grep "29/Jul/2009:15:23" access_log.2009-07-29 | grep -v "172.16.42.15" |wc -l<br>
408<br>
<br>
grep "29/Jul/2009:15:23" access_log.2009-07-29 | wc -l<br>
1677<br>
<br>
Cumprimentos,<br>
<font color="#888888">Fernando Gomes<br>
</font><div><div></div><div class="h5"><br>
On Wednesday 29 July 2009, Mike Kemelmakher wrote:<br>
> Hi,<br>
><br>
> Thats because you choose  "rr"  scheduling algorithm  - which is not aware<br>
> of weight parameter<br>
> try to change it to  wlc or wrr  and see what you get<br>
><br>
> -Mike<br>
><br>
> On Wed, Jul 29, 2009 at 4:40 PM, Fernando A. P. Gomes<br>
<<a href="mailto:fapg@eurotux.com">fapg@eurotux.com</a>>wrote:<br>
> > 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>
> > --<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>
> ><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>
</div></div>--<br>
<div><div></div><div class="h5">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>
</div></div></blockquote></div><br></div></div>