InnoDB automatically configures the
Only consider enabling
innodb_dedicated_server if the
MySQL instance resides on a dedicated server where it can use all
available system resources. For example, consider enabling if you
run MySQL Server in a Docker container or dedicated VM. Enabling
innodb_dedicated_server is not
recommended if the MySQL instance shares system resources with
The information that follows describes how each variable is automatically configured.
Buffer pool size is configured according to the amount of memory detected on the server.
Table 15.9 Automatically Configured Buffer Pool Size
Detected Server Memory Buffer Pool Size Less than 1GB 128MiB (the default value) 1GB to 4GB
detected server memory* 0.5
Greater than 4GB
detected server memory* 0.75
As of MySQL 8.0.14, log file size is configured according to the automatically configured buffer pool size.
Table 15.10 Automatically Configured Log File Size
Buffer Pool Size Log File Size Less than 8GB 512MiB 8GB to 128GB 1024MiB Greater than 128GB 2048MiB
Prior to MySQL 8.0.14, the
innodb_log_file_sizevariable was automatically configured according to the amount of memory detected on the server, as shown below:
Table 15.11 Automatically Configured Log File Size (MySQL 8.0.13 and Earlier)
Detected Server Memory Log File Size < 1GB 48MiB (the default value) <= 4GB 128MiB <= 8GB 512MiB <= 16GB 1024MiB > 16GB 2048MiB
The number of log files is configured according to the automatically configured buffer pool size (in gigabytes). Automatic configuration of the
innodb_log_files_in_groupvariable was added in MySQL 8.0.14.
Table 15.12 Automatically Configured Number of Log Files
Buffer Pool Size Number of Log Files Less than 8GB ROUND(
buffer pool size)
8GB to 128GB ROUND(
buffer pool size* 0.75)
Greater than 128GB 64
Prior to MySQL 8.0.14, the
O_DIRECT_NO_FSYNCsetting is not recommended for use on Linux systems. It may cause the operating system to hang due to file system metadata becoming unsynchronized. As of MySQL 8.0.14,
fsync()after creating a new file, after increasing file size, and after closing a file, which permits
O_DIRECT_NO_FSYNCmode to be safely used on XFS and EXT4 file systems. The
fsync()system call is still skipped after each write operation.
If an automatically configured option is configured explicitly in
an option file or elsewhere, the explicitly specified setting is
used, and a startup warning similar to this is printed to
[Warning]  InnoDB: Option innodb_dedicated_server is ignored for innodb_buffer_pool_size because innodb_buffer_pool_size=134217728 is specified explicitly.
Explicit configuration of one option does not prevent the
automatic configuration of other options. For example, if
configured explicitly in an option file,
automatically configured based on the implicit buffer pool size
that is calculated according to the amount of memory detected on
Automatically configured settings are evaluated and reconfigured if necessary each time the MySQL server is started.