I started working with Linux 4 days ago, so please pardon any newb-ness on my part.
I'm trying to set up a load balancer right now, but I'm having trouble getting it to actually load balance. I'm currently testing everything via VMs atm.
IP addresses
Director: 10.10.10.204
Backup: 10.10.10.215
Real Server 1: 10.10.10.247
Real Server 2: 10.10.10.248
VIP I want to use: 10.10.10.193
My operating system is CentOS 5.1, kernel 2.6.18-53.1.13.el5
I have apache set up on the two real servers for testing purposes. Yesterday, I was able to get it working - typing 10.10.10.193 into a browser took me to Real Server 1 (10.10.10.247).
Today, I tried adding in the second real server. Now, it seems as though 10.10.10.193 will ONLY take me to 10.10.10.248. I have it set up on Piranha to use round robin, but it's not working.
I've tried looking at tail -f /var/log/messages, and I noticed that when I start pulse, I'm not getting the message "gratuitous lvs arps finished"
Instead, I get this
Quote:
May 8 06:45:38 localhost pulse[12248]: STARTING PULSE AS MASTER
May 8 06:45:40 localhost pulse[12248]: backup inactive: activating lvs
May 8 06:45:40 localhost lvs[12250]: starting virtual service VIP active: 80
May 8 06:45:40 localhost nanny[12255]: starting LVS client monitor for 10.10.10.193:80
May 8 06:45:40 localhost lvs[12250]: create_monitor for VIP/Two_One running as pid 12255
May 8 06:45:40 localhost nanny[12256]: starting LVS client monitor for 10.10.10.193:80
May 8 06:45:40 localhost lvs[12250]: create_monitor for VIP/Two_Two running as pid 12256
May 8 06:45:40 localhost nanny[12255]: making 10.10.10.247:80 available
May 8 06:45:40 localhost nanny[12256]: making 10.10.10.248:80 available
May 8 06:45:40 localhost avahi-daemon[2133]: Registering new address record for 10.10.10.193 on eth0.
May 8 06:45:40 localhost avahi-daemon[2133]: Withdrawing address record for 10.10.10.193 on eth0.
May 8 06:45:40 localhost avahi-daemon[2133]: Registering new address record for 10.10.10.193 on eth0.
May 8 06:45:40 localhost avahi-daemon[2133]: Withdrawing address record for fe80::20c:29ff:fe16:e71f on eth0.
May 8 06:45:40 localhost avahi-daemon[2133]: Withdrawing address record for 10.10.10.204 on eth0.
May 8 06:45:40 localhost avahi-daemon[2133]: Host name conflict, retrying with <localhost-251>
May 8 06:45:40 localhost avahi-daemon[2133]: Registering new address record for fe80::20c:29ff:fe16:e71f on eth0.
May 8 06:45:40 localhost avahi-daemon[2133]: Registering new address record for 10.10.10.193 on eth0.
May 8 06:45:40 localhost avahi-daemon[2133]: Registering new address record for 10.10.10.204 on eth0.
May 8 06:45:40 localhost avahi-daemon[2133]: Registering HINFO record with values 'I686'/'LINUX'.
May 8 06:45:41 localhost avahi-daemon[2133]: Withdrawing address record for fe80::20c:29ff:fe16:e71f on eth0.
May 8 06:45:41 localhost avahi-daemon[2133]: Withdrawing address record for 10.10.10.204 on eth0.
May 8 06:45:41 localhost avahi-daemon[2133]: Host name conflict, retrying with <localhost-252>
May 8 06:45:41 localhost avahi-daemon[2133]: Registering new address record for fe80::20c:29ff:fe16:e71f on eth0.
May 8 06:45:41 localhost avahi-daemon[2133]: Registering new address record for 10.10.10.193 on eth0.
May 8 06:45:41 localhost avahi-daemon[2133]: Registering new address record for 10.10.10.204 on eth0.
May 8 06:45:41 localhost avahi-daemon[2133]: Registering HINFO record with values 'I686'/'LINUX'.
May 8 06:45:42 localhost avahi-daemon[2133]: Withdrawing address record for fe80::20c:29ff:fe16:e71f on eth0.
May 8 06:45:42 localhost avahi-daemon[2133]: Withdrawing address record for 10.10.10.204 on eth0.
May 8 06:45:42 localhost avahi-daemon[2133]: Host name conflict, retrying with <localhost-253>
May 8 06:45:42 localhost avahi-daemon[2133]: Registering new address record for fe80::20c:29ff:fe16:e71f on eth0.
May 8 06:45:42 localhost avahi-daemon[2133]: Registering new address record for 10.10.10.193 on eth0.
May 8 06:45:42 localhost avahi-daemon[2133]: Registering new address record for 10.10.10.204 on eth0.
May 8 06:45:42 localhost avahi-daemon[2133]: Registering HINFO record with values 'I686'/'LINUX'.
|
And this just keeps going and going and going. I tried searching up online, but it doesn't seem as though anybody has had the same problem as me.
Here's my lvs.cf file
Quote:
serial_no = 51
primary = 10.10.10.204
service = lvs
backup_active = 1
backup = 10.10.10.215
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = direct
debug_level = NONE
monitor_links = 0
virtual VIP {
active = 1
address = 10.10.10.193 eth0:1
vip_nmask = 255.255.255.0
port = 80
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
use_regex = 0
load_monitor = none
scheduler = rr
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 0
server Two_One {
address = 10.10.10.247
active = 1
weight = 1
}
server Two_Two {
address = 10.10.10.248
active = 1
weight = 1
}
}
|
I followed the instructions from the the centos.org site for setting up a LVS, but I also tinkered a bit with everything when it didn't work for me.
Please help
This problem has maketh me very sad.