MySQL 8.0 Reference Manual Including MySQL NDB Cluster 8.0

15.8.12 Enabling Automatic Configuration for a Dedicated MySQL Server

When innodb_dedicated_server is enabled, InnoDB automatically configures the following variables:

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 other applications.

The information that follows describes how each variable is automatically configured.

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 stderr:

[Warning] [000000] 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 innodb_dedicated_server is enabled and innodb_buffer_pool_size is configured explicitly in an option file, innodb_log_file_size and innodb_log_files_in_group are automatically configured based on the implicit buffer pool size that is calculated according to the amount of memory detected on the server.

Automatically configured settings are evaluated and reconfigured if necessary each time the MySQL server is started.