NLB 節點依存於負載平衡應用程式

Microsoft.Windows.NetworkLoadBalancing.ServerRoleDependsOnAnotherServerRole (DependencyMonitor)

Knowledge Base article:

摘要

這是相依性彙總套件監視,該監視可在對應的管理套件報告時彙總負載已平衡的應用程式的狀態。在探索到 NLB 節點和負載平衡應用程式之間的關係之前,此監視的狀態將會設為未監視。

此監視有 2 個相關的復原 (預設為停用),您需要建立覆寫以啟用它們。第一個復原設為在監視狀態變更為錯誤時執行。當發生這種情況時,此復原會將此 NLB 節點從 NLB 叢集移除。第二個復原設為在監視狀態變更為成功時執行。當發生這種情況時,此復原會將此 NLB 節點重新加入 NLB 叢集。

原因

如果負載平衡應用程式處於錯誤狀態,此監視將會進入錯誤狀態。

解決方式

使用健全狀況總管來判定負載平衡應用程式處於錯誤或警告狀態的根本原因。建議您在進行負載平衡應用程式疑難排解時,將此節點從 NLB 叢集移除。這將可確定只有狀況良好的節點會接收到要求。您可使用「停止 NLB 節點」工作將 NLB 節點從叢集移除。

停止 NLB 節點

Element properties:

TargetMicrosoft.Windows.NetworkLoadBalancing.ServerRole
Parent MonitorSystem.Health.AvailabilityState
AlgorithmWorstOf
Source MonitorSystem.Health.AvailabilityState
RelationshipMicrosoft.Windows.NetworkLoadBalancing.ServerRoleContainsDependantServerRole
CategoryCustom
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
RemotableTrue
AccessibilityPublic
Alert Message
負載平衡應用程式狀況不良
{0} 上執行的負載平衡應用程式狀況不良。NLB 節點屬於 IP 為 {1} 之叢集的一部分。

Source Code:

<DependencyMonitor ID="Microsoft.Windows.NetworkLoadBalancing.ServerRoleDependsOnAnotherServerRole" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.NetworkLoadBalancing.ServerRole" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" RelationshipType="Microsoft.Windows.NetworkLoadBalancing.ServerRoleContainsDependantServerRole" MemberMonitor="Health!System.Health.AvailabilityState">
<Category>Custom</Category>
<AlertSettings AlertMessage="Microsoft.Windows.NetworkLoadBalancing.ServerRoleDependsOnAnotherServerRole_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="Microsoft.Windows.NetworkLoadBalancing.ServerRole"]/ClusterIP$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<Algorithm>WorstOf</Algorithm>
<MemberUnAvailable>Error</MemberUnAvailable>
</DependencyMonitor>