36

MySQL延迟问题和数据刷盘策略-王伟

 4 years ago
source link: https://blog.51cto.com/wangwei007/2416148
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.
一、MySQL复制流程官方文档流程图如下:1、绝对的延时,相对的同步2、纯写操作,线上标准配置下,从库压力大于主库,最起码从库有relaylog的写入。二、MySQL延迟问题分析1、主库DML请求频繁原因:主库并发写入数据,而从库为单线程应用日志,很容易造成relaylog堆积,产生延迟。解决思路:做sharding,打散写请求。考虑升级到MySQL5.7+,开启基于逻辑时钟的并行复制。2、主库执

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK