Note
- For V4.3.x, this parameter is available starting with V4.3.2.
- For V4.2.x, this parameter is available starting with V4.2.3.
Description
global_background_cpu_quota specifies the number of CPU cores for background tasks when global foreground and background resource isolation is enabled. This parameter is valid only when the value of enable_global_background_resource_isolation is True.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview. Thesystenant can also query this parameter by using theinformation_schema.PARAMETERSview.Modify the parameter
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | -1 |
| Value range | [-1, +∞)
NoteWhen the value is -1 or 0, the number of CPU cores used is not limited by Cgroups. |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Examples
Set the number of CPU cores for background tasks to 50 when global foreground and background resource isolation is enabled.
obclient> ALTER SYSTEM SET global_background_cpu_quota=50;
