Note
- For OceanBase Database V4.3.x, this parameter was introduced in OceanBase Database V4.3.2.
- For OceanBase Database V4.2.x, this parameter was introduced in OceanBase Database V4.2.3.
Description
global_background_cpu_quota specifies the number of CPU cores for background tasks when global resource isolation is enabled between foreground and background tasks. This parameter is valid only when the enable_global_background_resource_isolation parameter is set to True.
Limitations
Query the parameter
In the
systenant or a user tenant, you can execute theSHOW PARAMETERSstatement to query the parameter or query theGV$OB_PARAMETERSview for the parameter. In thesystenant, you can also query theinformation_schema.PARAMETERSview for the parameter.Modify the parameter
You can modify the parameter only in the
systenant.
Attributes
| Attribute | Description |
|---|---|
| Type | Integer |
| Default value | -1 |
| Value range | [-1, +∞)
NoteThe value |
| 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 to 50 for background tasks when global resource isolation is enabled between foreground and background tasks.
obclient> ALTER SYSTEM SET global_background_cpu_quota=50;