Rate This Document
Findability
Accuracy
Completeness
Readability

thread_pool_sched_affinity

Support CLI: Yes

Support configuration file: Yes

Support dynamic modification: Yes

Scope: global

Parameter type: bool

Default value: OFF

Possible values: OFF and ON

By default, the thread group and NUMA affinity function is disabled in the thread pool plugin. The thread_pool_sched_affinity parameter can be used only when all NUMA nodes of the server are available to the mysqld process and the range of CPUs available to the mysqld process is not restricted using a method, for example, numactl.

This reduces the probability of cross-NUMA memory access in scenarios where one session is used to query specific data only and thereby improves query performance.