Skip to content

Commit f49fc11

Browse files
committed
Updates from review with Ron
1 parent 0a0337a commit f49fc11

5 files changed

Lines changed: 60 additions & 72 deletions

docs/relational-databases/system-catalog-views/sys-workload-management-workload-classifier-details-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.author: "rortloff"
1313
manager: craigg
1414
monikerRange: "= azure-sqldw-latest || = sqlallproducts-allversions"
1515
---
16-
# sys.workload_management_workload_classifier_details (Transact-SQL) (Preview SQL DW Gen2 only)
16+
# sys.workload_management_workload_classifier_details (Transact-SQL) (Preview)
1717

1818
[!INCLUDE[tsql-appliesto-xxxxxx-xxxx-asdw-xxx-md](../../includes/tsql-appliesto-xxxxxx-xxxx-asdw-xxx-md.md)]
1919

@@ -31,4 +31,4 @@ Requires Control Database permission.
3131

3232
## Next steps
3333

34-
For a list of all the catalog views for SQL Data Warehouse and Parallel Data Warehouse, see [SQL Data Warehouse and Parallel Data Warehouse Catalog Views](../../relational-databases/system-catalog-views/sql-data-warehouse-and-parallel-data-warehouse-catalog-views.md). To create a workload classifier see [CREATE WORKLOAD CLASSIFIER](../../t-sql/statements/create-workload-classifier-transact-sql.md)
34+
For a list of all the catalog views for SQL Data Warehouse and Parallel Data Warehouse, see [SQL Data Warehouse and Parallel Data Warehouse Catalog Views](../../relational-databases/system-catalog-views/sql-data-warehouse-and-parallel-data-warehouse-catalog-views.md). To create a workload classifier, see [CREATE WORKLOAD CLASSIFIER](../../t-sql/statements/create-workload-classifier-transact-sql.md)

docs/relational-databases/system-catalog-views/sys-workload-management-workload-classifiers-transact-sql.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,26 @@ ms.author: "rortloff"
1313
manager: craigg
1414
monikerRange: "= azure-sqldw-latest || = sqlallproducts-allversions"
1515
---
16-
# sys.workload_management_workload_classifiers (Transact-SQL) (Preview SQL DW Gen2 only)
16+
# sys.workload_management_workload_classifiers (Transact-SQL) (Preview)
17+
1718
[!INCLUDE[tsql-appliesto-xxxxxx-xxxx-asdw-xxx-md](../../includes/tsql-appliesto-xxxxxx-xxxx-asdw-xxx-md.md)]
1819

1920
Returns details for workload classifiers.
2021

2122
|Column Name|Data Type|Description|Range|
2223
|-----------------|---------------|-----------------|-----------|
2324
|classifier_id|**int**|Unique ID of the classifier. Is not nullable||
24-
group_name|**sysname**|Name of the workload group the classifier is assigned to. Is not nullable. <br /><br />Joinable to [sys.workload_management_workload_groups](sys-workload-management-workload-groups-transact-sql.md)||
25+
group_name|**sysname**|Name of the workload group the classifier is assigned to. Is not nullable. </br>Joinable to [sys.workload_management_workload_groups](sys-workload-management-workload-groups-transact-sql.md)||
2526
name|**sysname**|Name of the classifier. Must be unique to the instance. Is not nullable.||
2627
|importance|**sysname**|Is the relative importance of a request in this workload group and across workload groups for shared resources. Importance specified in the classifier overrides the workload group importance setting. Is not nullable. |low, below_normal, normal, above_normal, high |
2728
|create_time|**datetime**|Time the classifier was created.||
2829
modify_time|**datetime**|Time the classifier was last modified.||
29-
is_enabled|**bit**|Displays whether the classifier is enabled or not. Is not nullable.|0 = the classifier is not enabled <br /><br /> 1 = the classifier is enabled|
30-
30+
is_enabled|**bit**|Displays whether the classifier is enabled or not. Is not nullable.|0 = the classifier is not enabled </br> 1 = the classifier is enabled|
3131

3232
## Permissions
33-
Requires CONTROL DATABASE permission.
3433

34+
Requires CONTROL DATABASE permission.
3535

36-
## Next steps
37-
For a list of all the catalog views for SQL Data Warehouse and Parallel Data Warehouse, see [SQL Data Warehouse and Parallel Data Warehouse Catalog Views](../../relational-databases/system-catalog-views/sql-data-warehouse-and-parallel-data-warehouse-catalog-views.md). To create a workload classifier see [CREATE WORKLOAD CLASSIFIER](../../t-sql/statements/create-workload-classifier-transact-sql.md)
38-
36+
## Next steps
3937

