![]() |
Loadbalanced High-Availability Apache Cluster
Hi all,
I'm building a Loadbalanced HA Apache Cluster following the HOW-TO from Falko. I've done everything as he explained just changing my nodenames and IP's, and it all seems to be fine, but when I start heartbeat on both loadb servers, they both become active, when they're supposed to be one active and the other on hot-standby. I've checked config files a thousand times and I can't guess what's going wrong. Below I attach my config files on load balancers. LOADB1 & LOADB2 (as config files must be identical) /etc/ha.d/ha.conf Code:
logfacility local0Code:
loadb1.mydomain.com ldirectord::ldirectord.cf LVSSyncDaemonSwap::master IPaddr2::xxx.xxx.xxx.xxx/27/eth0/nnn.nnn.nnn.nnn/etc/ha.d/ldirectord.cf Code:
checktimeout=10That's the output a few seconds after I started heartbeat on both servers: Loadb1 Code:
# ip addr sh eth0Code:
# ip addr sh eth0My OS is Fedora Core 5 on all servers (load balancers and apache nodes). Please anyone can help me? Thanks in advance. |
OK, it was an IPTABLES issue, I should have checked that before :o
For those who may have same issue, adding that to iptables config file fixed my problem: Loadb1 Code:
-A RH-Firewall-1-INPUT -p ip -m comment -m state -s bbb.bbb.bbb.bbb --state NEW -j ACCEPT --comment HearbeatCode:
-A RH-Firewall-1-INPUT -p ip -m comment -m state -s aaa.aaa.aaa.aaa --state NEW -j ACCEPT --comment HearbeatRegards! |
Virtual IP on two machines
Hi all
I’ve just completed the howto, and one thing hit me. If the two apache nodes answer to the reply on the new virtual address, what’s from stopping the network traffic to get to them directly? If I stop the ldirectord and ultra monkey on the load balancer the setup still works, I get an error the first time I load the virtual URL but the second time I get in contact with one server. Does this present some error to the setup that I haven’t understood? Is the apache nodes supposed to sit on a private network behind the load balancers? Do I need two NICs in the load balancers? I must also say that I haven’t followed the howto exactly; I have done it with a twist you might say. The two apache nodes run FreeBSD and the NICs on those machines have there real address and an alias with the virtual address. |
Quote:
Quote:
Quote:
|
Quote:
Can you also specify if the arp... changes to the kernel on the apache nodes apply to ignore warnings about several machines on the network using the same IP, this is an error that I get on the nodes, running FreeBSD. |
| All times are GMT +2. The time now is 03:34. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.