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: articles/sql-data-warehouse/sql-data-warehouse-workload-classification.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ manager: craigg
7
7
ms.service: sql-data-warehouse
8
8
ms.topic: conceptual
9
9
ms.subservice: workload-management
10
-
ms.date: 05/01/2019
10
+
ms.date: 01/27/2020
11
11
ms.author: rortloff
12
12
ms.reviewer: jrasnick
13
13
ms.custom: seo-lt-2019
@@ -31,14 +31,24 @@ Not all statements are classified as they do not require resources or need impor
31
31
32
32
## Classification process
33
33
34
-
Classification in SQL Data Warehouse is achieved today by assigning users to a role that has a corresponding resource class assigned to it using [sp_addrolemember](/sql/relational-databases/system-stored-procedures/sp-addrolemember-transact-sql). The ability to characterize requests beyond a login to a resource class is limited with this capability. A richer method for classification is now available with the [CREATE WORKLOAD CLASSIFIER](/sql/t-sql/statements/create-workload-classifier-transact-sql) syntax. With this syntax, SQL Data Warehouse users can assign importance and a resource class to requests.
34
+
Classification in SQL Data Warehouse is achieved today by assigning users to a role that has a corresponding resource class assigned to it using [sp_addrolemember](/sql/relational-databases/system-stored-procedures/sp-addrolemember-transact-sql). The ability to characterize requests beyond a login to a resource class is limited with this capability. A richer method for classification is now available with the [CREATE WORKLOAD CLASSIFIER](/sql/t-sql/statements/create-workload-classifier-transact-sql) syntax. With this syntax, SQL Data Warehouse users can assign importance and how much system resources are assigned to a request via the `workload_group` parameter.
35
35
36
36
> [!NOTE]
37
37
> Classification is evaluated on a per request basis. Multiple requests in a single session can be classified differently.
38
38
39
-
## Classification precedence
39
+
## Classification weighting
40
40
41
-
As part of the classification process, precedence is in place to determine which resource class is assigned. Classification based on a database user takes precedence over role membership. If you create a classifier that maps the UserA database user to the mediumrc resource class. Then, map the RoleA database role (of which UserA is a member) to the largerc resource class. The classifier that maps the database user to the mediumrc resource class will take precedence over the classifier that maps the RoleA database role to the largerc resource class.
41
+
As part of the classification process, weighting is in place to determine which workload group is assigned. The weighting goes as follows:
42
+
43
+
|Classifier Parameter |Weight |
44
+
|---------------------|---------|
45
+
|MEMBERNAME:USER|64 |
46
+
|MEMBERNAME:ROLE|32 |
47
+
|WLM_LABEL |16 |
48
+
|WLM_CONTEXT |8 |
49
+
|START_TIME/END_TIME |4 |
50
+
51
+
The `membername` parameter is mandatory. However, if the membername specified is a database user instead of a database role, the weighting for user is higher and thus that classifier is chosen.
42
52
43
53
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. This behavior is consistent with existing resource class assignment behavior.
0 commit comments