Suman, Are you testing with multiple clients? If you only have one then - IF the single connection closes, then the next one will just hit the same empty server. Round Robin will work when you have more than one connection but testing with a single client can be confusing.
Malcolm Turnbull Loadbalancer.org Ltd. www.loadbalancer.org +44 (0)330 380 1064 malc...@loadbalancer.org FREE TRIAL | ONLINE DEMO | REVIEWS | BLOG On 18 June 2018 at 10:24, Pandit, Suman <suman.pan...@hpe.com> wrote: > Hi Malcolm, > Thanks for your prompt reply, > I have tried with keeping 5 seconds timeout value for TCP connection, but no > improvement. > Command tried: ipvsadm --set 5 5 0 > Do you think I missed something here? do you know any other algorithm which > works with TCP? > > Thanks in advance. > > Regards, > Suman > > -----Original Message----- > From: lvs-users-boun...@linuxvirtualserver.org > [mailto:lvs-users-boun...@linuxvirtualserver.org] On Behalf Of Malcolm > Turnbull > Sent: Monday, June 18, 2018 2:45 PM > To: LinuxVirtualServer.org users mailing list. > <lvs-users@linuxvirtualserver.org> > Subject: Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT > > Suman, > > As far as I know: You can't round robin TCP packets from a single source IP - > UNLESS the connection times out, i.e. you could reduce the timeouts? > UDP has an OPS (one packet scheduler) - But it makes no sense for TCP. > > > > Regards, > > Malcolm Turnbull > > Loadbalancer.org > > > On 18 June 2018 at 09:04, Pandit, Suman <suman.pan...@hpe.com> wrote: >> Hi There, >> Round-Robin algorithm for TCP connection is not working. I am trying to load >> balance SIP packets over TCP connection between multiple real server, But >> every time LVS is sending traffic to same real server if the packet is >> coming from same client. >> Is there any way to load balance SIP TCP packets between multiple real sever >> using round-robin algorithm? >> Any lead will be much appreciated. >> >> Thanks in advance. >> >> Regards, >> Suman Pandit >> _______________________________________________ >> Please read the documentation before posting - it's available at: >> http://www.linuxvirtualserver.org/ >> >> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org >> Send requests to lvs-users-requ...@linuxvirtualserver.org >> or go to http://lists.graemef.net/mailman/listinfo/lvs-users > > _______________________________________________ > Please read the documentation before posting - it's available at: > http://www.linuxvirtualserver.org/ > > LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org Send > requests to lvs-users-requ...@linuxvirtualserver.org > or go to http://lists.graemef.net/mailman/listinfo/lvs-users > > _______________________________________________ > Please read the documentation before posting - it's available at: > http://www.linuxvirtualserver.org/ > > LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org > Send requests to lvs-users-requ...@linuxvirtualserver.org > or go to http://lists.graemef.net/mailman/listinfo/lvs-users _______________________________________________ Please read the documentation before posting - it's available at: http://www.linuxvirtualserver.org/ LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org Send requests to lvs-users-requ...@linuxvirtualserver.org or go to http://lists.graemef.net/mailman/listinfo/lvs-users