The following table describes ODP parameters that take effect only after a restart.
| Parameter | Default value | Value range | Note |
|---|---|---|---|
stack_size |
1 MB | [1MB,10MB] | The size of the thread stack. This parameter is used for thread creation. |
work_thread_num |
128 | [1,128] | The number of worker threads. This parameter is used for worker thread initialization. |
task_thread_num |
2 | [1,4] | The number of threads for tasks. This parameter is used for task thread initialization. |
block_thread_num |
1 | [1,4] | The number of threads for blocking tasks. This parameter is used for thread initialization. |
grpc_thread_num |
8 | [8,16] | The number of gRPC threads. |
grpc_client_num |
9 | [9,16] | The number of gRPC clients. |
automatic_match_work_thread |
true | / | Specifies whether to automatically create worker threads based on the number of CPU cores. If you set the parameter to true, the maximum number of worker threads is determined by the work_thread_num parameter. |
enable_strict_kernel_release |
true | / | Specifies whether the OS kernel must be verified. |
net_accept_threads |
2 | [0,8] | The number of threads that run accept tasks. |
frequent_accept |
true | / | Specifies whether to initialize the net accept parameter. |
enable_cpu_topology |
false | / | Specifies whether to enable CPU affinity. |
enable_compression_protocol |
true | / | Specifies whether to enable the compression protocol. |
enable_ob_protocol_v2 |
true | / | Specifies whether to enable the OB2.0 protocol. |