Difference between revisions of "Building Helix Server Cluster using LVS"

From LVSKB
Jump to: navigation, search
(VS/NAT)
(VS/DR)
Line 41: Line 41:
 
|| VIP/eth0:0 ||  192.168.9.200/24
 
|| VIP/eth0:0 ||  192.168.9.200/24
 
|-
 
|-
|| LB ||  192.168.9.244
+
|| LB/eth0 ||  192.168.9.244
 
|-
 
|-
 
||RS1 || 192.168.9.150 with lo0:0 192.168.9.244/32 noarp
 
||RS1 || 192.168.9.150 with lo0:0 192.168.9.244/32 noarp

Revision as of 14:26, 1 January 2007

Introduction

RealNetworks' streaming service uses the following protocols:

  • PNM (TCP on port 7070, UDP from server -> player on ports 6970-7170)
  • RTSP (TCP on port 554, similar UDP as above, but often on multiple ports)
  • PNM was our original, but now mostly legacy, protocol used in our versions 1 through 5.
  • There's also a HTTP/TCP-only fallback mode which is (usually) on port 8080.

Architecture

Configuration Example

VS/NAT

VIP/EXT IP 192.168.9.244
GATEWAY IP 192.168.0.1
RS1 192.168.0.150
RS2 192.168.0.160


Run the follwing script on LB Server:

ipvsadm -A -t 192.168.9.244:554  -s rr
ipvsadm -a -t 192.168.9.244:554  -r 192.168.0.150 -m
ipvsadm -a -t 192.168.9.244:554  -r 192.168.0.160 -m

Run

realplay rtsp://192.168.9.244/test.rm

for a test.


VS/DR

VIP/eth0:0 192.168.9.200/24
LB/eth0 192.168.9.244
RS1 192.168.9.150 with lo0:0 192.168.9.244/32 noarp
RS2 192.168.9.160 with lo0:0 192.168.9.244/32 noarp

Run the follwing script on LB Server:

ipvsadm -C
ipvsadm -A -t 192.168.9.200:554  -s rr
ipvsadm -a -t 192.168.9.200:554  -r 192.168.9.150 -g
ipvsadm -a -t 192.168.9.200:554  -r 192.168.9.160 -g

Run

realplay rtsp://192.168.9.200/test.rm

for a test.

Conclusion

References


LVS.png "Building Helix Server Cluster using LVS" is an LVS Example related stub. You can help LVSKB by expanding it