Skip to content

Commit 3784a20

Browse files
authored
Set InnoDB Buffer Pool Size (#58)
Signed-off-by: SK Ali Arman <[email protected]>
1 parent 1871c89 commit 3784a20

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

scripts/run.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ transaction_write_set_extraction = XXHASH64
137137
loose-group_replication_bootstrap_group = OFF
138138
loose-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
142147
loose-group_replication_ssl_mode = REQUIRED

scripts/run_innodb.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,22 @@ if [ -z "$whitelist" ]; then
3535
fi
3636
fi
3737
mkdir -p /etc/mysql/conf.d/
38+
mkdir -p /etc/mysql/default.d/
3839
cat >>/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]
4146
default_authentication_plugin=mysql_native_password
4247
#loose-group_replication_ip_whitelist = "${whitelist}"
4348
loose-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"
4454
EOL
4555

4656
function retry {

0 commit comments

Comments
 (0)