Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果 master 和 slave 的 sync_binlog 不同,是否可以。对于我的系统,我可以看到 master 有 sync_binlog=1 和 slave 有 sync_binlog=0
完全没问题。
sync_binlog仅对配置它的服务器有影响。
sync_binlog
值 0 提供更高的性能,以换取在发生崩溃时减少对 binlog 条目丢失的弹性。
因此,0 在副本上很常见,1 在主服务器上很常见。