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
preguntada hace un año180 visualizaciones
2 Respuestas
0

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

ges
respondido hace un año
0

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

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

profile pictureAWS
respondido hace 8 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas