Hello,
I would like to get feedback on my Percona MySQL 5.7 (mysqld) configuration and check whether it is properly tuned for my system.
Environment
-
MySQL: Percona MySQL 5.7
-
OS: Debian 11 (Bullseye)
Hardware
- RAM, CPU, and disk details are shared via screenshots below.
MySQL Configuration
-
Current
mysqld.cnfis attached. -
I am mainly looking for feedback on:
-
InnoDB-related settings
-
Memory usage and buffer sizes
-
Connection/thread configuration
-
Any incorrect, unnecessary, or risky parameters for MySQL 5.7
-
Questions
-
Is this configuration appropriate for my hardware?
-
Are there any obvious improvements or misconfigurations?
Thank you for your help.
# The Percona Server 5.7 configuration file.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
[mysqld]
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /DB
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
explicit_defaults_for_timestamp
log-error = /var/log/mysql/error.log
# Recommended in standard MySQL setup
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_ALL_TABLES
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
server-id=10
log-bin=/LOG/binlog
#log_slave_updates
expire_logs_days=14
max_allowed_packet=1G
skip_name_resolve
bind-address=0.0.0.0
open_files_limit = 65000
max_connections=1000
collation-server = utf8_unicode_ci
character-set-server = utf8
max_binlog_size=1G
gtid-mode=on # GTID only
enforce-gtid-consistency=true # GTID only
innodb_file_per_table
innodb_flush_log_at_trx_commit=2
innodb_flush_method=O_DIRECT
innodb_buffer_pool_size=45G
innodb_log_file_size=16G
innodb_buffer_pool_instances = 8
slave_parallel_type='LOGICAL_CLOCK'
slave_parallel_workers=8

