Re: keepalived 1.2.13: Round robin UDP problem
Hervé BRY <[email protected]> Mon, 12 Jun 2017 10:54:08 +0200
| Newsgroups | gmane.linux.keepalived.announce |
|---|---|
| Message-ID | <CAAhgTJkOF-83aB=2o0uJ8yVqWQ190eYfumjoSMh2GXC2v0=Btw@mail.gmail.com> |
--===============8758065212136047169== Content-Type: multipart/alternative; boundary="001a1143022c36aa8f0551bf775a" --001a1143022c36aa8f0551bf775a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Please *stop sending questions* to the announce mailing list. As its name implies, this mailing list is for *announces* about keepalived (new releases...). Isn't there an admin somewhere that can restrict posting to keepalived maintainers ? Herv=C3=A9 BRY Administrateur Syst=C3=A8me Geneanet (http://www.geneanet.org) 2017-06-12 10:45 GMT+02:00 Sven Lanckmans <[email protected]>: > Hi, > > I've build a setup with keepalived 1.2.13 where I want to round robin UDP > traffic. But all UDP traffic (syslog) of different sources is always send > to the same real_server. > > /var/log/messages doesn't show any errors and I can see the health check > working via tcpdump. > > I check where the syslog traffic is sent by doing a simple tcpdump. > > I went through all the info I could find, but don't see anything wrong. I > also haven't found how to debug so that I can see why it decides to send > all different sources to the same real_server. > > Thanks, > Sven. > > # ipvsadm -L -n > IP Virtual Server version 1.2.1 (size=3D4096) > Prot LocalAddress:Port Scheduler Flags > -> RemoteAddress:Port Forward Weight ActiveConn InActConn > UDP 10.11.2.111:514 rr > -> 10.11.2.103:514 Route 1 0 0 > -> 10.11.2.104:514 Route 1 0 0 > > My config: > > ! Configuration File for keepalived > > global_defs { > notification_email { > [email protected] > } > notification_email_from [email protected] > smtp_server 192.168.200.1 > smtp_connect_timeout 30 > router_id LVS_DEVEL > } > > vrrp_instance VI_1 { > state MASTER > interface eno16780032 > virtual_router_id 51 > priority 100 > advert_int 1 > authentication { > auth_type PASS > auth_pass 2222 > } > unicast_src_ip 10.11.2.103 > unicast_peer { > 10.11.2.104 > } > virtual_ipaddress { > 10.11.2.111 > } > } > > virtual_server 10.11.2.111 514 { > delay_loop 5 > lb_algo rr > lb_kind DR > protocol UDP > > real_server 10.11.2.103 514 { > TCP_CHECK { > connect_port 22 > } > } > > real_server 10.11.2.104 514 { > TCP_CHECK { > connect_port 22 > } > } > } > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Keepalived-announce mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/keepalived-announce > > --001a1143022c36aa8f0551bf775a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div>Please *stop sending questions* to the announce = mailing list.<br></div>As its name implies, this mailing list is for *annou= nces* about keepalived (new releases...).<br><br></div>Isn't there an a= dmin somewhere that can restrict posting to keepalived maintainers ?<br cle= ar=3D"all"><div><div><div><div class=3D"gmail_extra"><div><div class=3D"gma= il_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><br>Herv= =C3=A9 BRY<br>Administrateur Syst=C3=A8me<br>Geneanet (<a href=3D"http://ww= w.geneanet.org" target=3D"_blank">http://www.geneanet.org</a>)</div></div><= /div> <br><div class=3D"gmail_quote">2017-06-12 10:45 GMT+02:00 Sven Lanckmans <s= pan dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_= blank">[email protected]</a>></span>:<br><blockquote class=3D"gma= il_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-lef= t:1ex"><div dir=3D"ltr"><div style=3D"font-size:12.8px">Hi,</div><div style= =3D"font-size:12.8px"><br></div><div style=3D"font-size:12.8px">I've bu= ild a setup with keepalived 1.2.13 where I want to round robin UDP traffic.= But all UDP traffic (syslog) of different sources is always send to the sa= me real_server.</div><div style=3D"font-size:12.8px"><br>/var/log/messages = doesn't show any errors and I can see the health check working via tcpd= ump.</div><div style=3D"font-size:12.8px"><br></div><div style=3D"font-size= :12.8px">I check where the syslog traffic is sent by doing a simple tcpdump= .</div><div style=3D"font-size:12.8px"><br></div><div style=3D"font-size:12= .8px">I went through all the info I could find, but don't see anything = wrong. I also haven't found how to debug so that I can see why it decid= es to send all different sources to the same real_server.</div><div style= =3D"font-size:12.8px"><br></div><div style=3D"font-size:12.8px">Thanks,</di= v><div style=3D"font-size:12.8px">Sven.</div><div style=3D"font-size:12.8px= "><br></div><div style=3D"font-size:12.8px"><div># ipvsadm -L -n =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0</div><div>IP Virtual Serve= r version 1.2.1 (size=3D4096)</div><div>Prot LocalAddress:Port Scheduler Fl= ags</div><div>=C2=A0 -> RemoteAddress:Port =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 Forward Weight ActiveConn InActConn</div><div>UDP =C2=A0<a href=3D"h= ttp://10.11.2.111:514/" target=3D"_blank">10.11.2.111:514</a>=C2=A0rr</div>= <div>=C2=A0 ->=C2=A0<a href=3D"http://10.11.2.103:514/" target=3D"_blank= ">10.11.2.103:514</a>=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= Route =C2=A0 1 =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00 = =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0</div><div>=C2=A0 ->=C2=A0<a href=3D"ht= tp://10.11.2.104:514/" target=3D"_blank">10.11.2.104:514</a>=C2=A0=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Route =C2=A0 1 =C2=A0 =C2=A0 =C2= =A00 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00 =C2=A0</div></div><div style=3D"fo= nt-size:12.8px"><br></div><div style=3D"font-size:12.8px">My config:</div><= div style=3D"font-size:12.8px"><br></div><div style=3D"font-size:12.8px"><d= iv>! Configuration File for keepalived</div><div><br></div><div>global_defs= {</div><div>=C2=A0 =C2=A0notification_email {</div><div>=C2=A0 =C2=A0 =C2= =A0<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a></div>= <div>=C2=A0=C2=A0 }</div><div>=C2=A0 =C2=A0notification_email_from=C2=A0<a = href=3D"mailto:[email protected]" target=3D"_blank">syslo<wbr>[email protected]</a= ></div><div>=C2=A0=C2=A0 smtp_server 192.168.200.1</div><div>=C2=A0 =C2=A0s= mtp_connect_timeout 30</div><div>=C2=A0 =C2=A0router_id LVS_DEVEL</div><div= >}</div><div><br></div><div>vrrp_instance VI_1 {</div><div>=C2=A0 =C2=A0 st= ate MASTER</div><div>=C2=A0 =C2=A0 interface eno16780032</div><div>=C2=A0 = =C2=A0 virtual_router_id 51</div><div>=C2=A0 =C2=A0 priority 100</div><div>= =C2=A0 =C2=A0 advert_int 1</div><div>=C2=A0 =C2=A0 authentication {</div><d= iv>=C2=A0 =C2=A0 =C2=A0 =C2=A0 auth_type PASS</div><div>=C2=A0 =C2=A0 =C2= =A0 =C2=A0 auth_pass 2222</div><div>=C2=A0 =C2=A0 }</div><div>=C2=A0 =C2=A0= unicast_src_ip 10.11.2.103</div><div>=C2=A0 =C2=A0 unicast_peer {</div><di= v>=C2=A0 =C2=A0 =C2=A0 =C2=A0 10.11.2.104</div><div>=C2=A0 =C2=A0 }</div><d= iv>=C2=A0 =C2=A0 virtual_ipaddress {</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 = 10.11.2.111</div><div>=C2=A0 =C2=A0 }</div><div>}</div><div><br></div><div>= virtual_server 10.11.2.111 514 {</div><div>=C2=A0 =C2=A0 delay_loop 5</div>= <div>=C2=A0 =C2=A0 lb_algo rr</div><div>=C2=A0 =C2=A0 lb_kind DR</div><div>= =C2=A0 =C2=A0 protocol UDP</div><div><br></div><div>=C2=A0 =C2=A0 real_serv= er 10.11.2.103 514 {</div><div>=C2=A0 =C2=A0 =C2=A0TCP_CHECK {</div><div>= =C2=A0 =C2=A0 =C2=A0 connect_port 22</div><div>=C2=A0 =C2=A0 =C2=A0}</div><= div>=C2=A0 =C2=A0 }</div><div><br></div><div>=C2=A0 =C2=A0 real_server 10.1= 1.2.104 514 {</div><div>=C2=A0 =C2=A0 =C2=A0TCP_CHECK {</div><div>=C2=A0 = =C2=A0 =C2=A0 connect_port 22</div><div>=C2=A0 =C2=A0 =C2=A0}</div><div>=C2= =A0 =C2=A0 }</div><div>}</div></div></div> <br>------------------------------<wbr>------------------------------<wbr>-= -----------------<br> Check out the vibrant tech community on one of the world's most<br> engaging tech sites, Slashdot.org! <a href=3D"http://sdm.link/slashdot" rel= =3D"noreferrer" target=3D"_blank">http://sdm.link/slashdot</a><br>_________= _____________________<wbr>_________________<br> Keepalived-announce mailing list<br> <a href=3D"mailto:[email protected]">Keepalived-ann= ounce@lists.<wbr>sourceforge.net</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/keepalived-announce= " rel=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/<wbr>l= ists/listinfo/keepalived-<wbr>announce</a><br> <br></blockquote></div><br></div></div></div></div></div> --001a1143022c36aa8f0551bf775a-- --===============8758065212136047169== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot --===============8758065212136047169== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Keepalived-announce mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/keepalived-announce --===============8758065212136047169==--