Hi :)<br>when tailing the /var/log/messages I can see this :<br>May 23 13:49:46 vasppslb1 nanny[12312]: The following exited abnormally:<br>May 23 13:49:46 vasppslb1 nanny[12312]: Ran the external sending program to (<a href="http://10.11.11.20">
10.11.11.20</a>) but didn't get anything back <br><br>it seems thats Nanny does not update the ipvsadm routing table even if it get no answers from the real server :<br>IP Virtual Server version 1.0.8 (size=65536)<br>
Prot LocalAddress:Port Scheduler Flags<br>  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn<br>UDP  10.76.11.230:radius wrr<br>  -> 10.11.11.20:radius           Masq    1      0          0<br>  -> 
10.11.11.19:radius           Masq    1      0          0<br><br>Nanny's issue ??<br><br><br><br><div><span class="gmail_quote">On 5/23/07, <b class="gmail_sendername">Mohamed HADROUJ (Gmail)</b> <<a href="mailto:hadrouj@gmail.com">
hadrouj@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>i've found a workaround to fix this problem :
<br><span style="font-weight: bold;">ipvsadm --set 0 0 0</span><br>this will set expiry time to 0s for UDP packet, but ... when a real server is offline the load balancer keeps sending incoming requests to it.
<br>Thanks for your help.<div><span class="e" id="q_112b8d4935a6aed1_1"><br><br>Regards<br><br><br><div><span class="gmail_quote">On 5/21/07, <b class="gmail_sendername">Herta Van den Eynde</b> <<a href="mailto:herta.vandeneynde@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
herta.vandeneynde@gmail.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On 21/05/07, Mohamed HADROUJ (Gmail) <<a href="mailto:hadrouj@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

