On Aug 15, 2009, at 11:16 , s96213514 wrote:
> Hello,
> Thanks Malcolm Turnbull and Graeme for suggestions.
>
> I have tried to set persistence in the virtual server, but the
> problem still remains.
[...]
> 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
[...]
> 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.
I don't think you need persistence for RTSP, as the tcp connection
on port 554 will remain open during the entire session. However, you
should use e.g. FWMARKs to tie the UDP and TCP part(s) of the session
together.
iptables -A PREROUTING -t mangle -p tcp -d 192.168.10.100 --dport 554 -
j MARK --set-mark 84
iptables -A PREROUTING -t mangle -p tcp -d 192.168.10.100 --dport 8080
-j MARK --set-mark 84
iptables -A PREROUTING -t mangle -p udp -d 192.168.10.100 --dport
6970:7170 -j MARK --set-mark 84
virtual = 84
real = 192.168.10.51 masq 30
real = 192.168.10.52 masq 30
service = none
checktype = connect
checkport = 554
scheduler = wlc
persistent = 60
protocol = fwm
emailalert = "root"
emailalertfreq = 3600
rainer
_______________________________________________
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
|