zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

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

mysql数据库配置变量 使用 解释 参数 正确
2023-06-13 09:11:26 时间
本站中文解释

thread_pool_algorithm参数是MySQL 8.0中新增的参数,该参数控制MySQL线程池使用的调度算法。该参数支持三种策略:RR(轮询调度)、OS(操作系统)和TS(目标调度)。

轮询调度是最常用的调度算法,它将每个线程分配到来自指定队列的任务,这样每个线程都可以进行任务处理。

操作系统调度使用操作系统底层的调度算法,即如果线程池中有任务来了,则操作系统将根据实施的调度算法为每个线程分配一个任务,以保证一致的线程分配。

目标调度用于处理更大的线程池,它将多个任务全部分配到不同队列中,并将增量部分分配给所有队列,以保持均衡性。

要设置thread_pool_algorithm参数,可以使用以下指令:
SET GLOBAL thread_pool_algorithm=;

官方英文解释 thread_pool_algorithm


A value of 0 (the default) uses a conservative
low-concurrency algorithm which is most well tested and is
known to produce very good results.


A value of 1 increases the concurrency and uses a more
aggressive algorithm which at times has been known to
perform 5–10% better on optimal thread counts, but
has degrading performance as the number of connections
increases. Its use should be considered as experimental
and not supported.


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


我想要获取技术服务或软件
服务范围:MySQL、ORACLE、SQLSERVER、MongoDB、PostgreSQL 、程序问题
服务方式:远程服务、电话支持、现场服务,沟通指定方式服务
技术标签:数据恢复、安装配置、数据迁移、集群容灾、异常处理、其它问题

本站部分文章参考或来源于网络,如有侵权请联系站长。
数据库远程运维 MySQL Variables thread_pool_algorithm 数据库 参数变量解释及正确配置使用