Load Balancing Issue - can someone help?
"Ian Walker" <[email protected]>
| Newsgroups | gmane.linux.highavailability.ultramonkey |
|---|---|
| Message-ID | <[email protected]> |
Have been trying to get my config to work, using ftp but it doesn't seem to
work on RHEL3U7. Here's my config:
virtual = 172.20.12.231:22
real = 192.168.0.2:22 masq
real = 192.168.0.3:22 masq
service = ftp
request = "/etc/welcome.msg"
receive = "Welcome"
login = "anonymous"
passwd = "[email protected]"
scheduler = rr
protocol = tcp
checktype = negotiate
I've validated that it's running OK using "ipvsadm -ln" and it shows the
following results:
IP Virtual Server version 1.0.8 (size=65536)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 172.20.12.231:22 rr
-> 192.168.0.3:22 Masq 0 0 0
-> 192.168.0.2:22 Masq 0 0 0
and everytime I try to connect with FTP it fails with connection refused. I
did change the config so that it was configured for telnet just to test, so
my config was:
virtual = 172.20.12.231:23
real = 192.168.0.2:23 masq
real = 192.168.0.3:23 masq
service = none
request = "/etc/welcome.msg"
receive = "Welcome"
scheduler = rr
protocol = tcp
checktype = negotiate
and this time when I ran the "ipvsadm -ln --connection" command, I got these
results:
IPVS connection entries
pro expire state source virtual destination
TCP 00:59 SYN_RECV 172.20.12.17:41271 172.20.12.231:23 192.168.0.2:23
so is kind of looking better. I then checked the stats to find:
IP Virtual Server version 1.0.8 (size=65536)
Prot LocalAddress:Port Conns InPkts OutPkts InBytes
OutBytes
-> RemoteAddress:Port
TCP 172.20.12.231:23 1 3 0 180
0
-> 192.168.0.2:23 1 3 0 180
0
-> 192.168.0.3:23 0 0 0 0
0
so I'm not entirely sure why it's not working as the connection just sits
there trying to connect with telnet, and nothing else happens. I've
installed the relevant packages for the ldirector as well as the
arptables_jf package for RHEL3.
The ldirector has been configured with two network cards. The main network
being 172.20.12.231. This ip is assigned to eth0. The other card, eth1 has
been configured with 192.168.0.1.
The two servers running ftp have been configured with 192.168.0.2 and
192.168.0.3. Of course, with ftp there was nothing, no connection or no
stats, that's why I configured with telnet, just to see if anything would
show.
Hope I've not sent this to the wrong place, am quite interested in getting
this working.
Regards
Ian