Re: weight problem
Mike Kemelmakher <[email protected]> Wed, 29 Jul 2009 17:46:30 +0300
| Newsgroups | gmane.linux.redhat.piranha |
|---|---|
| Message-ID | <[email protected]> |
--===============1615287772== Content-Type: multipart/alternative; boundary=0016368e1fc5ac6d83046fd940bf --0016368e1fc5ac6d83046fd940bf Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 1. you should try wlc ( weighted least connection ) - probably in your case it should perform better 2. why do you use "persistent" parameter ? is there any special purpose for that ? if not - you should remove it. and one more thing - use ipvsadm to monitor your connections - you can get the LVS connection table using ipvsadm as well cheers, -Mike On Wed, Jul 29, 2009 at 5:26 PM, Fernando A. P. Gomes <[email protected]>wro= te: > Hi, > > The beahivor improveed, but isn't the expected (I changed the algorithm a= nd > raised the weight): > > TCP xxx.xxx.xxx.xxx:80 wrr persistent 2700 > -> 172.16.42.124:80 Masq 1 17 951 > -> 172.16.41.15:80 Masq 5000 221 3215 > > grep "29/Jul/2009:15:23" access_log.2009-07-29 | grep -v "172.16.42.15" |= wc > -l > 408 > > grep "29/Jul/2009:15:23" access_log.2009-07-29 | wc -l > 1677 > > Cumprimentos, > Fernando Gomes > > On Wednesday 29 July 2009, Mike Kemelmakher wrote: > > 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]>wrote: > > > 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 > -- > 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 > > --0016368e1fc5ac6d83046fd940bf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">1. =A0you should try wlc =A0( weighted least connection ) = =A0- probably in your case it should perform better=A0<div><br></div><div>2= . =A0why do you use "persistent" parameter ? =A0is there any spec= ial purpose for that ? =A0if not - you should remove it.=A0</div> <div><br></div><div>and one more thing - =A0use =A0ipvsadm =A0to monitor yo= ur connections =A0- you can get the LVS connection table using ipvsadm as w= ell=A0</div><div><br></div><div>cheers,=A0</div><div>-Mike =A0</div><div><b= r><br><div class=3D"gmail_quote"> On Wed, Jul 29, 2009 at 5:26 PM, Fernando A. P. Gomes <span dir=3D"ltr"><= ;<a href=3D"mailto:[email protected]">[email protected]</a>></span> wrote:= <br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-lef= t: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> =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 =A0 Masq =A0 =A01 =A0 =A0 =A017 =A0 =A0 =A0 = =A0 =A0951<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 =A05000 =A0 221 =A0 =A0 =A0 =A0= 3215<br> <br> grep "29/Jul/2009:15:23" access_log.2009-07-29 | grep -v "17= 2.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=3D"#888888">Fernando Gomes<br> </font><div><div></div><div class=3D"h5"><br> On Wednesday 29 July 2009, Mike Kemelmakher wrote:<br> > Hi,<br> ><br> > Thats because you choose =A0"rr" =A0scheduling algorithm =A0= - which is not aware<br> > of weight parameter<br> > try to change it to =A0wlc or wrr =A0and 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=3D"mailto:[email protected]">[email protected]</a>>wrote:<br> > > Hi,<br> > ><br> > > =A0I've configured lvs to give diferent weight to my virtual = servers:<br> > ><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">17= 2.16.42.124: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 =A02159<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, a= nd 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=3D"mailto:fapg@eurot= ux.com">[email protected]</a>><br> > > Eurotux Inform=E1tica, S.A. [<a href=3D"http://eurotux.com" targe= t=3D"_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=3D"mailto:[email protected]">[email protected]= m</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> </div></div>--<br> <div><div></div><div class=3D"h5">Fernando Alexandre Peixoto Gomes <<a h= ref=3D"mailto:[email protected]">[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> </div></div></blockquote></div><br></div></div> --0016368e1fc5ac6d83046fd940bf-- --===============1615287772== 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 --===============1615287772==--