Note
This variable is available starting with V2.2.77.
Description
resource_manager_plan specifies the resource management plan to activate. Different plans use different CPU quotas to limit the resource usage of users in a resource group.
Privilege requirements
Query variables
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to view the value of Global system variables.Modify variables
The
systenant can directly modify the value of Global system variables.A MySQL user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of Global system variables.An Oracle user tenant must have the
ALTER SYSTEMprivilege to modify the value of Global system variables.
Attributes
| Attribute | Description |
|---|---|
| Type | Varchar |
| Default value | "" |
| Scope | Global |
| Modifiable | Yes. You can execute the SET statement to modify the value. |
| Effective after restart | No. The setting takes effect within 10 seconds. |
Usage notes
In a tenant, normal threads and parallel execution threads may compete for CPU resources. By specifying a resource isolation plan for the tenant, you can control the resource contention strategy and limit resource usage.
Examples
Specify the daytime resource management plan for a tenant.
obclient> SET GLOBAL resource_manager_plan = 'daytime';