Note
This parameter is available starting with V1.4.
Description
net_thread_count specifies the number of network I/O threads.
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 |
| Value range | [0, 64] |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | Yes. You need to restart the node after the parameter is set. |
Considerations
By default, the number of I/O threads for Libeasy in RPC and MySQL is 1/8 of the number of CPU cores.
If the value of the
net_thread_countparameter is N (N > 0), the number of I/O threads for Libeasy in RPC and MySQL is N.
Examples
Set the number of network I/O threads to 6.
obclient> ALTER SYSTEM SET net_thread_count = 6;
References
For more information about parameters related to CPU, see CPU-related parameters.