In this blog post, I’ll provide some guidance on how to choose
the MySQL innodb_log_file_size.
Like many database management systems, MySQL uses logs to achieve
data durability (when using the default InnoDB storage engine).
This ensures that when a transaction is committed, data is not
lost in the event of crash or power loss.
MySQL’s InnoDB storage engine uses a fixed size (circular) Redo
log space. The size is controlled by innodb_log_file_size
and innodb_log_files_in_group (default 2).
You multiply those values and get the Redo log space that
available to use. While technically it shouldn’t matter whether
you change either the innodb_log_file_size or
innodb_log_files_in_group variable to control
the Redo space size, most people just work with the
innodb_log_file_size and leave
innodb_log_files_in_group alone.
Configuring …
[Read more]