12.5.3.1. Procedure – Configure Heartbeat
Select the cluster in the configuration tree and click the
button below the subwindow on the tab to add theHeartbeat
component.Choose the
template and then change the component name, if needed.The
Heartbeat
component appears in the configuration tree.Define the master and slave hosts in the
field of the Heartbeat main window. Each node must have a unique hostname.Define encryption method for the Heartbeat messages.
The default encryption is sha1, but md5 and CRC are also possible.
Tip It is recommended to use the default sha1 encryption.
Click the
button and give a password.Now the communication channel used to transfer heartbeat messages between the nodes has to be configured. The following steps describe how to configure an Ethernet interface for this purpose. This involves using resources as well; the use of resources is described in Procedure 12.5.4, Configuring Heartbeat resources in detail.
Note When using a serial interface to transfer the heartbeat messages between the two machines, a serial null-modem cable has to be used. It is recommended to use the highest possible communication speed (baud rate). For further information see the documentation of Heartbeat at http://www.linux-ha.org/ConfiguringHeartbeat.
Go to the
Networking
component of the cluster, tab. Create a new interface, for example,eth1
for HA purposes using the button.Link the cluster HA IP address in the
field using the link icon. Enter the broadcast address as well.Set
and the fields, if no defaults are provided.Go to the
Heartbeat
component of the cluster and click at the field. Click and select the newly created interface as the HA interface for Heartbeat using the link icon or the drop down list.Note Heartbeat can use two or more interfaces to avoid false takeovers when the HA interface of a node breaks down. If multiple HA interface are configured, the slave node becomes active only if all HA interfaces stop transmitting heartbeat messages.
Published on June 04, 2020
© 2007-2019 BalaSys
Send your comments to support@balasys.hu