File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,11 @@ transaction_write_set_extraction = XXHASH64
137137loose-group_replication_bootstrap_group = OFF
138138loose-group_replication_start_on_boot = OFF
139139
140+ # recommended config
141+ innodb_buffer_pool_size = "$INNODB_BUFFER_POOL_SIZE "
142+ loose-group-replication-message-cache-size = "$GROUP_REPLICATION_MESSAGE_CACHE_SIZE "
143+ binlog_expire_logs_seconds = "$BINLOG_EXPIRE_LOGS_SECONDS "
144+
140145# default tls configuration for the group
141146# group_replication_recovery_use_ssl will be overwritten from DB arguments
142147loose-group_replication_ssl_mode = REQUIRED
Original file line number Diff line number Diff line change @@ -35,12 +35,22 @@ if [ -z "$whitelist" ]; then
3535 fi
3636fi
3737mkdir -p /etc/mysql/conf.d/
38+ mkdir -p /etc/mysql/default.d/
3839cat >> /etc/mysql/my.cnf << EOL
40+ !includedir /etc/mysql/default.d/
3941!includedir /etc/mysql/conf.d/
42+ EOL
43+
44+ cat >> /etc/mysql/default.d/my.cnf << EOL
4045[mysqld]
4146default_authentication_plugin=mysql_native_password
4247#loose-group_replication_ip_whitelist = "${whitelist} "
4348loose-group_replication_ip_allowlist = "${whitelist} "
49+
50+ # recommended config
51+ innodb_buffer_pool_size = "$INNODB_BUFFER_POOL_SIZE "
52+ loose-group-replication-message-cache-size = "$GROUP_REPLICATION_MESSAGE_CACHE_SIZE "
53+ binlog_expire_logs_seconds = "$BINLOG_EXPIRE_LOGS_SECONDS "
4454EOL
4555
4656function retry {
You can’t perform that action at this time.
0 commit comments