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

s96213514 s96213514 at ncnu.edu.tw
Sat Aug 15 10:16:05 BST 2009

   Thanks Malcolm Turnbull and Graeme for suggestions.

   I have tried to set persistence in the virtual server, but the problem still remains.

   My configuration of the front-end server is like below.

echo 1 > /proc/sys/net/ipv4/ip_forward

ifconfig eth0:0 netmask broadcast up
route add -host dev eth0:0
ifconfig eth0:0

ipvsadm -A -t -s wrr -p 3600
ipvsadm -a -t -r -g -w 1
ipvsadm -a -t -r -g -w 1

   My configuration of the back-end server configuration is like below.

echo 1 > /proc/sys/net/ipv4/ip_forward

ifconfig lo:0 netmask broadcast up
route add -host dev lo:0

echo 1 > /proc/sys/net/ipv4/conf/all/hidden
echo 1 > /proc/sys/net/ipv4/conf/lo/hidden

Where am I making mistakes? 
And where the default value or configuration of TCP persistence template is? 
Maybe I can modify the default timeout value.

Thanks a lot.

※ 引述《"Graeme Fowler" <graeme at graemef.net>》之郵件內容: 
>On Sat, 2009-08-15 at 01:28 +0800, s96213514 wrote:
>> 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. 
>Use persistence, as Malcolm mentioned. You don't say how you're managing
>the setup, so how you do that depends on what you're using.
>Persistence makes sessions "sticky" - a client (or clients) will be sent
>to the same realserver for all connections within the idle timeout.
>Please read the documentation before posting - it's available at:
>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

--==Mailed via NCNU E-Mail==--

More information about the lvs-users mailing list