Heartbeat-driven Apache HA Setup and Production Maintenance Guide
Practical Example: Highly Available Apache Web Service with Heartbeat
1. Lab Environment
Two RHEL/CentOS hosts:
node-a – 192.168.1.130
node-b – 192.168.1.129
A floating virtual IP (VIP) 192.168.1.131/24 will be managed by Heartbeat and bound to whichever node is active.
2. Install Apache on Both Nodes
sudo yum install -y httpd
3. Prepare the ...
Posted on Sun, 17 May 2026 16:29:21 +0000 by saqibb
Keepalived High Availability Configuration and Testing
Virtual IP Configuration
virtual_ipaddress {
10.0.0.3/24 dev eth0 label eth0:1
}
track_script {
health_check
}
Failover Testing
[root@lb01 ~]# systemctl is-active nginx
active
[root@lb01 ~]# ip a | grep 0.3
inet 10.0.0.3/24 scope global secondary eth0:1
[root@lb01 ~]# systemctl stop nginx
[root@lb01 ~]# ip a | grep 0.3
# VIP migrated after ...
Posted on Sat, 16 May 2026 22:21:57 +0000 by BrianG