LVS with active/standby instead or round robin type setup
Hello, I'm trying to an LVS cluster with two nodes. I want one to be primary and then if it goes down, the second (backup) node will take its place. But I can't see seem to get LVS working without doing a round robin type setup. Like my connections go to one or the other box. I want one box to only receive connections and the other only if the primary goes down. Here are my configs. Is this even possible with LVS?
NODE 1
serial_no = 64
primary = 10.159.32.202
service = lvs
backup_active = 1
backup = 10.159.32.202
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = direct
debug_level = NONE
monitor_links = 0
syncdaemon = 1
virtual dns_vip {
active = 1
address = 10.159.32.200 eth0:1
vip_nmask = 255.255.240.0
port = 3636
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
use_regex = 0
load_monitor = none
scheduler = wlc
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 0
server ns1 {
address = 10.159.32.201
active = 1
weight = 1
}
server ns2 {
address = 10.159.32.202
active = 1
weight = 1
}
}
virtual www {
active = 0
address = 10.159.32.200 eth0:1
port = 80
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
use_regex = 0
load_monitor = none
scheduler = wlc
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 0
server ns1 {
address = 10.159.32.201
active = 1
weight = 1
}
server ns2 {
address = 10.159.32.202
active = 1
weight = 1
}
}
NODE2
serial_no = 63
primary = 10.159.32.201
service = lvs
backup_active = 1
backup = 10.159.32.201
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = direct
debug_level = NONE
monitor_links = 0
syncdaemon = 1
virtual www {
active = 0
address = 10.159.32.200 eth0:1
port = 80
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
use_regex = 0
load_monitor = none
scheduler = wlc
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 0
server ns1 {
address = 10.159.32.201
active = 1
weight = 1
}
server ns2 {
address = 10.159.32.202
active = 1
weight = 1
}
}
Last edited by bgovoni; 03-11-2011 at 10:14 AM.
|