Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 08f66cd

Browse files
committed
updates
1 parent 8fb96ca commit 08f66cd

2 files changed

Lines changed: 31 additions & 4 deletions

File tree

docs/relational-databases/system-dynamic-management-views/sys-dm-workload-management-workload-group-stats-transact-sql.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
22
title: "sys.dm_workload_management_workload_groups_stats (Transact-SQL) | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "03/07/2017"
4+
ms.date: "07/17/2019"
55
ms.prod: sql
66
ms.technology: data-warehouse
77
ms.reviewer: ""
88
ms.topic: "language-reference"
99
dev_langs:
1010
- "TSQL"
11-
ms.assetid: a43ce9a2-5261-41e3-97f0-555ba05ebed9
1211
author: ronortloff
1312
ms.author: rortloff
1413
manager: craigg

docs/t-sql/statements/create-workload-classifier-transact-sql.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,37 @@ Specifies the relative importance of a request. Importance is one of the follow
121121
- ABOVE_NORMAL
122122
- HIGH
123123

124-
If Importance is not specified, the importance setting of the workload group is used. The default workload group importance is normal. Importance influences the order which requests are scheduled, thus giving first access to resources and locks.
124+
If importance is not specified, the importance setting of the workload group is used. The default workload group importance is normal. Importance influences the order which requests are scheduled, thus giving first access to resources and locks.
125125

126-
If a user is a member of multiple roles with different resource classes assigned or matched in multiple classifiers, the user is given the highest resource class assignment. For more information see, [workload classification](/azure/sql-data-warehouse/sql-data-warehouse-workload-classification#classification-precedence)
126+
## Classification parameter precedence
127+
128+
A request can match against multiple classifiers. There is a precedence in the classifier parameters. The higher precedence matching classifier is used first to assign a workload group and importance. The precedence goes as follows:
129+
1. USER
130+
2. ROLE
131+
3. WLM_LABEL
132+
4. WLM_SESSION
133+
5. START_TIME/END_TIME
134+
135+
Consider the following classifier configurations.
136+
137+
```sql
138+
CREATE WORKLOAD CLASSIFIER classiferA WITH
139+
( WORKLOAD_GROUP = 'wgDashboards'
140+
,MEMBERNAME = 'userloginA'
141+
,IMPORTANCE = HIGH
142+
,WLM_LABEL = 'salereport' )
143+
144+
CREATE WORKLOAD CLASSIFIER classiferB WITH
145+
( WORKLOAD_GROUP = 'wgUserQueries'
146+
,MEMBERNAME = 'userloginA'
147+
,IMPORTANCE = LOW
148+
,START_TIME = '18:00')
149+
,END_TIME = '07:00' )
150+
```
151+
152+
The user ‘userloginA’ is configured for both classifiers. If userloginA runs a query with a label equal to ‘salesreport’ between 6PM and 7AM UTC, the request will be classified to the wgDashboards workload group with HIGH importance. The expectation may be to classify the request to wgUserQueries with LOW importance for off-hours reporting, but the precedence of WLM_LABEL is higher than START_TIME/END_TIME. In this case, you can add START_TIME/END_TIME to classiferA.
153+
154+
For more information see, [workload classification](/azure/sql-data-warehouse/sql-data-warehouse-workload-classification#classification-precedence)
127155

128156
## Permissions
129157

0 commit comments

Comments
 (0)