load balancing problem

Mohamed HADROUJ (Gmail) hadrouj at gmail.com
Mon May 21 17:31:34 UTC 2007


I think also it's a persistence issue, because when i tried ipvsadm after
few minutes, the InActConn is initialized to 0. then the load balancer sends
the incoming request to the other server. here is an example :
-I try to send several request : they all get answers but from the same
server
   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
 UDP  10.11.11.230:radius wrr
   -> 10.11.11.20:radius           Masq    1      0          0
   -> 10.11.11.19:radius           Masq    1      0          1

after few minutes :
   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
 UDP  10.11.11.230:radius wrr
   -> 10.11.11.20:radius           Masq    1      0          0
   -> 10.11.11.19:radius           Masq    1      0          0

and then all the requests coming to the load balancer are routed to the
other server :
   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
 UDP  10.11.11.230:radius wrr
   -> 10.11.11.20:radius           Masq    1      0          1
   -> 10.11.11.19:radius           Masq    1      0          0

How to fix this behaviour ?

Regards,


On 5/21/07, Herta Van den Eynde <herta.vandeneynde at gmail.com> wrote:
>
> On 21/05/07, Mohamed HADROUJ (Gmail) <hadrouj at gmail.com> wrote:
> > Hi All,
> > I have some load balancing troubles using lvs/piranha, here is the
> > description :
> > when i use the ipvsadm command to view the statistics here what i get :
> > IP Virtual Server version 1.0.8 (size=65536)
> > Prot LocalAddress:Port Scheduler Flags
> >   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> > UDP  10.11.11.230:radius wrr
> >   -> 10.11.11.20:radius           Masq    1      0          0
> >   -> 10.11.11.19:radius           Masq    1      0          1
> >
> > the load balancer keeps forwarding the request to only one server. in
> > addition of that the counter of the connection established is always
> equal
> > to 1.
> > i've checked also in /var/log/messages, both servers are seen as
> available.
> > here is my config file :
> >
> > backup_active = 1
> > backup = 10.11.11.229
> > backup_private = 10.11.11.121
> > heartbeat = 1
> > heartbeat_port = 539
> >  keepalive = 6
> > deadtime = 18
> > network = nat
> > nat_router = 10.11.11.122 bond0.499:1
> > debug_level = NONE
> > virtual gw_radius {
> >         active = 1
> >         address = 10.11.11.230 bond0.498:1
> >         port = 1812
> >         send_program = "radpwtst -s %h -noacct -noauth -auth_port 1812
> > -secret mysecret -status"
> >         expect = "OK"
> >         use_regex = "0"
> >         #load_monitor = uptime
> >         scheduler = wrr
> >         protocol = udp
> >         timeout = 6
> >         reentry = 15
> >         quiesce_server = 0
> >         server GW_1 {
> >                 address = 10.11.11.19
> >                 active = 1
> >                 weight = 1
> >         }
> >         server GW_2 {
> >                 address = 10.11.11.20
> >                 active = 1
> >                  weight = 1
> >         }
> >         server GW_3 {
> >                 address = 10.11.11.21
> >                 active = 0
> >                 weight = 1
> >         }
> > }
> >
> >
> >
> > Thank you for your help
> > Regards
>
> Might be a persistence issue.  Did you try connecting from 2 different
> nodes/PCs?
>
> Kind regards,
>
> Herta
>
> _______________________________________________
> Piranha-list mailing list
> Piranha-list at redhat.com
> https://www.redhat.com/mailman/listinfo/piranha-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/piranha-list/attachments/20070521/2e8aad48/attachment.htm>


More information about the Piranha-list mailing list