hadrouj@gmail.com</a>> wrote:<br>> Hi,<br>> when  entring the following command : ipvsadm -L -c -nI I get this result :<br>><br>> IPVS connection entries<br>> pro expire state       source             virtual            destination
<br>> UDP 04:57  UDP         <a href="http://10.11.11.225:32875" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.11.11.225:32875</a> <a href="http://10.11.11.230:1812" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
10.11.11.230:1812</a><br>> <a href="http://10.11.11.19:1812" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.11.11.19:1812</a><br>><br>
> Every request sets the counter to 5:00<br>> Thank you for your help<br>><br>><br>>  On 5/21/07, Mohamed HADROUJ (Gmail) <<a href="mailto:hadrouj@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
hadrouj@gmail.com</a>> wrote:<br>> > I think also it's a persistence issue, because when i tried ipvsadm after
<br>> few minutes, the InActConn is initialized to 0. then the load balancer sends<br>> the incoming request to the other server. here is an example :<br>> > -I try to send several request : they all get answers but from the same
<br>> server<br>> >    -> RemoteAddress:Port           Forward Weight ActiveConn InActConn<br>> >  UDP  10.11.11.230:radius wrr<br>> >    -> 10.11.11.20:radius           Masq    1      0          0
<br>> >    -> 10.11.11.19:radius            Masq    1      0           1<br>> ><br>> > after few minutes :<br>> >    -> RemoteAddress:Port           Forward Weight ActiveConn InActConn<br>> >  UDP  
10.11.11.230:radius wrr<br>> >    -> 10.11.11.20:radius            Masq    1      0          0<br>> >    -> 10.11.11.19:radius           Masq    1      0          0<br>> ><br>> > and then all the requests coming to the load balancer are routed to the
<br>> other server :<br>> >    -> RemoteAddress:Port           Forward Weight ActiveConn InActConn<br>> >  UDP  10.11.11.230:radius wrr<br>> >    -> 10.11.11.20:radius           Masq    1      0          1
<br>> >    -> 10.11.11.19:radius           Masq    1      0          0<br>> ><br>> > How to fix this behaviour ?<br>> ><br>> > Regards,<br>> ><br>> ><br>> ><br>> >
<br>
> > On 5/21/07, Herta Van den Eynde <<a href="mailto:herta.vandeneynde@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">herta.vandeneynde@gmail.com</a>> wrote:<br>> > > On 21/05/07, Mohamed HADROUJ (Gmail) <
<a href="mailto:hadrouj@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
hadrouj@gmail.com</a>> wrote:<br>> > > > Hi All,<br>> > > > I have some load balancing troubles using lvs/piranha, here is the<br>> > > > description :<br>> > > > when i use the ipvsadm command to view the statistics here what i get
<br>> :<br>> > > > IP Virtual Server version 1.0.8 (size=65536)<br>> > > > Prot LocalAddress:Port Scheduler Flags<br>> > > >   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
<br>> > > > UDP  10.11.11.230:radius wrr<br>> > > >   -> 10.11.11.20:radius           Masq    1      0          0<br>> > > >   -> 10.11.11.19:radius           Masq    1      0          1
<br>> > > ><br>> > > > the load balancer keeps forwarding the request to only one server. in<br>> > > > addition of that the counter of the connection established is always<br>> equal
<br>> > > > to 1.<br>> > > > i've checked also in /var/log/messages, both servers are seen as<br>> available.<br>> > > > here is my config file :<br>> > > ><br>> > > > backup_active = 1
<br>> > > > backup = <a href="http://10.11.11.229" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.11.11.229</a><br>> > > > backup_private = <a href="http://10.11.11.121" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
10.11.11.121</a><br>> > > > heartbeat = 1<br>> > > > heartbeat_port = 539
<br>> > > >  keepalive = 6<br>> > > > deadtime = 18<br>> > > > network = nat<br>> > > > nat_router = <a href="http://10.11.11.122" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
10.11.11.122</a> bond0.499:1<br>> > > > debug_level = NONE
<br>> > > > virtual gw_radius {<br>> > > >         active = 1<br>> > > >         address = <a href="http://10.11.11.230" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
10.11.11.230</a> bond0.498:1<br>> > > >         port = 1812
<br>> > > >         send_program = "radpwtst -s %h -noacct -noauth -auth_port 1812<br>> > > > -secret mysecret -status"<br>> > > >         expect = "OK"<br>> > > >         use_regex = "0"
<br>> > > >         #load_monitor = uptime<br>> > > >         scheduler = wrr<br>> > > >         protocol = udp<br>> > > >         timeout = 6<br>> > > >         reentry = 15
<br>> > > >         quiesce_server = 0<br>> > > >         server GW_1 {<br>> > > >                 address = <a href="http://10.11.11.19" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
10.11.11.19</a><br>> > > >                 active = 1
<br>> > > >                 weight = 1<br>> > > >         }<br>> > > >         server GW_2 {<br>> > > >                 address = <a href="http://10.11.11.20" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
10.11.11.20</a>
<br>> > > >                 active = 1<br>> > > >                  weight = 1<br>> > > >         }<br>> > > >         server GW_3 {<br>> > > >                 address = 
<a href="http://10.11.11.21" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.11.11.21</a><br>> > > >                 active = 0<br>> > > >                 weight = 1<br>> > > >         }
<br>> > > > }<br>> > > >
<br>> > > ><br>> > > ><br>> > > > Thank you for your help<br>> > > > Regards<br>> > ><br>> > > Might be a persistence issue.  Did you try connecting from 2 different
<br>> > > nodes/PCs?<br>> > ><br>> > > Kind regards,<br>> > ><br>> > > Herta<br><br>Mohamed, it looks like you posted an extract from the <a href="http://lvs.cf" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
lvs.cf</a> instead
<br>of the full file.  Would you please look whether you have an entry<br>"persistent = some value" in the "virtual gw_radius" part?  If not,<br>try adding a "persistent = 0".<br><br>Note that depending on what's behind the load balancer, persistence
<br>may actually be what you need (in which case you could add e.g.<br>"persistent = 18000", where the value equals 18000 seconds, or 5<br>hours).<br>Also, in real life, when using persistence, ipvsadm may not show
<br>perfect balancing (e.g. people behind proxy servers will all connect<br>from the same address, and therefore get connected to the same server,<br>or some people may stay connected far longer than others).  As long as
<br>
the connections are reasonably spread out, you should be OK.<br><br>Kind regards,<br><br>Herta<br><br>_______________________________________________<br>Piranha-list mailing list<br><a href="mailto:Piranha-list@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

Piranha-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/piranha-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://www.redhat.com/mailman/listinfo/piranha-list</a>
<br></blockquote></div><br>
</span></div></blockquote></div><br>