Skip to content

Commit ec8ce2e

Browse files
committed
edit content add monikers
1 parent 88c22b7 commit ec8ce2e

6 files changed

Lines changed: 81 additions & 25 deletions

File tree

‎docs/machine-learning/administration/create-external-resource-pool.md‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ The process includes multiple steps:
100100
101101
Requests are assigned to the default group whenever the request can't be classified, or if there's any other classification failure.
102102
103-
> [!NOTE]
104-
> SQL Machine Learning Services 2019 for Linux does not support the ability to set CPU affinity.
105-
103+
106104
For more information, see [Resource Governor Workload Group](../../relational-databases/resource-governor/resource-governor-workload-group.md) and [CREATE WORKLOAD GROUP (Transact-SQL)](../../t-sql/statements/create-workload-group-transact-sql.md).
107105
108106
## Create a classification function for machine learning

‎docs/machine-learning/administration/resource-governor.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ Optionally, you can create custom **external resource pools**, with associated w
3636

3737
2. Run [CREATE EXTERNAL RESOURCE POOL](https://docs.microsoft.com/sql/t-sql/statements/create-external-resource-pool-transact-sql) to create and configure the resource pool, followed by [ALTER RESOURCE GOVERNOR](https://docs.microsoft.com/sql/t-sql/statements/alter-resource-governor-transact-sql) to implement it.
3838

39-
> [!NOTE]
40-
> SQL Machine Learning Services 2019 for Linux does not support the ability to set CPU affinity.
41-
4239
3. Create a workload group for granular allocations, for example between training and scoring.
4340

4441
4. Create a classifier to intercept calls for external processing.

‎docs/relational-databases/system-dynamic-management-views/sys-dm-resource-governor-external-resource-pools.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ Returns information about the current external resource pool state, the current
5050

5151
Requires `VIEW SERVER STATE` permission.
5252

53-
> [!NOTE]
54-
> SQL Machine Learning Services 2019 for Linux does not support the ability to set CPU affinity.
55-
5653
## See Also
5754
[sys.dm_resource_governor_external_resource_pool_affinity (Transact-SQL)](../../relational-databases/system-dynamic-management-views/sys-dm-resource-governor-external-resource-pool-affinity-transact-sql.md)
5855

‎docs/t-sql/statements/alter-external-resource-pool-transact-sql.md‎

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,23 @@ For [!INCLUDE[rsql-productnamenew-md](../../includes/rsql-productnamenew-md.md)]
3535
![Topic link icon](../../database-engine/configure-windows/media/topic-link.gif "Topic link icon") [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md).
3636

3737
## Syntax
38-
38+
::: moniker range=">=sql-server-ver15||>=sql-server-linux-ver15||=sqlallproducts-allversions":
3939
```syntaxsql
4040
ALTER EXTERNAL RESOURCE POOL { pool_name | "default" }
41+
[ WITH (
42+
[ MAX_CPU_PERCENT = value ]
43+
[ [ , ] MAX_MEMORY_PERCENT = value ]
44+
[ [ , ] MAX_PROCESSES = value ]
45+
)
46+
]
47+
[ ; ]
48+
49+
<CPU_range_spec> ::=
50+
{ CPU_ID | CPU_ID TO CPU_ID } [ ,...n ]
51+
```
52+
::: moniker-end
53+
```syntaxsql
54+
ALTER EXTERNAL RESOURCE POOL { pool_name | "default" }
4155
[ WITH (
4256
[ MAX_CPU_PERCENT = value ]
4357
[ [ , ] AFFINITY CPU =
@@ -55,15 +69,24 @@ ALTER EXTERNAL RESOURCE POOL { pool_name | "default" }
5569
<CPU_range_spec> ::=
5670
{ CPU_ID | CPU_ID TO CPU_ID } [ ,...n ]
5771
```
58-
72+
5973
[!INCLUDE[sql-server-tsql-previous-offline-documentation](../../includes/sql-server-tsql-previous-offline-documentation.md)]
6074

6175
## Arguments
6276

6377
{ *pool_name* | "default" }
6478
Is the name of an existing user-defined external resource pool or the default external resource pool that is created when [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] is installed.
6579
"default" must be enclosed by quotation marks ("") or brackets ([]) when used with `ALTER EXTERNAL RESOURCE POOL` to avoid conflict with `DEFAULT`, which is a system reserved word.
80+
::: moniker range=">=sql-server-ver15||>=sql-server-linux-ver15||=sqlallproducts-allversions":
81+
MAX_CPU_PERCENT =*value*
82+
Specifies the maximum average CPU bandwidth that all requests in the external resource pool can receive when there is CPU contention. *value* is an integer. The allowed range for *value* is from 1 through 100.
6683

84+
MAX_MEMORY_PERCENT =*value*
85+
Specifies the total server memory that can be used by requests in this external resource pool. *value* is an integer. The allowed range for *value* is from 1 through 100.
86+
87+
MAX_PROCESSES =*value*
88+
Specifies the maximum number of processes allowed for the external resource pool. Specify 0 to set an unlimited threshold for the pool, which is thereafter bound only by computer resources.
89+
::: moniker-end
6790
MAX_CPU_PERCENT =*value*
6891
Specifies the maximum average CPU bandwidth that all requests in the external resource pool can receive when there is CPU contention. *value* is an integer. The allowed range for *value* is from 1 through 100.
6992

@@ -92,21 +115,30 @@ Requires `CONTROL SERVER` permission.
92115
## Examples
93116

94117
The following statement changes an external pool, restricting the CPU usage to 50 percent and the maximum memory to 25 percent of the available memory on the computer.
95-
118+
::: moniker range=">=sql-server-ver15||>=sql-server-linux-ver15||=sqlallproducts-allversions":
96119
```sql
97120
ALTER EXTERNAL RESOURCE POOL ep_1
98121
WITH (
99122
MAX_CPU_PERCENT = 50
100-
, AFFINITY CPU = AUTO
101123
, MAX_MEMORY_PERCENT = 25
102124
);
103125
GO
104126
ALTER RESOURCE GOVERNOR RECONFIGURE;
105127
GO
106128
```
129+
::: moniker-end
107130

108-
> [!NOTE]
109-
> SQL Machine Learning Services 2019 for Linux does not support the ability to set CPU affinity.
131+
```sql
132+
ALTER EXTERNAL RESOURCE POOL ep_1
133+
WITH (
134+
MAX_CPU_PERCENT = 50
135+
, AFFINITY CPU = AUTO
136+
, MAX_MEMORY_PERCENT = 25
137+
);
138+
GO
139+
ALTER RESOURCE GOVERNOR RECONFIGURE;
140+
GO
141+
```
110142

111143
## See also
112144

‎docs/t-sql/statements/create-external-resource-pool-transact-sql.md‎

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,24 @@ For [!INCLUDE[rsql-productnamenew-md](../../includes/rsql-productnamenew-md.md)]
3838
::: moniker-end
3939

4040
![Topic link icon](../../database-engine/configure-windows/media/topic-link.gif "Topic link icon") [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md).
41-
41+
42+
4243
## Syntax
44+
::: moniker range=">=sql-server-ver15||>=sql-server-linux-ver15||=sqlallproducts-allversions":
45+
```syntaxsql
46+
CREATE EXTERNAL RESOURCE POOL pool_name
47+
[ WITH (
48+
[ MAX_CPU_PERCENT = value ]
49+
[ [ , ] MAX_MEMORY_PERCENT = value ]
50+
[ [ , ] MAX_PROCESSES = value ]
51+
)
52+
]
53+
[ ; ]
4354
55+
<CPU_range_spec> ::=
56+
{ CPU_ID | CPU_ID TO CPU_ID } [ ,...n ]
57+
```
58+
::: moniker-end
4459
```syntaxsql
4560
CREATE EXTERNAL RESOURCE POOL pool_name
4661
[ WITH (
@@ -60,16 +75,25 @@ CREATE EXTERNAL RESOURCE POOL pool_name
6075
<CPU_range_spec> ::=
6176
{ CPU_ID | CPU_ID TO CPU_ID } [ ,...n ]
6277
```
63-
64-
[!INCLUDE[sql-server-tsql-previous-offline-documentation](../../includes/sql-server-tsql-previous-offline-documentation.md)]
6578

66-
> [!NOTE]
67-
> SQL Machine Learning Services 2019 for Linux does not support the ability to set CPU affinity.
79+
[!INCLUDE[sql-server-tsql-previous-offline-documentation](../../includes/sql-server-tsql-previous-offline-documentation.md)]
6880

6981
## Arguments
7082

7183
*pool_name*
7284
Is the user-defined name for the external resource pool. *pool_name* is alphanumeric and can be up to 128 characters. This argument must be unique within an instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] and must fulfill the rules for [identifiers](../../relational-databases/databases/database-identifiers.md).
85+
::: moniker range=">=sql-server-ver15||>=sql-server-linux-ver15||=sqlallproducts-allversions":
86+
MAX_CPU_PERCENT =*value*
87+
The maximum average CPU bandwidth for all requests in the external resource pool can receive when there's CPU contention. *value* is an integer. The allowed range for *value* is from 1 through 100.
88+
89+
When you use AFFINITY NUMANODE = **(\<NUMA_node_range_spec> **)**, the external resource pool is affinitized to the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] physical CPUs that correspond to the given NUMA node or range of nodes.
90+
91+
MAX_MEMORY_PERCENT =*value*
92+
Specifies the total server memory that can be used by requests in this external resource pool. *value* is an integer. The allowed range for *value* is from 1 through 100.
93+
94+
MAX_PROCESSES =*value*
95+
The maximum number of processes allowed for the external resource pool. 0 = unlimited threshold for the pool, which is thereafter bound only by computer resources.
96+
::: moniker-end
7397