38+
For a list of all the catalog views for SQL Data Warehouse and Parallel Data Warehouse, see [SQL Data Warehouse and Parallel Data Warehouse Catalog Views](../../relational-databases/system-catalog-views/sql-data-warehouse-and-parallel-data-warehouse-catalog-views.md). To create a workload classifier, see [CREATE WORKLOAD CLASSIFIER](../../t-sql/statements/create-workload-classifier-transact-sql.md)

docs/relational-databases/system-catalog-views/sys-workload-management-workload-groups-transact-sql.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ ms.author: "rortloff"
1313
manager: craigg
1414
monikerRange: "= azure-sqldw-latest || = sqlallproducts-allversions"
1515
---
16-
# sys.workload_management_workload_groups (Transact-SQL) (Preview SQL DW Gen2 only)
16+
# sys.workload_management_workload_groups (Transact-SQL) (Preview)
17+
1718
[!INCLUDE[tsql-appliesto-xxxxxx-xxxx-asdw-xxx-md](../../includes/tsql-appliesto-xxxxxx-xxxx-asdw-xxx-md.md)]
1819

1920
Returns information for each workload group.
@@ -25,17 +26,16 @@ Returns information for each workload group.
2526
|importance|**sysname**|Is the relative importance of a request in this workload group and across workload groups for shared resources. Is not nullable.|low, below_normal, normal, above_normal, high|
2627
|min_percentage_resource|**tinyint**|Guaranteed amount of resources for all requests in the workload group. Resources are not shared with other resource pools. Is not nullable.||
2728
|cap_percentage_resource|**tinyint**|Hard cap on the resource percentage allocation for all requests in the workload group. Limits the maximum resources allocated to the specified level. The allowed range for value is from 1 through 100.||
28-
|request_min_resource_grant_percent|**decimal (5,2)**|Specifies the minimum amount of resources allocated to a request. The value is a decimal with a default value of 10. The allowed range for value is from 0.08 to 100.<br <br />Depending on availability of unreserved resources, the value of cap_percentage_resource and the number of requests executing in the workload group, more resources may be allocated to the request.||
29-
|query_execution_timeout_sec|**int**|The amount of execution time, in seconds, allowed before the query is canceled. Queries cannot be canceled once they have reached the return phase of execution. query_execution_timeout_sec does not include time spent queued.||
30-
|query_wait_timeout_sec|**int**|The amount of time a request can queue, in seconds, before it is canceled.||
29+
|request_min_resource_grant_percent|**decimal (5,2)**|The minimum amount of resources allocated to a request. This value is a decimal with a default value of 10. The allowed range for this value is from 0.08 to 100.</br>More resources may be allocated to the request based on availability of unreserved resources, the value of cap_percentage_resource and the number of requests executing in the workload group.||
30+
|query_execution_timeout_sec|**int**|The amount of execution time, in seconds, allowed before the query is canceled. Queries can't be canceled once they've reached the return phase of execution. query_execution_timeout_sec doesn't include time spent queued.||
31+
|query_wait_timeout_sec|**int**|The amount of time a request can queue, in seconds, before it's canceled.||
3132
|create_time|**datetime**|Time the workload group was created||
3233
|modify_time|**datetime**|Time the workload group was last modified||
3334

3435
## Permissions
35-
Requires Control Database permission.
3636

37+
Requires Control Database permission.
3738

38-
## Next steps
39-
For a list of all the catalog views for SQL Data Warehouse and Parallel Data Warehouse, see [SQL Data Warehouse and Parallel Data Warehouse Catalog Views](../../relational-databases/system-catalog-views/sql-data-warehouse-and-parallel-data-warehouse-catalog-views.md). To create a workload classifier see [CREATE WORKLOAD CLASSIFIER](../../t-sql/statements/create-workload-classifier-transact-sql.md)
40-
39+
## Next steps
4140

