LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-11-2011, 10:10 AM   #1
bgovoni
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Port bonding won't use active-backup, keeps using round-robin jeriryan Linux - Networking 2 12-09-2010 01:39 PM
Round Robin with Squid marche Linux - Newbie 0 12-19-2008 11:00 AM
How can I setup a round robin DNS server? Does bind 9 do it? abefroman Linux - Software 1 01-25-2006 03:20 AM
dns round-robin tzkolinux Linux - Networking 1 12-27-2004 04:49 AM
Round Robin DNS Lucsi Linux - Software 1 07-18-2002 05:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration