-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
innodb_redo_log_capacity should be x but is exactly x #714
Comments
I have the same issue. I was about to open a ticket about this but since this one already exists, I'll just add my voice to it. |
btw why is the recommendaton 25% of the buffer pool size? my opinion is to remove this remcommendation and replace it based on warning (there is warning in log if the value is too low: |
Agreed. Lowering the redo log capacity decreased my RAM usage by a lot. And it seems we have less IO overall |
We ran into this, too, after upgrading to MySQL 8.0 on Ubuntu 20.04 this week.
https://blogs.oracle.com/mysql/post/dynamic-innodb-redo-log-in-mysql-80 This was a small DB of 347 MB (384 MB InnoDB buffer pool size), which would place the "desired" redo log capacity at just under 100 MB, which was configured, anyway. In our case, we need to increase the InnoDB buffer pool size from 128 MB, which placed the "desired" redo log capacity at just 32 MB at first. A few thoughts:
Something like this makes much more sense, IMHO. |
To confuse the issue even more check out what mysql does to the innodb_redo_log_capacity if you enable innodb_dedicated_server (automatically configures most of the important settings for you) https://dev.mysql.com/doc/refman/8.0/en/innodb-dedicated-server.html Spoiler. In our case with a server that has 128GB of memory it sets the innodb_redo_log_capacity to 56.25% of the server memory. Even though it sounds crazy mysqltuner should probably follow Oracle/Mysql's table if innodb_dedicated_server is enabled. |
Given that innodb_dedicated_server sets all these values automatically, I would think the better approach for the case where innodb_dedicated_server is enabled, would be to simply advise that the innodb_redo_log_capacity setting be removed if it is manually defined, to allow MySQL to set its own defaults? |
Same here.
|
Had the same bug on the latest version:
Tried to fix it : #801 |
example output:
innodb_redo_log_capacity should be (=512M) if possible, so InnoDB Redo log Capacity equals 25% of buffer pool size.
config:
INNODB
innodb_redo_log_capacity = 512M
checked in mysql:
mysql> show global variables like "innodb_redo_log_capacity";
+--------------------------+-----------+
| Variable_name | Value |
+--------------------------+-----------+
| innodb_redo_log_capacity | 536870912 |
+--------------------------+-----------+
The text was updated successfully, but these errors were encountered: