Aracılığıyla paylaş


kaynak POOL (Transact-SQL) CREATE

Kaynak Governor kaynak havuzu oluşturur.Yalnızca kuruluş, Developer ve deneme sürümlerini üzerinde kaynak Governor kullanılabilir SQL Server.

Topic link iconTransact-SQL sözdizimi kuralları.

CREATE RESOURCE POOL pool_name
[ WITH
        ( [ MIN_CPU_PERCENT = value ]
        [ [ , ] MAX_CPU_PERCENT = value ]
        [ [ , ] MIN_MEMORY_PERCENT = value ]
        [ [ , ] MAX_MEMORY_PERCENT = value ] )
]
[;]

Bağımsız değişkenler

  • 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.Izin verilen aralığının value 0 ile 100 arasında ise.

  • 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.Izin verilen aralığının value 1 ile 100 arasında ise.

  • 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.Izin verilen aralığının value 1 ile 100 arasında ise.

Remarks

MAX_CPU_PERCENT ve MAX_MEMORY_PERCENT değerleri sırasıyla MIN_CPU_PERCENT ve MIN_MEMORY_PERCENT, ya da daha büyük olması gerekir.

Kaynak havuzları için MIN_CPU_PERCENT ve MIN_MEMORY_PERCENT değerleri toplamı 100 aşmamalıdır.

İzinler

DENETIM SERVER iznine gerek duyar.

Örnekler

Aşağıdaki örnek, adlı bir kaynak havuzu nasıl oluşturulacağını gösterir. bigPool. Bu havuz, kaynak Governor varsayılan ayarları kullanır.

CREATE RESOURCE POOL bigPool;
GO
ALTER RESOURCE GOVERNOR RECONFIGURE;
GO