68

实现MySQL半同步架构-李亮的博客

 6 years ago
source link: http://blog.51cto.com/13598893/2092492
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的复制功能是异步的,异步复制可以提供最佳的性能,主库把binlog日志发送给从库即结束,并不验证从库是否接收完毕。这意味着当主服务器或从服务器端发生故障时,有可能从服务器没有接收到主服务器发送过来的binlog日志,这就会造成主服务器和从服务器的数据不一致,甚至在恢复时造成数据的丢失。而半同步架构就是什么工作机制呢?当用户写数据时master服务器会马上把数据复制到一台sla

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK