[lvs-users] The streaming connection would be disconnected when two minutes period is reached on LVS-DR

Malcolm Turnbull malcolm at loadbalancer.org
Fri Aug 14 19:30:26 BST 2009

ipvsadm -L -timeout is only required when persistence > 15mins

Are you sure you have actually set persistence in the virtual server definition?

Default TCP persistence template is 2mins (which would explain your
connection break)

We've never had any problems with RTSP.

2009/8/14 s96213514 <s96213514 at ncnu.edu.tw>
> Dear all,
>   I have set a streaming server on LVS-DR architecture and its setting is like below.
> LVS-DR: one front-end server and multiple real-servers
> Front-end server: Linux kernel 2.6.18
> Real-servers: Linux kernel 2.6.18 + Darwin streaming server 5.5.5
>   I use Direct Routing architecture with WRR policy to distribute connections to each real-server evenly.
>   However, in my test, if the client watches the streaming movie via LVS, the streaming connection would be disconnected when 2 minutes period is reached. This does not occur if the client connects directly to one of the real-servers. The streaming server uses the RTSP protocol which is based on TCP protocol to establish streaming connection with clients.
>   I have tried to use ipvsadm -set and ipvsadm -L -timeout in command line to check and modify the LVS’ timeout value, and the value of tcp_keepalive_time (/proc/sys/net/ipv4/tcp_keepalive_time). I also have modified IPVS’ timeout table in Linux kernel (/net/ipv4/ipvs/ip_vs_proto_tcp.c), but the problem still remains.
>   Any suggestions are appreciated.
> --==Mailed via NCNU E-Mail==--
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
> LinuxVirtualServer.org mailing list - lvs-users at LinuxVirtualServer.org
> Send requests to lvs-users-request at LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users


Malcolm Turnbull.

Loadbalancer.org Ltd.
Phone: +44 (0)870 443 8779

More information about the lvs-users mailing list