Heartbeat: Heart of High-Availability Linux

Environment
Redhat-based linux (Fedora, CentOS)

Installation
yum install heartbeat

Minimum Configuration
/etc/ha.d/ha.cf
node heartbeat1
node heartbeat2
bcast eth0
auto_failback off

/etc/ha.d/haresources
heartbeat1 192.168.85.3/27/192.168.85.16

/etc/ha.d/authkeys
auth 1
1 sha1 passwordString

Few description
/etc/ha.d/ha.cf
node xxx
node nodename = Indicate node in this heartbeat cluster
we can obtain nodename via uname -n command

bcast eth0
bcast interface = Specfiy interface to be broadcast heartbeat packet

auto_failback off
auto_failback on|off = Specifiy heartbeat will return ip to master after reborn

/etc/ha.d/ha.resources
heartbeat1 192.168.85.3/27/192.168.85.16
master ip address/mask bit/broadcast address

/etc/ha.d/authkeys
auth 1
auth selected-key-id = Specify which key to use

1 sha1 passwordString
id encryption-type key-string