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
|classifier_function_id|**int**|The ID of the classifier function as it is stored in the metadata. Is not nullable.<br /><br /> **Note** This function is used to classify new sessions and uses rules to route the workload to the appropriate workload group. For more information, see [Resource Governor](../../relational-databases/resource-governor/resource-governor.md).|
28
-
|is_enabled|**bit**|Indicates the current state of the Resource Governor:<br /><br /> 0 = Resource Governor is not enabled.<br /><br /> 1 = Resource Governor is enabled.<br /><br /> Is not nullable.|
29
-
|max_outstanding_io_per_volume|**int**|**Applies to**: [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] and later.<br /><br /> The maximum number of outstanding I/O per volume.|
30
-
31
-
## Remarks
32
-
The catalog view displays the Resource Governor configuration as stored in metadata. To see the in-memory configuration use the corresponding dynamic management view.
33
-
34
-
## Permissions
35
-
Requires VIEW ANY DEFINITION permission to view contents, requires CONTROL SERVER permission to change contents.
36
-
37
-
## Examples
38
-
The following example shows how to get and compare the stored metadata values and the in-memory values of the Resource Governor configuration.
39
-
40
-
```
41
-
USE master;
42
-
GO
43
-
-- Get the stored metadata.
44
-
SELECT
45
-
object_schema_name(classifier_function_id) AS 'Classifier UDF schema in metadata',
46
-
object_name(classifier_function_id) AS 'Classifier UDF name in metadata'
47
-
FROM
48
-
sys.resource_governor_configuration;
49
-
GO
50
-
-- Get the in-memory configuration.
51
-
SELECT
52
-
object_schema_name(classifier_function_id) AS 'Active classifier UDF schema',
53
-
object_name(classifier_function_id) AS 'Active classifier UDF name'
Returns the stored resource governor configuration.
27
+
28
+
| Column name | Data type | Description |
29
+
|:--|:--|:--|
30
+
|`classifier_function_id`|**int**| The object ID of the classifier function in [sys.objects](sys-objects-transact-sql.md). Is not nullable.<br /><br /> **Note** This function is used to classify new sessions and uses rules to route the workload to the appropriate workload group. For more information, see [Resource governor](../../relational-databases/resource-governor/resource-governor.md). |
31
+
|`is_enabled`|**bit**| Indicates the current state of resource governor:<br /><br /> 0 = is not enabled.<br /><br /> 1 = is enabled.<br /><br /> Is not nullable. |
32
+
|`max_outstanding_io_per_volume`|**int**|**Applies to**: [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] and later.<br /><br /> The maximum number of outstanding I/O requests per volume. |
33
+
34
+
## Remarks
35
+
36
+
The catalog view displays resource governor configuration as stored in metadata. To see the currently effective configuration, use [sys.dm_resource_governor_configuration](../system-dynamic-management-views/sys-dm-resource-governor-configuration-transact-sql.md).
37
+
38
+
## Permissions
39
+
40
+
Requires the `VIEW ANY DEFINITION` permission to view contents.
41
+
42
+
## Examples
43
+
44
+
The following example shows how to get and compare the stored metadata values and the currently effective values of resource governor configuration.
45
+
46
+
```sql
47
+
USE master;
48
+
49
+
-- Get the stored metadata
50
+
SELECT OBJECT_SCHEMA_NAME(classifier_function_id) AS classifier_function_schema_name,
51
+
OBJECT_NAME(classifier_function_id) AS classifier_function_name
52
+
FROMsys.resource_governor_configuration;
53
+
54
+
-- Get the currently effective configuration
55
+
SELECT OBJECT_SCHEMA_NAME(classifier_function_id) AS classifier_function_schema_name,
56
+
OBJECT_NAME(classifier_function_id) AS classifier_function_name
Copy file name to clipboardExpand all lines: docs/relational-databases/system-catalog-views/sys-resource-governor-external-resource-pools-transact-sql.md
**Applies to:**[!INCLUDE[sssql15-md](../../includes/sssql16-md.md)][!INCLUDE[rsql-productname-md](../../includes/rsql-productname-md.md)] and [!INCLUDE[sssql17-md](../../includes/sssql17-md.md)][!INCLUDE[rsql-productnamenew-md](../../includes/rsql-productnamenew-md.md)]
24
27
25
28
Returns the stored external resource pool configuration in [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. Each row of the view determines the configuration of a pool.
|external_pool_id|**int**|Unique ID of the resource pool. Is not nullable.|
30
-
|name|**sysname**|Name of the resource pool. Is not nullable.|
31
-
|max_cpu_percent|**int**|Maximum average CPU bandwidth allowed for all requests in the resource pool when there is CPU contention. Is not nullable.|
32
-
|max_memory_percent|**int**|Percentage of total server memory that can be used by requests in this resource pool. Is not nullable. The effective maximum depends on the pool minimums. For example, max_memory_percent can be set to 100, but the effective maximum is lower.|
33
-
|max_processes|**int**|Maximum number of concurrent external processes. The default value, 0, specifies no limit. Is not nullable.|
34
-
|version|**bigint**|Internal version number.|
35
-
36
-
## Permissions
37
-
38
-
Requires VIEW SERVER STATE permission.
39
29
40
-
## See also
30
+
| Column name | Data type | Description |
31
+
|:--|:--|:--|
32
+
|`external_pool_id`|**int**| Unique ID of the resource pool. Is not nullable. |
33
+
|`name`|**sysname**| Name of the resource pool. Is not nullable. |
34
+
|`max_cpu_percent`|**int**| Maximum average CPU bandwidth allowed for all requests in the resource pool when there is CPU contention. Is not nullable. |
35
+
|`max_memory_percent`|**int**| Percentage of total server memory that can be used by requests in this resource pool. Is not nullable. The effective maximum depends on the pool minimums. For example, max_memory_percent can be set to 100, but the effective maximum is lower. |
36
+
|`max_processes`|**int**| Maximum number of concurrent external processes. The default value, 0, specifies no limit. Is not nullable. |
37
+
|`version`|**bigint**| Internal version number. |
41
38
42
-
[Resource governance for machine learning in SQL Server](../../machine-learning/administration/resource-governor.md)
Returns the stored resource pool configuration in [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. Each row of the view determines the configuration of a pool.
|pool_id|**int**|Unique ID of the resource pool. Is not nullable.|
28
-
|name|**sysname**|Name of the resource pool. Is not nullable.|
29
-
|min_cpu_percent|**int**|Guaranteed average CPU bandwidth for all requests in the resource pool when there is CPU contention. Is not nullable.|
30
-
|max_cpu_percent|**int**|Maximum average CPU bandwidth allowed for all requests in the resource pool when there is CPU contention. Is not nullable.|
31
-
|min_memory_percent|**int**|Guaranteed amount of memory for all requests in the resource pool. This is not shared with other resource pools. Is not nullable.|
32
-
|max_memory_percent|**int**|Percentage of total server memory that can be used by requests in this resource pool. Is not nullable. The effective maximum depends on the pool minimums. For example, max_memory_percent can be set to 100, but the effective maximum is lower.|
33
-
|cap_cpu_percent|**int**|**Applies to**: [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)] and later.<br /><br /> Hard cap on the CPU bandwidth that all requests in the resource pool will receive. Limits the maximum CPU bandwidth to the specified level. The allowed range for value is from 1 through 100.|
34
-
|min_iops_per_volume|**int**|**Applies to**: [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] and later.<br /><br /> The minimum I/O operations per second (IOPS) per volume setting for this pool. 0 = no reservation. Cannot be null.|
35
-
|max_iops_per_volume|**int**|**Applies to**: [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] and later.<br /><br /> The maximum I/O operations per second (IOPS) per volume setting for this pool. 0 = unlimited. Cannot be null.|
36
-
37
-
## Remarks
38
-
The catalog view displays the stored metadata. To see the in-memory configuration, use the corresponding dynamic management view, [sys.dm_resource_governor_resource_pools (Transact-SQL)](../../relational-databases/system-dynamic-management-views/sys-dm-resource-governor-resource-pools-transact-sql.md).
39
-
40
-
## Permissions
41
-
Requires VIEW ANY DEFINITION permission to view contents, requires CONTROL SERVER permission to change contents.
Returns the stored resource pool configuration. Each row represents a resource pool.
27
+
28
+
| Column name | Data type | Description |
29
+
|:--|:--|:--|
30
+
|`pool_id`|**int**| Unique ID of the resource pool. Is not nullable.|
31
+
|`name`|**sysname**| Name of the resource pool. Is not nullable.|
32
+
|`min_cpu_percent`|**int**| Guaranteed average CPU bandwidth for all requests in the resource pool when there is CPU contention. Is not nullable. |
33
+
|`max_cpu_percent`|**int**| Maximum average CPU bandwidth allowed for all requests in the resource pool when there is CPU contention. Is not nullable. |
34
+
|`min_memory_percent`|**int**| Guaranteed amount of query workspace memory for all requests in the resource pool. This is not shared with other resource pools. Is not nullable. |
35
+
|`max_memory_percent`|**int**| Percentage of total query workspace memory that can be used by requests in this resource pool. Is not nullable. The effective maximum depends on the other pool minimums. For example, `max_memory_percent` can be set to 100, but the effective maximum might be lower. Is not nullable. |
36
+
|`cap_cpu_percent`|**int**|**Applies to**: [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)] and later.<br /><br /> Hard cap on the CPU bandwidth that all requests in the resource pool receive. Limits the maximum CPU bandwidth to the specified level. The allowed range for value is from 1 through 100. Is not nullable. |
37
+
|`min_iops_per_volume`|**int**|**Applies to**: [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] and later.<br /><br /> The minimum I/O operations per second (IOPS) per volume setting for this pool. 0 = no reservation. Is not nullable. |
38
+
|`max_iops_per_volume`|**int**|**Applies to**: [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] and later.<br /><br /> The maximum I/O operations per second (IOPS) per volume setting for this pool. 0 = unlimited. Is not nullable. |
39
+
40
+
## Remarks
41
+
42
+
This catalog view displays the stored metadata. To see the currently effective resource governor configuration, use the corresponding dynamic management view, [sys.dm_resource_governor_resource_pools (Transact-SQL)](../../relational-databases/system-dynamic-management-views/sys-dm-resource-governor-resource-pools-transact-sql.md).
0 commit comments