0

如果 master 和 slave 的 sync_binlog 不同,是否可以。对于我的系统,我可以看到 master 有 sync_binlog=1 和 slave 有 sync_binlog=0

4

1 回答 1

0

完全没问题。

sync_binlog仅对配置它的服务器有影响。

值 0 提供更高的性能,以换取在发生崩溃时减少对 binlog 条目丢失的弹性。

因此,0 在副本上很常见,1 在主服务器上很常见。

于 2017-05-14T10:17:39.890 回答