Skip to main content

Safe Way to Reduce innodb_log_file_size on MariaDB 11.4 + Performance Tuning Advice

Comments

1 comment

  • cPRex Jurassic Moderator

    Hey there!  I'm not able to comment on specific performance improvements to your system, but I do have a few thoughts about this change.

    The first, is that modern versions of cPanel & WHM have the WHM >> Edit Database Configuration tool, which will let you see all the values and their defaults directly in the WHM interface.  The default value for innodb_log_file_size from MariaDB is 48M, which is what we show on that screen.

    In the MariaDB documentation at https://mariadb.com/docs/server/server-usage/storage-engines/innodb/innodb-system-variables#innodb_log_file_size it says the following:

    "From MariaDB 10.9 the variable is dynamic, and the server no longer needs to be restarted for the resizing to take place."

    so I would expect you to be able to change this without performing any other extra work (stopping the database service, stopping cPanel monitoring, etc.) on the server.  I also found a thread where an admin says this is dynamic here, and even shows the expected log output from a server where reducing the size worked properly:

    https://community.centminmod.com/threads/changing-value-of-innodb_log_file_size.22185/

    So I would say that it *seems* safe to change this without performing other work, but I personally would have backups ready to go.

    0

Please sign in to leave a comment.