Note
This variable is available starting with V2.2.77.
Description
resource_manager_plan is used to activate a resource management plan. Different plans use different CPU quotas to limit the resource usage of users in a resource group.
Privilege requirements
Query variables
systenants and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle-compatible mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL-compatible mode) to obtain the values of Global system variables.Modify variables
systenants can directly modify the values of Global system variables.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the values of Global system variables.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the values 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
In a tenant, ordinary threads and parallel execution threads may contend for CPU resources. By specifying a resource isolation plan for the tenant, you can control the resource contention strategy and limit the resource usage.
Examples
Specify the daytime resource management plan for the tenant.
obclient> SET GLOBAL resource_manager_plan = 'daytime';