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, 128]
NoteFor V4.3.5 BP2, the value range of this parameter is adjusted from [0, 64] to [0, 128]. |
| 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.4.0, the effective mode of this parameter is adjusted from "effective upon OBServer node restart" to "effective immediately". |
Considerations
By default, the number of I/O threads for RPC and MySQL Libeasy is 1/8 of the number of CPU cores.
If the value of
net_thread_countis N (N > 0), the number of I/O threads for RPC and MySQL Libeasy 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 CPU-related parameters, see CPU-related parameters.