First off, I'm trying to create a "cloud-based" load balancer to pass traffic back and forth between two Icecast2 servers (both hosting content on port 8000 on different networks than my load balancer). I have searched and searched the Inteet and can't find the resolution to my problem.
I'm a newbie so please be gentle. ![]()
Jumping ahead a bit... ipvsadm is installed and "seems" to be working.
The following is my ipvsadm.rules file (located /etc/ipvsadm.rules)
Code:
-A -t icy.hostedbysmitty.com:8000 -s rr -a -t icy.hostedbysmitty.com:8000 -r icynyc1.hostedbysmitty.com:8000 -g -w 25 -a -t icy.hostedbysmitty.com:8000 -r 66-237-51-34.starstream.net:8000 -g -w 75
I'd like 25% of the traffic to go to server 1, 75% to server 2.
When I type command "root@icy:~# nano /etc/default/ipvsadm this is what I see:
Code:
# ipvsadm # if you want to start ipvsadm on boot set this to true AUTO="true" # daemon method (none|master|backup) DAEMON="master" # use interface (eth0,eth1...) IFACE="eth0" # syncid to use SYNCID="1"
Code:
IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveCo InActCo TCP icy.hostedbysmitty.com:8000 rr -> icynyc1.hostedbysmitty.com:8 Route 25 0 0 -> 66-237-51-34.starstream.net: Route 75 0 0
What am I missing? I feel like I'm VERY close!
Any help is appreciated and please be gentle. Been leaing Ubuntu on my own like many others.
برچسب:
نویسنده: استخدام کار