MySQL Forums
Forum List  »  Replication

What's the configuration for crash safe slave when using GTID in MySQL5.6?
Posted by: huajun chen
Date: November 04, 2016 12:02PM

Hi,all

According the manual,When using GTIDs and MASTER_AUTO_POSITION,should set relay_log_recovery=0 for crash safe slave.Does it right?

http://dev.mysql.com/doc/refman/5.6/en/replication-solutions-unexpected-slave-halt.html
-----------------------------------------
When using GTIDs and MASTER_AUTO_POSITION, set relay_log_recovery=0. With this configuration the setting of relay_log_info_repository and other variables does not impact on recovery.
-----------------------------------------

In this manual the above table relay_log_recovery is 1, this is not contradictory? And most topics said should set relay_log_recovery to 1 .


further more,we should Keep binlog and innodb consistent,sync-binlog=1 and
innodb-flush-log-at-trx-commit=1 are also needed(see http://bugs.mysql.com/bug.php?id=70659).

So,When using GTIDs and MASTER_AUTO_POSITION,the configuration for crash safe slave should be as the following.Does it right?

sync-binlog=1
innodb-flush-log-at-trx-commit=1
relay_log_recovery=0

Options: ReplyQuote


Subject
Views
Written By
Posted
What's the configuration for crash safe slave when using GTID in MySQL5.6?
1107
November 04, 2016 12:02PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.