Rate This Document
Findability
Accuracy
Completeness
Readability

thread_pool_dedicated_listener

Support CLI: Yes

Support configuration file: Yes

Support dynamic modification: Yes

Scope: global

Parameter type: bool

Default value: OFF

Possible values: OFF and ON

This variable specifies whether the listener thread only waits for network events by calling epoll_wait. The default value is OFF. That is, when one or more network events occur and the priority and common queues are empty (the network is not busy), the listener thread reserves the first network event and puts the other events (if there are multiple network events polled in one epoll_wait) in the common queue or high-priority queue. The listener thread becomes a worker thread to process the first reserved network event to reduce thread context switches.

Set this parameter to ON if you configure a small thread_pool_size. After network events are obtained, the listener thread puts all network event tasks in the priority queue or common queue, and then calls epoll_wait to wait for network events. In this way, network events can be obtained more efficiently.