خرید بک لینک

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
Explanation of the above code.
-A is the server where ipvsadm is installed (14.04.4 x64 - the load balancer/director and same place ipvsadm is installed)
-a Server #1 hosting content on port 8000
-a Server #2 hosting content on port 8000

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"
When I type command "root@icy:~# ipvsadm -l" this is what I see:

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
When I visit http://icy.hostedbysmitty.com:8000 I get nothing. What I should see either server 1 or server 2's status page (seen here: http://icynyc1.hostedbysmitty.com:8000/)...

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.

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 22 ارديبهشت 1395 ساعت: 4:20

صفحه بندی