Changes the Cgroup of a resource pool.
Users having the ALTER permission can modify resource pools.
1 2 | ALTER RESOURCE POOL pool_name WITH ({MEM_PERCENT=pct | CONTROL_GROUP="group_name" | ACTIVE_STATEMENTS=stmt | MAX_DOP = dop | MEMORY_LIMIT='memory_size' | io_limits=io_limits | io_priority='priority' | nodegroup='nodegroup_name' | except_rule='except_rule' | weight=bandwidth_weight}[, ... ]); |
Specifies the name of the resource pool.
The name of the resource pool is the name of an existing resource pool.
Value range: a string. It must comply with the naming convention.
Specifies the name of a Cgroup.
of the DefaultClass Cgroup.
Value range: an existing control group.
Specifies the maximum number of statements that can be concurrently executed in a resource pool.
Value range: Numeric data ranging from -1 to INT_MAX.
Specifies the maximum number of simple SQL statements that can be concurrently executed in a resource pool.
Value range: Numeric data ranging from -1 to INT_MAX.
Specifies the maximum storage for a resource pool.
Value range: a string, from 1KB to 2047GB.
Specifies the proportion of available resource pool memory to the total memory or group user memory.
The value of mem_percent for a common user is an integer ranging from 0 to 100. The default value is 0.
This parameter has been discarded in 8.1.2 and is reserved for compatibility with earlier versions.
This parameter has been discarded in 8.1.2 and is reserved for compatibility with earlier versions.
Name of an exception rule set
Specifies the network bandwidth weight of the resource pool.
Specify "High" Timeshare Workload under "DefaultClass" as the Cgroup for a resource pool.
1 | ALTER RESOURCE POOL pool1 WITH (CONTROL_GROUP="High"); |