// mysql · wal, redo & durability

innodb_redo_log_capacity

Total disk space for the InnoDB redo log.

Par défaut
100MB
Range
8MB to 512GB
Restart needed
Non
Default checked on
MySQL 8.4 LTS

Ce que cela fait

Replaced innodb_log_file_size and innodb_log_files_in_group in MySQL 8.0.30. InnoDB keeps 32 files in #innodb_redo. A larger log means fewer forced flushes during write bursts and longer crash recovery.

Valeur par défaut

100MB. 104857600 bytes (MySQL 8.4). With innodb_dedicated_server=ON it is sized from the CPU count.

Check the current value

SHOW GLOBAL VARIABLES LIKE 'innodb_redo_log_capacity';

SELECT VARIABLE_NAME, VARIABLE_SOURCE, MIN_VALUE, MAX_VALUE, SET_TIME
FROM performance_schema.variables_info
WHERE VARIABLE_NAME = 'innodb_redo_log_capacity';

Change it

SET GLOBAL innodb_redo_log_capacity = 4294967296;    -- until the next restart
SET PERSIST innodb_redo_log_capacity = 4294967296;   -- now and after restarts

No restart. SET GLOBAL or SET PERSIST takes effect immediately; SET PERSIST also writes mysqld-auto.cnf so the value survives restarts.

When to change it

On write-heavy servers: size it to hold roughly an hour of peak redo (measure Innodb_redo_log_current_lsn over time). 100MB is small for busy production servers.

What can go wrong

Larger capacity lengthens crash recovery. Changing it online is fine; InnoDB resizes as files are recycled.

The closest setting on other engines

MoteurParamètrePar défautRestart
MySQL innodb_redo_log_capacity this page 100MB Non
PostgreSQL max_wal_size 1GB Non
SQL Server TARGET_RECOVERY_TIME 60 SECONDS Non
Oracle fast_start_mttr_target 0 Non
SQLite wal_autocheckpoint 1000 pages Non

Questions about innodb_redo_log_capacity

What is the default value of innodb_redo_log_capacity in MySQL?

100MB. 104857600 bytes (MySQL 8.4). With innodb_dedicated_server=ON it is sized from the CPU count.

Does changing innodb_redo_log_capacity require a restart?

No. No restart. SET GLOBAL or SET PERSIST takes effect immediately; SET PERSIST also writes mysqld-auto.cnf so the value survives restarts.

When should I change innodb_redo_log_capacity?

On write-heavy servers: size it to hold roughly an hour of peak redo (measure Innodb_redo_log_current_lsn over time). 100MB is small for busy production servers.

Back to all MySQL settings, or check the MySQL manual for every option.

// one client for every engine

Check innodb_redo_log_capacity on your own server

SQLly runs the query above against MySQL and the other engines in this reference, from one desktop app on macOS, Windows and Linux.