41+
For a list of all the catalog views for SQL Data Warehouse and Parallel Data Warehouse, see [SQL Data Warehouse and Parallel Data Warehouse Catalog Views](../../relational-databases/system-catalog-views/sql-data-warehouse-and-parallel-data-warehouse-catalog-views.md). To create a workload classifier, see [CREATE WORKLOAD CLASSIFIER](../../t-sql/statements/create-workload-classifier-transact-sql.md)

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

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ manager: craigg
2323
monikerRange: "||=azure-sqldw-latest||=sqlallproducts-allversions"
2424
---
2525
# CREATE WORKLOAD CLASSIFIER (Transact-SQL) (Preview)
26+
2627
[!INCLUDE[tsql-appliesto-xxxxxx-xxxx-asdw-xxx-md](../../includes/tsql-appliesto-xxxxxx-xxxx-asdw-xxx-md.md)]
2728

2829
Creates a Workload Management Classifier. The classifier assigns incoming requests to a workload group based on the parameters specified in the classifier statement definition. Classifiers are evaluated with every request submitted. If a request is not matched to a classifier, it is assigned to the default workload group. The default workload group is the smallrc resource class.
@@ -31,24 +32,24 @@ Creates a Workload Management Classifier. The classifier assigns incoming reque
3132

3233
## Syntax
3334

34-
```
35+
```t-sql
3536
CREATE WORKLOAD CLASSIFIER classifier_name
3637
WITH
3738
( WORKLOAD_GROUP = ‘name’
38-
,MEMBERNAME = ‘security_account’
39+
,MEMBERNAME = ‘security_account’
3940
[ [ , ] IMPORTANCE = { LOW | BELOW NORMAL | NORMAL | ABOVE NORMAL | HIGH }])
4041
[;]
42+
```
4143

42-
```
43-
44-
## Arguments
44+
## Arguments
45+
4546
*classifier_name*
4647
Specifies the name by which the workload classifier is identified. classifier_name is a sysname. It can be up to 128 characters long and must be unique within the instance.
4748

4849
WORKLOAD_GROUP = *'name'*
4950
When the conditions are met by the classifier rules, name maps the request to a workload group. name is a sysname. It can be up to 128 characters long and must be a valid workload group name at the time of classifier creation.
5051

51-
For the purposes of the WLM Importance preview, WORKLOAD_GROUP should map to an existing resource class:
52+
WORKLOAD_GROUP should map to an existing resource class:
5253

5354
|Static Resource Classes|Dynamic Resource Classes|
5455
|------------------------|-----------------------|
@@ -64,40 +65,37 @@ For the purposes of the WLM Importance preview, WORKLOAD_GROUP should map to an
6465
MEMBERNAME = *'security_account'*
6566
This is the security account being added to the role. Security_account is a sysname, with no default. Security_account can be a database user, database role, Azure Active Directory login, or Azure Active Directory group.
6667

67-
IMPORTANCE = { LOW | BELOW NORMAL | NORMAL | ABOVE NORMAL | HIGH }
68+
IMPORTANCE = { LOW | BELOW_NORMAL | NORMAL | ABOVE_NORMAL | HIGH }
6869
Specifies the relative importance of a request. Importance is one of the following:
6970

71+
- LOW
72+
- BELOW_NORMAL
73+
- NORMAL (default)
74+
- ABOVE_NORMAL
75+
- HIGH
7076

77+
Importance influences the order in which requests are scheduled, thus giving first access to resources and locks.
7178

72-
- LOW
73-
- BELOW_NORMAL
74-
- NORMAL (default)
75-
- ABOVE_NORMAL
76-
- HIGH
77-
78-
Importance influences the order which requests are scheduled, thus giving first access to resources and locks.
79+
## Permissions
7980

80-
> [!NOTE]
81-
> Internally each importance setting is stored as a number that is used for calculations.
82-
83-
## Permissions
8481
Requires CONTROL DATABASE permission.
8582

86-
## Examples
83+
## Examples
84+
8785
The following example shows how to create a workload classifier named `wgcELTRole`. It uses the staticrc20 workload group, the user `ELTRole`, and sets the importance to `above_normal`.
8886

89-
```
90-
CREATE WORKLOAD CLASSIFIER wgcELTRole
87+
```t-sql
88+
CREATE WORKLOAD CLASSIFIER wgcELTRole
9189
WITH (WORKLOAD_GROUP = 'staticrc20'
9290
,MEMBERNAME = 'ELTRole'
9391
,IMPORTANCE = above_normal);
94-
95-
GO
96-
```
92+
GO
93+
```
9794

