LLI Wiki — My Digital Knowledge Base

WSFC: heartbeat delays and ping-loss thresholds

FailoverClusters PowerShell commands to set the same-site and cross-site heartbeats and the ping-loss thresholds of a WSFC cluster hosting an availability group.

Windows Server Failover Clustering (WSFC) uses heartbeats to detect a lost node. This article sets the same-site and cross-site heartbeat delays and the ping-loss thresholds of a cluster that hosts a SQL Server availability group.

Steps

  1. Import the FailoverClusters module:
Import-Module FailoverClusters
  1. Set the same-site heartbeat to 2 seconds:
(get-cluster).SameSubnetDelay = 2000
  1. Set the cross-site heartbeat to 4 seconds:
(get-cluster).CrossSubnetDelay = 4000
  1. Set the same-site ping-loss threshold to 10 lost pings:
(get-cluster).SameSubnetThreshold = 10
  1. Set the cross-site ping-loss threshold to 10 lost pings:
(get-cluster).CrossSiteThreshold = 10

Notes

Mastodon LLIMastodon SocialFosstodon