可用性複本資料同步 (彙總)

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

此監視器會彙總可用性群組中所有可用性複本的資料同步狀態,並會查看是否有任何可用性複本的同步未運作。若有任何可用性複本的資料同步狀態為「不在同步中」,表示監視器狀況不良。若沒有任何可用性複本的資料同步處理狀態為「不在同步中」,則表示監視器狀況良好。此監視器是彙總監視器。

Knowledge Base article:

摘要

此監視器會彙總可用性群組中所有可用性複本的資料同步狀態,並會檢查有無任何可用性複本的同步作業無法運作。如有任何可用性複本的資料同步狀態為「不在同步中」,監視器會是狀況不良的狀態。若無任何可用性複本的資料同步狀態為「不在同步中」,監視器就會呈現狀況良好的狀態。

原因

在此可用性群組中,至少有一個次要複本為「不在同步中」狀態,而且未從主要複本接收資料。

解決方式

使用可用性複本監視器狀態,尋找狀態為「不在同步中」的可用性複本,並解決可用性複本的問題。

可覆寫的參數

名稱

描述

預設值

已啟用

啟用或停用該工作流程。

產生警示

定義工作流程是否要產生警示。

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 MessageMicrosoft.SQLServer.Core.Rollup.AvailabilityGroup.AvailabilityReplicasSynchronizing.AlertMessage

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>