Re: weight problem
Mike Kemelmakher <[email protected]> Wed, 29 Jul 2009 16:46:26 +0300
| Newsgroups | gmane.linux.redhat.piranha |
|---|---|
| Message-ID | <[email protected]> |
--===============1048261462== Content-Type: multipart/alternative; boundary=0016e6471258d85bb0046fd8693f --0016e6471258d85bb0046fd8693f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, Thats because you choose "rr" scheduling algorithm - which is not aware of weight parameter try to change it to wlc or wrr and see what you get -Mike On Wed, Jul 29, 2009 at 4:40 PM, Fernando A. P. Gomes <[email protected]>wro= te: > Hi, > > I've configured lvs to give diferent weight to my virtual servers: > > server s1 { > address =3D 172.16.42.15 > active =3D 1 > weight =3D 1000 > } > server s2 { > address =3D 172.16.42.124 > active =3D 1 > weight =3D 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 <[email protected]> > Eurotux Inform=E1tica, S.A. [http://eurotux.com] > Rua Rosalvo de Almeida, 5. 4710-429 BRAGA PORTUGAL > Tel: (+351) 253 257395 - Fax: (+351) 253 257396 > > > _______________________________________________ > Piranha-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/piranha-list > --0016e6471258d85bb0046fd8693f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hi,=A0</div><div><br></div>Thats because you choose = =A0"rr" =A0scheduling algorithm =A0- which is not aware of weight= parameter=A0<div><br></div><div>try to change it to =A0wlc or wrr =A0and s= ee what you get=A0</div> <div><br></div><div>-Mike=A0<br><br><div class=3D"gmail_quote">On Wed, Jul = 29, 2009 at 4:40 PM, Fernando A. P. Gomes <span dir=3D"ltr"><<a href=3D"= mailto:[email protected]">[email protected]</a>></span> wrote:<br><blockqu= ote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc s= olid;padding-left:1ex;"> Hi,<br> <br> =A0I've configured lvs to give diferent weight to my virtual servers:<b= r> <br> =A0 =A0 server s1 {<br> =A0 =A0 =A0 =A0 address =3D 172.16.42.15<br> =A0 =A0 =A0 =A0 active =3D 1<br> =A0 =A0 =A0 =A0 weight =3D 1000<br> =A0 =A0 }<br> =A0 =A0 server s2 {<br> =A0 =A0 =A0 =A0 address =3D 172.16.42.124<br> =A0 =A0 =A0 =A0 active =3D 1<br> =A0 =A0 =A0 =A0 weight =3D 1<br> =A0 =A0 }<br> <br> However, the the ipvs list of connections give me this:<br> <br> TCP =A0xxx.xxx.xxx.xxx:80 rr persistent 2700<br> =A0-> <a href=3D"http://172.16.42.124:80" target=3D"_blank">172.16.42.1= 24:80</a> =A0 =A0 =A0 =A0 =A0 =A0Masq =A0 =A01 =A0 =A0 =A0 =A0 =A0 24 =A0 = =A0 =A0 =A02674<br> =A0-> <a href=3D"http://172.16.41.15:80" target=3D"_blank">172.16.41.15= :80</a> =A0 =A0 =A0 =A0 =A0 =A0 =A0Masq =A0 =A01000 =A0 400 =A0 =A0 =A0 =A0= 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 ipv= s<br> connection list should be 1000 to 1.<br> <br> Can anybody comment?<br> <br> Regards,<br> Fernando Gomes<br> <font color=3D"#888888">--<br> Fernando Alexandre Peixoto Gomes <<a href=3D"mailto:[email protected]">fa= [email protected]</a>><br> Eurotux Inform=E1tica, S.A. [<a href=3D"http://eurotux.com" target=3D"_blan= k">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=3D"mailto:[email protected]">[email protected]</a><br> <a href=3D"https://www.redhat.com/mailman/listinfo/piranha-list" target=3D"= _blank">https://www.redhat.com/mailman/listinfo/piranha-list</a><br></block= quote></div><br></div></div> --0016e6471258d85bb0046fd8693f-- --===============1048261462== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Piranha-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/piranha-list --===============1048261462==--