How To Change Pacemaker Cluster Heartbeat Timeout In CentOS/RHEL 7

Question: How to change pacemaker cluster heartbeat timeout in CentOS/RHEL 7?

By default, the heartbeat of pacemaker in CentOS/RHEL 7 is set to 1000(ms), you could increase it by the below steps.

1. Appending/Chaning the token to the totem section in the corosync config file /etc/corosync/corosync.conf.

# cat /etc/corosync/corosync.conf
totem {
    version: 2
    cluster_name: pcmk
    secauth: off
    transport: udpu
    token: 10000     
}

2. After adding/editing token to the corosync.conf, on the modified node, sync config file to all cluster nodes manually:

# pcs cluster sync

3. Reload corosync by below command, the command will take effect to all nodes without a downtime.

# pcs cluster reload corosync

4. For verifying, use the below command and check the attribute ‘runtime.config.totem.token

# corosync-cmapctl | grep totem.token
Related Post