LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] The streaming connection would be disconnected when two

To: "lvs-users" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] The streaming connection would be disconnected when two minutes period is reached on LVS-DR
From: "s96213514" <s96213514@xxxxxxxxxxx>
Date: Sat, 15 Aug 2009 17:16:05 +0800 (CST)
Hello,
   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 192.168.10.100 netmask 255.255.255.255 broadcast 192.168.10.255 
up
route add -host 192.168.10.0 dev eth0:0
ifconfig eth0:0

ipvsadm -A -t 192.168.10.100:554 -s wrr -p 3600
ipvsadm -a -t 192.168.10.100:554 -r 192.168.10.51 -g -w 1
ipvsadm -a -t 192.168.10.100:554 -r 192.168.10.52 -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 192.168.10.100 netmask 255.255.255.255 broadcast 192.168.10.255 up
route add -host 192.168.10.0 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@xxxxxxxxxxx>》之郵件內容: 
>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.
>
>Graeme
>
>
>_______________________________________________
>Please read the documentation before posting - it's available at:
>http://www.linuxvirtualserver.org/
>
>LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
>Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
>or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>

--==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@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
<Prev in Thread] Current Thread [Next in Thread>