4

为什么binlog大小会大于max_binlog_size?

 3 years ago
source link: https://blogread.cn/it/article/5372?f=hot1
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

    CASE:

     mysql的IO处理上有抖动, 从日值上观查binlog最大的有(512M)大于max_binlog_size(128M)

    原因:

     当mysql在处理大事务时,不会进行binlog切换,所有的日值还是会写到一个数据文件里.

     如: bulk insert之类的操作

     解决办法:

     拆分大事务. 或是把大事务处理放到业务低峰期,避免大事务对业务的冲击.

    特别提示: 

    看到这种现象可以通过分析binlog查到是什么操作, 可以通过业务的方面考虑一下怎么规避.

觉得文章有用?立即:

和朋友一起 共学习 共进步!

建议继续学习:

QQ技术交流群:445447336,欢迎加入!
扫一扫订阅我的微信号:IT技术博客大学习

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK