广州鸿名健康科技有限公司


MySQL Variables thread_pool_size 数据库 参数变量解释及正确配置使用

网络编程 MySQL Variables thread_pool_size 数据库 参数变量解释及正确配置使用 10-15

本站中文解释

thread_pool_size参数变量指定的是MySQL的线程池的大小。它指定了MySQL服务器所拥有的最大可用线程数,也尌代表着服务器在处理请求时可以进行的最多的并发操作数。该参数变量的默认值为来自MySQL的性能调优参数innodb_thread_concurrency的值。通常,用户可以通过调整这个值来改变MySQL在某一特定时刻,也就是一个短暂的时间窗口,所能处理的最大连接数。

可以通过以下命令来设置线程池大小:

“`
SET GLOBAL thread_pool_size=x
“`

其中,x表示想要设置的最大可用线程数。

官方英文解释

thread_pool_size

Command-Line Format--thread-pool-size=#
System Variablethread_pool_size
ScopeGlobal
DynamicNo
TypeInteger
Default Value16
Minimum Value1
Maximum Value64

The number of thread groups in the thread pool. This is the
most important parameter controlling thread pool performance.
It affects how many statements can execute simultaneously. If
a value outside the range of permissible values is specified,
the thread pool plugin does not load and the server writes a
message to the error log.

This variable is available only if the thread pool plugin is
enabled. See Section 5.5.3, “MySQL Enterprise Thread Pool”.


编辑:广州鸿名健康科技有限公司

标签:线程,参数,变量,的是,大小