vitess-gh/config/mycnf/mysql56.cnf

43 строки
1.4 KiB
INI

# This file is auto-included when MySQL 5.6 is detected.
# MySQL 5.6 does not enable the binary log by default, and
# the default for sync_binlog is unsafe. The format is TABLE, and
# info repositories also default to file.
sync_binlog = 1
gtid_mode = ON
binlog_format = ROW
log_slave_updates
enforce_gtid_consistency
expire_logs_days = 3
master_info_repository = TABLE
relay_log_info_repository = TABLE
relay_log_purge = 1
relay_log_recovery = 1
slave_net_timeout = 60
# In MySQL 5.6 the default charset is latin1
character_set_server = utf8
collation_server = utf8_general_ci
# MySQL 5.6 is unstrict by default
sql_mode = STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION
# Semi-sync replication is required for automated unplanned failover
# (when the primary goes away). Here we just load the plugin so it's
# available if desired, but it's disabled at startup.
#
# If the -enable_semi_sync flag is used, VTTablet will enable semi-sync
# at the proper time when replication is set up, or when a primary
# promoted or demoted.
plugin-load = rpl_semi_sync_master=semisync_master.so;rpl_semi_sync_slave=semisync_slave.so
# When semi-sync is enabled, don't allow fallback to async
# if you get no ack, or have no replicas. This is necessary to
# prevent alternate futures when doing a failover in response to
# a primary that becomes unresponsive.
rpl_semi_sync_master_timeout = 1000000000000000000
rpl_semi_sync_master_wait_no_slave = 1