Re: keepalived 1.2.13: Round robin UDP problem

Sven Lanckmans <[email protected]> Mon, 12 Jun 2017 10:03:44 +0000
Newsgroups gmane.linux.keepalived.announce
Message-ID <CAApg-rST=jhV9aCzAy0dv2QC58agB0JTaCqM=23+TC6oE8COng@mail.gmail.com>
--===============5846586840985985391==
Content-Type: multipart/alternative; boundary="001a114fa2ccce4a390551c06f1f"

--001a114fa2ccce4a390551c06f1f
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

In that case where can I send my questions to?

Thanks.

On Mon, 12 Jun 2017 at 11:32, Herv=C3=A9 BRY <[email protected]> wrote=
:

> Please *stop sending questions* to the announce mailing list.
> As its name implies, this mailing list is for *announces* about keepalive=
d
> (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 UD=
P
>> traffic. But all UDP traffic (syslog) of different sources is always sen=
d
>> 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
>>
>>
>
> -------------------------------------------------------------------------=
-----
> 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
>

--001a114fa2ccce4a390551c06f1f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div><div>In that case where can I send my questions to?</div></div><div><b=
r></div><div>Thanks.=C2=A0</div><div><br><div class=3D"gmail_quote"><div>On=
 Mon, 12 Jun 2017 at 11:32, Herv=C3=A9 BRY &lt;<a href=3D"mailto:herve.bry@=
geneanet.org">[email protected]</a>&gt; wrote:<br></div><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;p=
adding-left:1ex"><div><div><div>Please *stop sending questions* to the anno=
unce mailing list.<br></div>As its name implies, this mailing list is for *=
announces* about keepalived (new releases...).<br><br></div>Isn&#39;t there=
 an admin somewhere that can restrict posting to keepalived maintainers ?<b=
r clear=3D"all"><div><div><div><div class=3D"gmail_extra"><div><div class=
=3D"m_2833701767378901964gmail_signature" data-smartmail=3D"gmail_signature=
"><div><br>Herv=C3=A9 BRY<br>Administrateur Syst=C3=A8me<br>Geneanet (<a hr=
ef=3D"http://www.geneanet.org" target=3D"_blank">http://www.geneanet.org</a=
>)</div></div></div>
<br><div class=3D"gmail_quote"></div></div></div></div></div></div><div><di=
v><div><div><div class=3D"gmail_extra"><div class=3D"gmail_quote">2017-06-1=
2 10:45 GMT+02:00 Sven Lanckmans <span>&lt;<a href=3D"mailto:sven.lanckmans=
@gmail.com" target=3D"_blank">[email protected]</a>&gt;</span>:<br><=
/div></div></div></div></div></div><div><div><div><div><div class=3D"gmail_=
extra"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><di=
v 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&#39;ve build a setup with keepalived=
 1.2.13 where I want to round robin UDP traffic. But all UDP traffic (syslo=
g) of different sources is always send to the same real_server.</div><div s=
tyle=3D"font-size:12.8px"><br>/var/log/messages doesn&#39;t show any errors=
 and I can see the health check working via tcpdump.</div><div style=3D"fon=
t-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-s=
ize:12.8px"><br></div><div style=3D"font-size:12.8px">I went through all th=
e info I could find, but don&#39;t see anything wrong. I also haven&#39;t f=
ound how to debug so that I can see why it decides to send all different so=
urces to the same real_server.</div><div style=3D"font-size:12.8px"><br></d=
iv><div style=3D"font-size:12.8px">Thanks,</div><div style=3D"font-size:12.=
8px">Sven.</div><div style=3D"font-size:12.8px"><br></div><div style=3D"fon=
t-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 Server version 1.2.1 (size=3D4096=
)</div><div>Prot LocalAddress:Port Scheduler Flags</div><div>=C2=A0 -&gt; R=
emoteAddress:Port =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Forward Weight ActiveC=
onn InActConn</div><div>UDP =C2=A0<a href=3D"http://10.11.2.111:514/" targe=
t=3D"_blank">10.11.2.111:514</a>=C2=A0rr</div><div>=C2=A0 -&gt;=C2=A0<a hre=
f=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=A0Route =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 -&gt;=C2=A0<a href=3D"http://10.11.2.104:514/" targ=
et=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"font-size:12.8px"><br></div><di=
v 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"><div>! Configuration File for k=
eepalived</div><div><br></div><div>global_defs {</div><div>=C2=A0 =C2=A0not=
ification_email {</div><div>=C2=A0 =C2=A0 =C2=A0<a href=3D"mailto:me@email.=
com" 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]=
m" target=3D"_blank">[email protected]</a></div><div>=C2=A0=C2=A0 smtp_serve=
r 192.168.200.1</div><div>=C2=A0 =C2=A0smtp_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 state 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><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 a=
uth_type PASS</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 auth_pass 2222</div><di=
v>=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><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 10.1=
1.2.104</div><div>=C2=A0 =C2=A0 }</div><div>=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</d=
iv><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_server 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.11.2.104 514 {</div><div>=C2=A0 =
=C2=A0 =C2=A0TCP_CHECK {</div><div>=C2=A0 =C2=A0 =C2=A0 connect_port 22</di=
v><div>=C2=A0 =C2=A0 =C2=A0}</div><div>=C2=A0 =C2=A0 }</div><div>}</div></d=
iv></div>
<br></blockquote></div></div></div></div></div></div><div><div><div><div><d=
iv class=3D"gmail_extra"><div class=3D"gmail_quote"><blockquote class=3D"gm=
ail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-le=
ft:1ex">-------------------------------------------------------------------=
-----------<br>
Check out the vibrant tech community on one of the world&#39;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>_________=
______________________________________<br>
Keepalived-announce mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_bla=
nk">[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/keepalived-announce=
" rel=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/=
listinfo/keepalived-announce</a><br>
<br></blockquote></div><br></div></div></div></div></div>
---------------------------------------------------------------------------=
---<br>
Check out the vibrant tech community on one of the world&#39;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>
Keepalived-announce mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_bla=
nk">[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/keepalived-announce=
" rel=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/=
listinfo/keepalived-announce</a><br>
</blockquote></div></div>

--001a114fa2ccce4a390551c06f1f--


--===============5846586840985985391==
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
--===============5846586840985985391==
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

--===============5846586840985985391==--