CREATE RESOURCE POOL (Transact-SQL)
Tworzy pulę zasób zasób Governor.Governor zasób jest dostępna tylko w wersji Enterprise Developer i Evaluation z SQL Server.
CREATE RESOURCE POOL pool_name
[ WITH
( [ MIN_CPU_PERCENT = value ]
[ [ , ] MAX_CPU_PERCENT = value ]
[ [ , ] MIN_MEMORY_PERCENT = value ]
[ [ , ] MAX_MEMORY_PERCENT = value ] )
]
[;]
Argumenty
pool_name
Is the user-defined name for the resource pool.pool_name is alphanumeric, can be up to 128 characters, must be unique within an instance of SQL Server, and must comply with the rules for identifiers.MIN_CPU_PERCENT = value
Specifies the guaranteed average CPU bandwidth for all requests in the resource pool when there is CPU contention.value is an integer with a default setting of 0.Dozwolony zakres dla value jest z zakresu od 0 do 100.MAX_CPU_PERCENT = value
Specifies the maximum average CPU bandwidth that all requests in resource pool will receive when there is CPU contention.value is an integer with a default setting of 100.Dozwolony zakres dla value jest z zakresu od 1 do 100.MIN_MEMORY_PERCENT = value
Specifies the minimum amount of memory reserved for this resource pool that can not be shared with other resource pools.value is an integer with a default setting of 0 The allowed range for value is from 0 to 100.MAX_MEMORY_PERCENT = value
Specifies the total server memory that can be used by requests in this resource pool.value is an integer with a default setting of 100.Dozwolony zakres dla value jest z zakresu od 1 do 100.
Remarks
Wartości MAX_CPU_PERCENT i MAX_MEMORY_PERCENT musi być większa lub równa wartości MIN_CPU_PERCENT i MIN_MEMORY_PERCENT, odpowiednio.
Suma wartości MIN_CPU_PERCENT i MIN_MEMORY_PERCENT dla wszystkich pul zasób nie może przekraczać 100.
Uprawnienia
Wymaga uprawnienia CONTROL SERVER.
Przykłady
W poniższym przykładzie pokazano sposób tworzenia puli zasób o nazwie bigPool. Domyślne ustawienia zasób Governor korzysta z tej puli.
CREATE RESOURCE POOL bigPool;
GO
ALTER RESOURCE GOVERNOR RECONFIGURE;
GO
See Also