Pacemaker is the logical evolution of Heartbeat, which has merged with other open source software to achieve perfection. Pacemaker is a resource management software. It must be coupled with Corosync which will manage the exchange of information between nodes.
The installation and configuration described here is done on Debian 6.
Installation
For installation, nothing could be simpler on Debian:
# Please read the openais.conf.5 manual pagetotem{version:2# How long before declaring a token lost (ms)token:3000# How many token retransmits before forming a new configurationtoken_retransmits_before_loss_const:10# How long to wait for join messages in the membership protocol (ms)join:60# How long to wait for consensus to be achieved before starting a new round of membership configuration (ms)consensus:3600# Turn off the virtual synchrony filtervsftype:none
# Number of messages that may be sent by one processor on receipt of the tokenmax_messages:20# Limit generated nodeids to 31-bits (positive signed integers)clear_node_high_bit:yes
# Disable encryptionsecauth:off
# How many threads to use for encryption/decryptionthreads:0# Optionally assign a fixed node id (integer)# nodeid: 1234# This specifies the mode of redundant ring, which may be none, active, or passive.rrp_mode:none
interface{# The following values need to be set based on your environmentringnumber:0bindnetaddr:192.168.20.4
mcastaddr:226.94.1.1
mcastport:5405}}amf{mode:disabled
}service{# Load the Pacemaker Cluster Resource Managerver:0name:pacemaker
}aisexec{user:root
group:root
}logging{fileline:off
to_stderr:yes
to_logfile:no
to_syslog:yes
syslog_facility:daemon
debug:off
timestamp:on
logger_subsys{subsys:AMF
debug:off
tags:enter
Finally, edit the /etc/default/corosync file to tell it to start at machine boot: