1.需要确认 是主库的binlog 有没有传输到从库的relay。show slave status 上面就能看出是否binlog没有传输导致的
2.sync_binlog, innodb_flush_log_at_commit 先改成0 ,只后再改回来。 延迟问题一般没主键,大事务导致