MySQL数据库显示磁盘i/o利用率一直在100%左右。数据库服务器有24 GB内存。
我们试图优化查询,但没有什么效果。
请检查如下所示的当前配置参数:
如果在当前配置中发现任何错误,请提出建议。
发布于 2019-07-30 12:32:13
每个Second=RPS费率-为您的my.cnf (或my.ini) mysqld部分提供建议
query_cache_size=50M # from 268M to reduce CPU cycles used in management of QC
tmp_table_size=256M # from 40G for ~ 1% of RAM a reasonable limit
max_heap_table_size=256M # to match size of tmp_table_size, using 1% of RAM
sort_buffer_size=1M # from 8M allocated per connection - next 2 are per connect also
read_buffer_size=256K # from 8M to reduce volume of data retrieved by 95%
read_rnd_buffer_size=256K # from 8M to reduce volume of data retrieved by 95%在实例的1 stop/start上全部应用。在正常工作时间24小时后,请张贴正面或负面结果的评论。
发布于 2019-08-02 04:29:32
像疯了一样交换!
不要盲目地增加可调性。回到缺省值,除了一个:
innodb_buffer_pool_size将其设置为大约70%的可用RAM。
https://stackoverflow.com/questions/57265740
复制相似问题