S
Supanote
Sign in Sign up

MySQL 8.4 LTS Production my.cnf (Redo Capacity & NVMe)

plain (ini) 1 day ago · 46 lines · 2 views
Verified Blueprint MySQL 8.4 LTS

Modern MySQL 8.4 LTS and 9.x production my.cnf using dynamic innodb_redo_log_capacity, NVMe IOPS tuning, and parallel replica workers.

  • ✓ Replaces deprecated innodb_log_file_size with online-resizable innodb_redo_log_capacity
  • ✓ Aligned with MySQL 8.4 LTS defaults including replica_parallel_workers and binlog expire seconds
  • ✓ Prevents disk temp-table thrashing and enables Performance Schema query digest percentiles
Quick Fetch
1# MySQL 8.4 LTS / 9.x Production Configuration (32 GB RAM / 8 vCPU / NVMe SSD)
2# Place at /etc/mysql/conf.d/99-production-84.cnf
3# Clean of removed 8.0 flags (default_authentication_plugin, binlog_transaction_dependency_tracking)
4
5[mysqld]
6# 1. InnoDB Buffer Pool & Dynamic Redo Capacity (70% RAM on dedicated DB server)
7innodb_buffer_pool_size = 22G
8innodb_buffer_pool_instances = 8
9innodb_redo_log_capacity = 8G
10innodb_log_buffer_size = 64M
11innodb_flush_method = O_DIRECT
12innodb_flush_log_at_trx_commit = 1
14# 2. NVMe Concurrency & Page Cleaners
15innodb_io_capacity = 4000
16innodb_io_capacity_max = 10000
17innodb_read_io_threads = 8
18innodb_write_io_threads = 8
19innodb_page_cleaners = 8
20innodb_numa_interleave = ON
22# 3. Connections & In-Memory Temp Tables
23max_connections = 500
24thread_cache_size = 64
25temptable_max_ram = 1G
26temptable_max_mmap = 1G
27tmp_table_size = 64M
28max_heap_table_size = 64M
30# 4. Binary Logging & Multi-Threaded GTID Replication (MySQL 8.4 Terminology)
31server_id = 101
32gtid_mode = ON
33enforce_gtid_consistency = ON
34binlog_format = ROW
35binlog_row_image = MINIMAL
36sync_binlog = 1
37binlog_expire_logs_seconds = 604800
38replica_parallel_workers = 8
39replica_preserve_commit_order = ON
41# 5. Slow Query Log & Performance Schema Digests
42slow_query_log = ON
43long_query_time = 0.5
44log_slow_extra = ON
45performance_schema = ON

No replies yet

Every reply is a note. Start a discussion, ask a question, or attach a code snippet.

Related MySQL 8.4 LTS & Database, Cache & SQL Blueprints

Production-ready configurations and diagnostics from the verified Supanote library.

All Database, Cache & SQL →
Interactive Developer Workbench: .env, Log & API Key Secret Scanner

Detect and redact leaked AWS keys, JWTs, database URIs, private keys, and Bearer tokens before sharing.

Open Secret Scanner →

Share Note

Open
Download SVG
Social Card Preview
Open on mobile
Point your phone camera to open this note directly

Report this note

Notification