Quantcast
Channel: MySQL Forums - Replication
Viewing all articles
Browse latest Browse all 1562

What's the configuration for crash safe slave when using GTID in MySQL5.6? (no replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 1562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>