RDS 只读副本同步失败 - RDS MySQL

0

我的 RDS read replica 经常出现同步失败的情况,请问一般什么原因会触发此类问题?有办法高效解决此类问题吗?

Got fatal error 1236 from m_ster when reading data from binary log: 'Client requested m_ster to start replication from position > file size' DB Instance(s): xxx.rds.amazonaws.com

ges
demandé il y a un an180 vues
2 réponses
0

好像只能重建只读副本了,不知是否还有其他好方法

ges
répondu il y a un an
0

请您确认主实例上面的 sync_binlog 与 innodb_flush_log_at_trx_commit 两个参数是不是设置为缺省的1。

若是您设置了为非双1的设置,主实例发生crashes 或异常的failover的时候,MySQL实例来不及刷新binlog至档案系统,会发生一秒的数据丢失,因此从库同步发生问题。

profile pictureAWS
répondu il y a 8 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions