Note
-
Starting from V4.1.0, this parameter is at the tenant level instead of the cluster level.
- This parameter is available starting with V2.2.50.
Description
px_workers_per_cpu_quota specifies the maximum number of parallel execution threads that can be allocated to each CPU.
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
The
systenant and user tenants can modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Type | Int |
| Default value | 10 |
| Value range | [0, 20] |
| 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 maximum number of parallel execution threads that can be allocated to each CPU to 10.
obclient> ALTER SYSTEM SET px_workers_per_cpu_quota =10;
