Note
This parameter is available starting with V2.2.50.
Description
server_cpu_quota_max specifies the maximum CPU quota available to the system.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.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 changes from restart to immediate. |
Considerations
When the value is 0, the system adaptively adjusts the maximum CPU quota based on the cpu_count value of the server:
- If
cpu_countis less than 8, theserver_cpu_quota_maxvalue is adaptively adjusted to 1. - If 8 ≤
cpu_count< 16, theserver_cpu_quota_maxvalue is adaptively adjusted to 2. - If 16 ≤
cpu_count< 32, theserver_cpu_quota_maxvalue is adaptively adjusted to 3. - If
cpu_countis 32 or more, theserver_cpu_quota_maxvalue is adaptively adjusted to 4.
Examples
Adaptively adjust the maximum CPU quota.
obclient> ALTER SYSTEM SET server_cpu_quota_max=0;