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
- Import the FailoverClusters module:
Import-Module FailoverClusters
- Set the same-site heartbeat to 2 seconds:
(get-cluster).SameSubnetDelay = 2000
- Set the cross-site heartbeat to 4 seconds:
(get-cluster).CrossSubnetDelay = 4000
- Set the same-site ping-loss threshold to 10 lost pings:
(get-cluster).SameSubnetThreshold = 10
- Set the cross-site ping-loss threshold to 10 lost pings:
(get-cluster).CrossSiteThreshold = 10
Notes
- The source gives no command for step 5. The command above uses the
CrossSiteThresholdproperty, which is the cross-site threshold listed in the related article on cluster network thresholds. - The source asks to replace
clusternamewith the name of the WSFC cluster; the commands shown act on the cluster returned byGet-Cluster.