Skip to content

Commit 7adb563

Browse files
authored
Merge pull request #102475 from ronortloff/master
Update sql-data-warehouse-workload-classification.md
2 parents 2b53602 + f3dd126 commit 7adb563

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

articles/sql-data-warehouse/sql-data-warehouse-workload-classification.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: craigg
77
ms.service: sql-data-warehouse
88
ms.topic: conceptual
99
ms.subservice: workload-management
10-
ms.date: 05/01/2019
10+
ms.date: 01/27/2020
1111
ms.author: rortloff
1212
ms.reviewer: jrasnick
1313
ms.custom: seo-lt-2019
@@ -31,14 +31,24 @@ Not all statements are classified as they do not require resources or need impor
3131

3232
## Classification process
3333

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.
3535

3636
> [!NOTE]
3737
> Classification is evaluated on a per request basis. Multiple requests in a single session can be classified differently.
3838
39-
## Classification precedence
39+
## Classification weighting
4040

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.
4252

4353
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.
4454

0 commit comments

Comments
 (0)