The following table describes ODP parameters that take effect only after a restart.
| Parameter | Default value | Value range | Description |
|---|---|---|---|
stack_size |
1MB | [1MB, 10MB] | Specifies the size of the thread stack and is used for thread creation. |
work_thread_num |
8 | [1, 128] | Specifies the number of worker threads and is used for worker thread initialization. |
task_thread_num |
2 | [1, 4] | Specifies the number of threads for tasks and is used for thread initialization. |
| block_thread_num | 1 | [1, 4] | Specifies the number of threads for blocking tasks and is used for thread initialization. |
| grpc_thread_num | 8 | [8, 16] | Specifies the number of gRPC threads. |
| grpc_client_num | 9 | [9, 16] | Specifies 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 keep the default value, the upper limit of work_thread_num applies. |
| enable_strict_kernel_release | true | / | Specifies whether the OS kernel is to be verified. |
dedup_queue_thread_num |
2 | [1, 4] | Specifies the number of threads for fetch tasks. |
dedup_queue_bucket_num |
256 | [256, 1024] | Specifies the number of buckets for the dedup_queue. |
dedup_queue_task_queue_size |
1024 | [512, 1024] | Specifies the size of task queue for the dedup_queue. |
kv_cache_bucket_num |
1024 | [512, 2048] | This parameter is used for kvcache initiation. |
net_accept_threads |
2 | [0, 8] | Specifies the number of threads for net 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 | false | / | Specifies whether to enable the OB2.0 protocol. |