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 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 | 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 parameters in the cluster may affect the effectiveness of this parameter. We recommend that you view the CPU_CAPACITY field in the GV$OB_SERVERS internal table by using the SELECT statement after you configure this parameter. If the parameter does not take effect dynamically, 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