摘要: Mysql 支持互为主从,主库通过binlog 将执行的语句传给从库,具体的执行机构: 主库上的 dump thread,主库上的 binlog 只有在写入到硬盘之后才能通过 dump thread 传出 从库上的 IO thread,接收主库的 dump thread 发过来的 binlog 并且 阅读全文
posted @ 2020-11-25 15:30 执生 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 总所周知 , innodb 的日志是二阶段提交的,redolog 先在 prepare 阶段写入, binlog 再写入,最后 redolog commit 这其中 redolog 的刷入时机是由 innodb_flush_log_at_trx_commit 参数控制,有提交时不刷如,刷入操作系统缓 阅读全文
posted @ 2020-11-25 14:54 执生 阅读(913) 评论(0) 推荐(0) 编辑