You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/relational-databases/system-dynamic-management-views/sys-dm-workload-management-workload-group-stats-transact-sql.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,13 @@
1
1
---
2
2
title: "sys.dm_workload_management_workload_groups_stats (Transact-SQL) | Microsoft Docs"
Copy file name to clipboardExpand all lines: docs/t-sql/statements/create-workload-classifier-transact-sql.md
+30-2Lines changed: 30 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,9 +121,37 @@ Specifies the relative importance of a request. Importance is one of the follow
121
121
- ABOVE_NORMAL
122
122
- HIGH
123
123
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.
125
125
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)
0 commit comments