31 lines
796 B
INI
31 lines
796 B
INI
[mysqld]
|
|
mysqlx = OFF
|
|
skip-name-resolve = 1
|
|
max-user-connections = 600
|
|
|
|
## this should be less than 80% of total memory
|
|
innodb-buffer-pool-size = xxxxG
|
|
|
|
## this should be half of "innodb-buffer-pool-size"
|
|
innodb-buffer-pool-instances = xxxx
|
|
|
|
# binlog
|
|
## this should be an unsigned tinyint and different with the other mysql server.
|
|
server-id = xxxx
|
|
log-bin = /var/lib/mysql-bin/master
|
|
binlog-format = ROW
|
|
binlog-expire-logs-seconds = 172800
|
|
gtid-mode = ON
|
|
enforce-gtid-consistency = TRUE
|
|
|
|
# replication
|
|
replicate-wild-ignore-table = information_schema.%
|
|
replicate-wild-ignore-table = mysql.%
|
|
replicate-wild-ignore-table = performance_schema.%
|
|
replicate-wild-ignore-table = sys.%
|
|
slave-parallel-workers = 2
|
|
log-slave-updates = FALSE
|
|
relay-log = /var/lib/mysql-bin/slave
|
|
relay-log-recovery = TRUE
|
|
|