This guide shows how you can set up a two node, high-availability HTTP cluster with heartbeat on CentOS. Both nodes use the Apache web server to serve the same content.
Pre-Configuration Requirements
1. Assign hostname node01 to primary node with IP address 172.16.4.80 to eth0.
2. Assign hostname node02 to slave node with IP address 172.16.4.81.
Note: on node01
uname -n
must return node01.
On node02
uname -n
Remove ads
must return node02.
172.16.4.82 is the virtual IP address that will be used for our Apache webserver (i.e., Apache will listen on that address).