SSAS: Database Blocking Duration (minutes)

Microsoft.SQLServer.AnalysisServices.Windows.Monitoring.PerformanceRule.TabularDatabase.BlockingDuration (Rule)

The rule collects the longest blocking duration for currently blocked sessions.

Knowledge Base article:

Summary

The rule collects the longest blocking duration for currently blocked sessions. This can be used to allow the administrators to readily detect blocking issues and respond accordingly.

External

Disconnect Users and Sessions on Analysis Services Server

TechNet documentation for DISCOVER_SESSSIONS rowset

Overridable Parameters

Name

Description

Default Value

Enabled

Enables or disables the workflow

Yes

Interval Seconds

The recurring interval of time in seconds in which to run the workflow.

900

Synchronization Time

The synchronization time specified by using a 24-hour format. May be omitted.

 

Timeout (seconds)

Specifies the time the workflow is allowed to run before being closed and marked as failed.

300

Element properties:

TargetMicrosoft.SQLServer.AnalysisServices.Windows.TabularDatabase
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.AnalysisServices.Windows.Monitoring.DataSource.BlockedSessions Microsoft.SQLServer.Core.RunAs.Monitoring
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.AnalysisServices.Windows.Monitoring.PerformanceRule.TabularDatabase.BlockingDuration" Target="SQLAS!Microsoft.SQLServer.AnalysisServices.Windows.TabularDatabase" Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.AnalysisServices.Windows.Monitoring.DataSource.BlockedSessions" RunAs="MSCL!Microsoft.SQLServer.Core.RunAs.Monitoring">
<ServiceName>$Target/Host/Property[Type='ASCore!Microsoft.SQLServer.AnalysisServices.Core.Instance']/ServiceName$</ServiceName>
<ConnectionString>$Target/Host/Property[Type='ASCore!Microsoft.SQLServer.AnalysisServices.Core.Instance']/ConnectionString$</ConnectionString>
<DatabaseName>$Target/Property[Type="ASCore!Microsoft.SQLServer.AnalysisServices.Core.Database"]/DatabaseName$</DatabaseName>
<WaitMinutes>0</WaitMinutes>
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</DataSources>
<ConditionDetection ID="Mapper" TypeID="SystemPerf!System.Performance.DataGenericMapper">
<ObjectName>SSAS Database</ObjectName>
<CounterName>Blocking Duration (minutes)</CounterName>
<InstanceName/>
<Value>$Data/Property[@Name='WaitTime']$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDatabase" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>