可用性群組自動容錯移轉 (彙總)

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

此監視器會查看可用性群組是否至少有一個已備妥可進行容錯移轉的次要複本。當主要複本的容錯移轉模式為自動,但是可用性群組中的次要複本都未備妥可進行自動容錯移轉時,監視器就會變成狀況不良的狀態,並會登錄一則警示。若至少有一個次要複本已備妥可進行自動容錯移轉,表示監視器狀況良好。此監視器是彙總監視器。

Knowledge Base article:

摘要

此監視器會檢查可用性群組是否至少有一個次要複本可以進行容錯移轉。當主要複本的容錯移轉模式為自動,但可用性群組中的沒有任何次要複本可以進行自動容錯移轉時,監視器就會呈現狀況不良的狀態並登錄一則警示。至少要有一個次要複本可以進行自動容錯移轉,監視器才會是狀況良好的狀態。

原因

可用性群組尚無法供自動容錯移轉之用。主要複本已設定供自動容錯移轉之用,但次要複本尚無法供自動容錯移轉之用。設定要供自動容錯移轉之用的次要複本可能無法使用,或其資料同步狀態目前不是「已同步」。

解決方式

可覆寫的參數

名稱

描述

預設值

警示優先順序

定義警示優先順序。

一般

警示嚴重性

定義警示嚴重性。

錯誤

已啟用

啟用或停用該工作流程。

產生警示

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

Element properties:

TargetMicrosoft.SQLServer.Core.AvailabilityGroup
Parent MonitorSystem.Health.AvailabilityState
AlgorithmWorstOf
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
RemotableTrue
AccessibilityPublic
Alert Message
MSSQL: 可用性群組尚未備妥可進行自動容錯移轉
可用性群組 {0} 已設定為自動容錯移轉,不過尚未準備進行自動容錯移轉

Source Code:

<AggregateMonitor ID="Microsoft.SQLServer.Core.Rollup.AvailabilityGroup.AutomaticFailoverReadiness" 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.AutomaticFailoverReadiness.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</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>