限制模式下的 Worker

Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Monitor.WorkerThrottlingMode (UnitMonitor)

监视 Worker 是否处于限制模式。

Knowledge Base article:

摘要

检查 Worker 是否处于限制模式。

原因

如果监视器处于错误状态,则 Runbook Worker 过载并且不会选择新作业。

解决方法

当 Runbook Worker 达到稳定状态并且能够选择新作业时,它将退出限制模式。

配置

可以在此监视器上配置以下选项:

选项

定义

默认值

警报所处状态

生成警报的监视器的健康状况。

监视器处于严重健康状况

警报优先级

针对此监视器生成的警报的优先级。

警报严重性

针对此监视器生成的警报的优先级。

严重

自动解决警报

指定当监视器恢复正常状态时是否应该自动解决警报。

CounterName

性能计数器的名称。不应该覆盖此值,除非由语言包进行覆盖。

WorkerThrottlingMode

已启用

指定是否应该运行监视器。

生成警报

指定当更改为警告或严重状态时监视器是否应该生成警报。

Element properties:

TargetMicrosoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Worker
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.ServiceManagementAutomation.2012R2.Performance.MonitorType.ConsecutiveSamplesThreshold
RemotableTrue
AccessibilityPublic
Alert Message
限制模式下的 Worker
Runbook Worker 当前处于限制模式。在解决此问题之前,这将阻止执行新作业。上一个测量值为 {0}。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Monitor.WorkerThrottlingMode" Accessibility="Public" Enabled="true" Target="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Worker" ParentMonitorID="Health!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Performance.MonitorType.ConsecutiveSamplesThreshold" ConfirmDelivery="false">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Monitor.WorkerThrottlingMode.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Value$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ConditionTrue" MonitorTypeStateID="ConditionTrue" HealthState="Warning"/>
<OperationalState ID="ConditionFalse" MonitorTypeStateID="ConditionFalse" HealthState="Success"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName>WorkerThrottlingMode</CounterName>
<ObjectName>Orchestrator Worker Performance Counters</ObjectName>
<InstanceName/>
<AllInstances>true</AllInstances>
<Frequency>600</Frequency>
<ScaleBy>1</ScaleBy>
<Threshold>0</Threshold>
<Direction>greater</Direction>
<NumSamples>3</NumSamples>
</Configuration>
</UnitMonitor>