Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Applies to:
SQL Server
Azure SQL Managed Instance
You can create a resource pool by using SQL Server Management Studio or Transact-SQL. To understand the concepts related to resource pools, see Resource governor resource pool.
Limitations
- 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.
Permissions
Creating a resource pool requires CONTROL SERVER permission.
Create a resource pool using SQL Server Management Studio
To create a resource pool using SQL Server Management Studio (SSMS):
- In SQL Server Management Studio, open Object Explorer and expand the Management node down to and including Resource Governor.
- Open the Resource Governor context menu and select Properties.
- In the Resource pools grid, select the empty row. This row labeled with an asterisk (
*). - Select the empty cell in the Name column. Enter the resource pool name.
- Select any other cells in the row you want to change, and enter new values.
- To save the changes, select OK.
Create a resource pool using Transact-SQL
To create a resource pool using Transact-SQL:
- Execute the CREATE RESOURCE POOL or CREATE EXTERNAL RESOURCE POOL statement specifying the property values to be set.
- Execute the
ALTER RESOURCE GOVERNOR RECONFIGUREstatement.
Example
The following example creates a resource pool named poolAdhoc and makes the new configuration effective.
CREATE RESOURCE POOL poolAdhoc WITH (MAX_CPU_PERCENT = 20);
ALTER RESOURCE GOVERNOR RECONFIGURE;
Resource pools can govern a variety of system resources. For more information, see CREATE RESOURCE POOL.
For more samples and a complete walkthrough, see Tutorial: Resource governor configuration examples and best practices.
Related content
- 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
- ALTER RESOURCE GOVERNOR
- CREATE EXTERNAL RESOURCE POOL
- ALTER EXTERNAL RESOURCE POOL