开发者社区 问答 正文

与 BinLog 相关的sync—binlog参数是什么?

与 BinLog 相关的sync—binlog参数是什么?

展开
收起
游客cum3jectrqmmy 2022-01-13 15:40:01 486 分享 版权
1 条回答
写回答
取消 提交回答
  • sync—binlog : 这个参数会影响 MySQL 的 性能和数据的完整性 。取值为 0 时, 事务提交后, MySQL将 bin log_cache 中的数据写入 BinL og 文件的同时,不会执行 fsync() 函数刷盘。当取值为大于 0 的数字 次事务提交操作后,MySQL 将执行一次fsync() 函数, 将多个事务的 BinLog 刷新到磁盘中。

    资料来源:《深入理解分布式事务:原理与实战》,下载链接为:https://developer.aliyun.com/topic/download?id=8201。

    2022-01-13 17:47:09
    赞同 展开评论