Note
For V2.2.50, this parameter is available starting with V2.2.50.
Description
server_cpu_quota_max specifies the maximum CPU quota that can be used by the system.
Privilege requirements
Query the parameter
The
systenant and all user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.Modify the parameter
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Double |
| Default value | 0
Note
|
| Value range | [0, 16]
Note
|
| 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.
NoteFor V4.1.0, the effective mode is changed from restart to immediate. |
Considerations
When the value is 0, the system automatically adjusts the maximum CPU quota based on the cpu_count of the server:
- If
cpu_countis less than 8, theserver_cpu_quota_maxis automatically adjusted to 1. - If 8 ≤
cpu_count< 16, theserver_cpu_quota_maxis automatically adjusted to 2. - If 16 ≤
cpu_count< 32, theserver_cpu_quota_maxis automatically adjusted to 3. - If
cpu_countis 32 or more, theserver_cpu_quota_maxis automatically adjusted to 4.
Examples
Set the maximum CPU quota to be automatically adjusted.
obclient> ALTER SYSTEM SET server_cpu_quota_max=0;