MSSQL 2012-Replikation: Anzahl ausstehender Befehle in der Verteilungsdatenbank

Microsoft.SQLServer.2012.Replication.CollectionRule.Distributor.DistributionDBPendingCmdsPerformanceCounter (Rule)

Die Anzahl der Befehle in der Verteilungsdatenbank, für die die Replikation aussteht.

Knowledge Base article:

Zusammenfassung

Die Anzahl der Befehle in der Verteilungsdatenbank, für die die Replikation aussteht.

Überschreibbare Parameter

Name

Beschreibung

Standardwert

Aktiviert

Aktiviert oder deaktiviert den Workflow.

Ja

Intervall (Sekunden)

Das periodische Intervall in Sekunden, in dem der Workflow ausgeführt werden soll.

300

Timeout (Sekunden)

Timeout (Sekunden)

300

Synchronisierungszeit

Synchronisierungszeit

 

Element properties:

TargetMicrosoft.SQLServer.2012.Replication.Distributor
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2012.Replication.DataSource.DistributorPendingCmdsMonitor Microsoft.SQLServer.Replication.Monitoring.RunAs.Monitor
Mapper ConditionDetection System.Performance.DataGenericMapper Default
WriteToDatabase WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SQLServer.2012.Replication.CollectionRule.Distributor.DistributionDBPendingCmdsPerformanceCounter" Enabled="true" Target="MS2RD!Microsoft.SQLServer.2012.Replication.Distributor" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2012.Replication.DataSource.DistributorPendingCmdsMonitor" RunAs="MSRL!Microsoft.SQLServer.Replication.Monitoring.RunAs.Monitor">
<SqlTimeout>300</SqlTimeout>
<ConnectionString>$Target/Property[Type="MSRL!Microsoft.SQLServer.Replication.Library.GenericDistributor"]/ConnectionString$</ConnectionString>
<IntervalSeconds>300</IntervalSeconds>
<SyncTime/>
</DataSource>
</DataSources>
<ConditionDetection ID="Mapper" TypeID="Perf!System.Performance.DataGenericMapper">
<ObjectName>$Target/Property[Type="MSRL!Microsoft.SQLServer.Replication.Library.GenericDistributor"]/InstanceName$</ObjectName>
<CounterName>Distributor: Count of Pending Commands</CounterName>
<InstanceName/>
<Value>$Data/Property[@Name='DistributorPendingCmds']$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDatabase" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>