Availability Replica Data Synchronization (rollup)

Microsoft.SQLServer.Core.Rollup.AvailabilityGroup.AvailabilityReplicasSynchronizing (AggregateMonitor)

This monitor rolls up the data synchronization state of all Availability Replicas in the Availability Group and check whether any Availability Replica’s synchronization is not operational. The monitor is unhealthy if any of Availability Replica’s data synchronization state is NOT SYNCHRONIZING. The monitor is healthy when none of Availability Replica’s data synchronization state is NOT SYNCHRONIZING. This monitor is an aggregate (rollup) monitor.

Knowledge Base article:

Summary

This monitor rolls up the data synchronization state of all Availability Replica's in the Availability Group and check whether any Availability Replica’s synchronization is not operational. The monitor is unhealthy if any of Availability Replica’s data synchronization state is NOT SYNCHRONIZING. The monitor is healthy if none of Availability Replica’s data synchronization state is NOT SYNCHRONIZING.

Causes

In this Availability Group, at least one secondary replica has a NOT SYNCHRONIZING synchronization state and is not receiving data from the primary replica.

Resolutions

Find the Availability Replica with NOT SYNCHRONIZING state using Availability Replica Monitor State and resolve the issue at the Availability Replica.

Overridable Parameters

Name

Description

Default Value

Enabled

Enables or disables the workflow.

Yes

Generates Alerts

Defines whether the workflow generates an Alert.

No

Element properties:

TargetMicrosoft.SQLServer.Core.AvailabilityGroup
Parent MonitorSystem.Health.AvailabilityState
AlgorithmWorstOf
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
Alert Auto ResolveTrue
RemotableTrue
AccessibilityPublic
Alert Message
MSSQL: Availability Replica is not synchronizing
The Availability Group {0} contains not synchronizing replicas.
Cluster Name: {1}
Primary Replica: {2}

Source Code:

<AggregateMonitor ID="Microsoft.SQLServer.Core.Rollup.AvailabilityGroup.AvailabilityReplicasSynchronizing" Accessibility="Public" Enabled="true" Target="Microsoft.SQLServer.Core.AvailabilityGroup" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.Core.Rollup.AvailabilityGroup.AvailabilityReplicasSynchronizing.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="System!System.Entity"]/DisplayName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="Microsoft.SQLServer.Core.AvailabilityGroup"]/ClusterName$</AlertParameter2>
<AlertParameter3>$Target/Property[Type="Microsoft.SQLServer.Core.AvailabilityGroup"]/PrimaryReplicaServerName$</AlertParameter3>
</AlertParameters>
</AlertSettings>
<Algorithm>WorstOf</Algorithm>
</AggregateMonitor>