首页 > 解决方案 > 迁移到 ipb 后 mysql 性能变慢

问题描述

我最近从 vbulletin 转移到 IPB,我当前的 MySQL 设置配置似乎存在问题,因为该站点的速度很慢。我不确定需要更改哪些 MySQL 设置以帮助提高负载/速度。

服务器是 2 x 2.4GHz Octa-Core E5-2630 v3 Haswell Xeon,内存:96 GB 这是 mysqltuner 的结果。谢谢

https://docs.google.com/document/d/1WMo6SmHQ36QRnXGqwAPQSPGTpVbLwJDIqTe16U65LbA/edit?usp=sharing

标签: mysqletldatabase-migrationweb-hostingvbulletin

解决方案


每秒速率 = RPS

根据 MySQLTuner 报告中的数据和您的问题内容,​​为您的 my.cnf [mysqld] 部分考虑的建议。

connect_timeout=20  # from 10 to avoid aborted connections
thread_cache_size=100  # from ? to reduce threads_created of 143 in 20h
innodb_buffer_pool_size=36G  # from 10G to support all INNODB data and indexes
innodb_change_buffer_max_size=50  # from 25 percent to support ETL activity
innodb_lru_scan_depth=100  # from 1024 to conserve 90% of CPU cycles used for function

这 5 条建议只是配置管理机会的开始。查看配置文件、网络配置文件以获取可免费下载的实用程序脚本,以帮助进行性能调整。


推荐阅读