mysql - 迁移到 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
解决方案
每秒速率 = 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 条建议只是配置管理机会的开始。查看配置文件、网络配置文件以获取可免费下载的实用程序脚本,以帮助进行性能调整。
推荐阅读
- r - 如何为形状着色
- ios - Oracle JET:将 xcode 升级到版本 12.0 (12A7209) 后无法构建 ojet 混合项目
- javascript - 通过引用查找数组中对象的索引?
- javascript - 无法获取 div 的内容以本地存储并在本地加载
- python - Python:烧瓶导入失败
- swiftui - 使用 CoreData 和 SwiftUI 在 Scope 中找不到类型
- javascript - 将自定义自动完成添加到 react-ace EUI Kibana
- docker - Docker 和 DockerFile 构建
- google-bigquery - 标准 SQL 抛出 BAD INT 错误
- python - Pycharm 检查 .idea 是否有效