hello all,
i am trying to setup a little load balancing enviornment...
everything seems to start up fine ... but when i try to connect to the
port 80 of the virtual address, i get connection refused... i currently
only have one piranha box.. do you actually need to have two boxes up
and running to start services (such as incoming port 80 requests on the
virtual address)?
here's my lvs.cf
service = lvs
primary = 38.150.232.41
backup = 0.0.0.0
backup_active = 0
heartbeat = 1
heartbeat_port = 1050
keepalive = 6
deadtime = 18
rsh_command = rsh
network = nat
nat_router = 192.168.1.254 eth1:1
virtual server1 {
address = 38.150.232.47 eth0:1
active = 1
load_monitor = rup
timeout = 5
reentry = 10
port = http
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
scheduler = wlc
persistent = 60
pmask = 255.255.255.225
protocol = tcp
server Real1 {
address = 192.168.1.171
active = 1
weight = 1
}
}
here's output from /var/log/messages
Jun 27 12:34:16 lb pulse[1779]: partner dead: activating lvs
Jun 27 12:34:16 lb lvs: running command "/usr/sbin/ipvsadm" "-C"
Jun 27 12:34:16 lb lvs[1783]: running command "/usr/sbin/ipvsadm" "-A"
"-t" "38.150.232.47:80" "-s" "wlc" "-p" "60" "-M" "255.255.255.225"
Jun 27 12:34:16 lb lvs[1783]: running command "/usr/sbin/nanny" "-c"
"-h" "192.168.1.171" "-p" "80" "-s" "GET / HTTP/1.0\r\n\r\n" "-x" "HTTP"
"-a" "10" "-I" "/usr/sbin/ipvsadm" "-t" "5" "-w" "1" "-V"
"38.150.232.47" "-M" "m" "-U" "rup"
Jun 27 12:34:16 lb lvs[1783]: create_monitor for server1/Real1 running
as pid 1791
Jun 27 12:34:16 lb pulse[1789]: running command "/sbin/ifconfig"
"eth1:1" "192.168.1.254" "up"
Jun 27 12:34:16 lb pulse[1788]: running command "/usr/sbin/send_arp"
"-i" "eth1" "192.168.1.254" "0050BA85777D" "192.168.1.255"
"ffffffffffff"
Jun 27 12:34:16 lb nanny[1791]: starting LVS client monitor for
38.150.232.47:80
Jun 27 12:34:16 lb pulse[1792]: running command "/sbin/ifconfig"
"eth0:1" "38.150.232.47" "up"
Jun 27 12:34:16 lb nanny[1791]: making 192.168.1.171:80 available
Jun 27 12:34:16 lb nanny[1791]: running command "/usr/sbin/ipvsadm"
"-a" "-t" "38.150.232.47:80" "-r" "192.168.1.171" "-m" "-w" "1"
Jun 27 12:34:16 lb pulse[1790]: running command "/usr/sbin/send_arp"
"-i" "eth0" "38.150.232.47" "00A0CC3570C7" "38.150.232.63"
"ffffffffffff"
Jun 27 12:34:21 lb nanny[1791]: running command "rup" "192.168.1.171"
Jun 27 12:34:21 lb pulse[1787]: gratuitous lvs arps finished
i am using :
redhat 6.2
piranha-0.4.14-1.i386.rpm
ipvsadm-1.1-2.i386.rpm
2.2.14-5.0
thanks!!
-ed
|