Note
This parameter is available starting with V1.4.
Description
cpu_count specifies the total number of CPU cores in 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 | Int |
| Default value | 0, which indicates that the system automatically detects the number of CPU cores. |
| Value range | [0, +∞) |
| 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. |
Considerations
Other configurations in the cluster may affect the effectiveness of this parameter. After you configure this parameter, run the SELECT statement to query the CPU_CAPACITY field in the GV$OB_SERVERS internal table. If the value does not dynamically take effect, you must restart the entire cluster.
Examples
Set the total number of CPU cores in the system to 16.
obclient> ALTER SYSTEM SET cpu_count=16;
References
- Set the maximum CPU quota of the system: server_cpu_quota_max
- Set the minimum CPU quota of the system: server_cpu_quota_min