7498
MAX_CPU_PERCENT =*value*
7599
The maximum average CPU bandwidth for all requests in the external resource pool can receive when there's CPU contention. *value* is an integer. The allowed range for *value* is from 1 through 100.
@@ -102,7 +126,18 @@ Requires `CONTROL SERVER` permission.
102126
## Examples
103127

104128
The external pool has restricted CPU usage to 75 percent. The maximum memory is 30 percent of the available memory on the computer.
105-
129+
::: moniker range=">=sql-server-ver15||>=sql-server-linux-ver15||=sqlallproducts-allversions":
130+
```sql
131+
CREATE EXTERNAL RESOURCE POOL ep_1
132+
WITH (
133+
MAX_CPU_PERCENT = 75
134+
, MAX_MEMORY_PERCENT = 30
135+
);
136+
GO
137+
ALTER RESOURCE GOVERNOR RECONFIGURE;
138+
GO
139+
```
140+
::: moniker-end
106141
```sql
107142
CREATE EXTERNAL RESOURCE POOL ep_1
108143
WITH (
@@ -114,7 +149,7 @@ GO
114149
ALTER RESOURCE GOVERNOR RECONFIGURE;
115150
GO
116151
```
117-
152+
118153
## See also
119154

120155
+ [external scripts enabled Server Configuration Option](../../database-engine/configure-windows/external-scripts-enabled-server-configuration-option.md)

‎docs/t-sql/statements/drop-external-resource-pool-transact-sql.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ ALTER RESOURCE GOVERNOR RECONFIGURE;
7373
GO
7474
```
7575

76-
> [!NOTE]
77-
> SQL Machine Learning Services 2019 for Linux does not support the ability to set CPU affinity.
78-
7976
## See Also
8077

8178
+ [external scripts enabled Server Configuration Option](../../database-engine/configure-windows/external-scripts-enabled-server-configuration-option.md)

0 commit comments

Comments
 (0)