title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | helpviewer_keywords | ||
---|---|---|---|---|---|---|---|---|---|---|
Create a Resource Pool |
Learn how to create a resource pool by using SQL Server Management Studio or Transact-SQL. You must have the CONTROL SERVER permission. |
WilliamDAssafMSFT |
wiassaf |
03/17/2016 |
sql |
performance |
conceptual |
|
[!INCLUDE SQL Server SQL MI]
You can create a resource pool by using [!INCLUDEssManStudioFull] or [!INCLUDEtsql]. To understand the principals of resource pools, see Resource Governor Resource Pool.
-
Before you begin: Limitations and Restrictions, Permissions
-
To create a resource pool, using: SQL Server Management Studio, Transact-SQL
The maximum CPU percentage must be equal to or higher than the minimum CPU percentage. The maximum memory percentage must be equal to or higher than the minimum memory percentage.
The sums of the minimum CPU percentages and minimum memory percentages for all resource pools must not exceed 100.
Creating a resource pool requires CONTROL SERVER permission.
To create a resource pool by using [!INCLUDEssManStudioFull]
-
In [!INCLUDEssManStudioFull], open Object Explorer and recursively expand the Management node down to and including Resource Governor.
-
Right-click Resource Governor, and then click Properties.
-
In the Resource pools grid, click the first column in the empty row. This column is labeled with an asterisk (*).
-
Double-click the empty cell in the Name column. Type in the name that you want to use for the resource pool.
-
Click or double-click any other cells in the row you want to change, and enter the new values.
-
To save the changes, click OK
To create a resource pool by using [!INCLUDEtsql]
-
Run the CREATE RESOURCE POOL or CREATE EXTERNAL RESOURCE POOL statement specifying the property values to be set.
-
Run the ALTER RESOURCE GOVERNOR RECONFIGURE statement.
The following example creates a resource pool named poolAdhoc
.
CREATE RESOURCE POOL poolAdhoc
WITH (MAX_CPU_PERCENT = 20);
GO
ALTER RESOURCE GOVERNOR RECONFIGURE;
GO
Resource Governor
Enable Resource Governor
Resource Governor Resource Pool
Change Resource Pool Settings
Delete a Resource Pool
Configure Resource Governor Using a Template
Resource Governor Workload Group
Resource Governor Classifier Function
CREATE RESOURCE POOL (Transact-SQL)
ALTER RESOURCE GOVERNOR (Transact-SQL)
CREATE EXTERNAL RESOURCE POOL (Transact-SQL)
ALTER EXTERNAL RESOURCE POOL (Transact-SQL)