98-
## See Also
95+
## See Also
96+
9997
[DROP WORKLOAD CLASSIFIER &#40;Transact-SQL&#41;](../../t-sql/statements/drop-workload-classifier-transact-sql.md)
100-
Catalog view [sys.workload_management_workload_classifier_details](../../relational-databases/system-catalog-views/sys-workload-management-workload-classifier-details-transact-sql.md)
101-
Catalog view [sys.workload_management_workload_classifiers](../../relational-databases/system-catalog-views/sys-workload-management-workload-classifiers-transact-sql.md)
98+
Catalog view [sys.workload_management_workload_classifier_details](../../relational-databases/system-catalog-views/sys-workload-management-workload-classifier-details-transact-sql.md)
99+
Catalog view [sys.workload_management_workload_classifiers](../../relational-databases/system-catalog-views/sys-workload-management-workload-classifiers-transact-sql.md)
102100
Catalog view [sys.workload_management_workload_groups](../../relational-databases/system-catalog-views/sys-workload-management-workload-groups-transact-sql.md)
103-
101+
SQL Data Warehouse [Classification](/azure/sql-data-warehouse/classification)

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

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ manager: craigg
2323
monikerRange: "||=azure-sqldw-latest||=sqlallproducts-allversions"
2424
---
2525
# DROP WORKLOAD CLASSIFIER (Transact-SQL) (Preview)
26+
2627
[!INCLUDE[tsql-appliesto-xxxxxx-xxxx-asdw-xxx-md](../../includes/tsql-appliesto-xxxxxx-xxxx-asdw-xxx-md.md)]
2728

2829
Drops an existing user-defined Workload Management Classifier.
@@ -31,45 +32,35 @@ monikerRange: "||=azure-sqldw-latest||=sqlallproducts-allversions"
3132

3233
## Syntax
3334

34-
```
35+
```
3536
DROP WORKLOAD CLASSIFIER classifier_name;
37+
```
3638

37-
```
38-
39-
## Arguments
39+
## Arguments
40+
4041
*classifier_name*
41-
Specifies the name by which the workload classifier is identified. classifier_name is a sysname. It can be up to 128 characters long and must be unique within the instance.
42+
Specifies the name by which the workload classifier is identified. classifier_name is a sysname. It can be up to 128 characters long and must be unique within the instance.
4243

43-
## Remarks
44+
## Remarks
45+
4446
The DROP WORKLOAD CLASSIFIER statement is not allowed on the default workload classifier.
45-
46-
When you are executing DDL statements, we recommend that you be familiar with Resource Governor states. For more information, see [Resource Governor](../../relational-databases/resource-governor/resource-governor.md).
47-
48-
If a workload group contains active sessions, dropping or moving the workload group to a different resource pool will fail when the ALTER RESOURCE GOVERNOR RECONFIGURE statement is called to apply the change. To avoid this problem, you can take one of the following actions:
49-
50-
- Wait until all the sessions from the affected group have disconnected, and then rerun the ALTER RESOURCE GOVERNOR RECONFIGURE statement.
51-
52-
- Explicitly stop sessions in the affected group by using the KILL command, and then rerun the ALTER RESOURCE GOVERNOR RECONFIGURE statement.
53-
54-
- Restart the server. After the restart process is completed, the deleted group will not be created, and a moved group will use the new resource pool assignment.
55-
56-
- In a scenario in which you have issued the DROP WORKLOAD GROUP statement but decide that you do not want to explicitly stop sessions to apply the change, you can re-create the group by using the same name that it had before you issued the DROP statement, and then move the group to the original resource pool. To apply the changes, run the ALTER RESOURCE GOVERNOR RECONFIGURE statement.
57-
58-
## Permissions
47+
48+
## Permissions
49+
5950
Requires CONTROL DATABASE permission.
6051

61-
## Examples
52+
## Examples
53+
6254
The following example drops the workload classifier named `wgcELTROLE`.
6355

64-
```
56+
```
6557
DROP WORKLOAD CLASSIFIER wgcELTRole;
6658
```
6759

6860
> [!NOTE]
6961
> A request submitted without a matching classifier, is classified to the default workload group. The default workload group is currently the smallrc resource class.
7062
71-
## See Also
72-
[CREATE WORKLOAD CLASSIFIER &#40;Transact-SQL&#41;](../../t-sql/statements/create-workload-classifier-transact-sql.md)
63+
## See Also
7364

74-
75-
65+
[CREATE WORKLOAD CLASSIFIER &#40;Transact-SQL&#41;](../../t-sql/statements/create-workload-classifier-transact-sql.md)
66+
SQL Data Warehouse [Classification](/azure/sql-data-warehouse/classification)

0 commit comments

Comments
 (0)