mirror of
https://github.com/hermensbas/azerothcore_installer.git
synced 2026-01-13 08:37:17 +00:00
Update readme.md
This commit is contained in:
42
readme.md
42
readme.md
@@ -22,36 +22,42 @@ SHOW VARIABLES LIKE 'innodb_buffer_pool_size';
|
|||||||
|
|
||||||
/etc/mysql/my.cnf
|
/etc/mysql/my.cnf
|
||||||
```
|
```
|
||||||
# InnoDB Memory
|
# ------------------ Memory Usage ------------------
|
||||||
innodb_buffer_pool_size = 32G
|
innodb_buffer_pool_size = 24G
|
||||||
innodb_buffer_pool_instances = 8
|
innodb_buffer_pool_instances = 8
|
||||||
innodb_log_buffer_size = 256M
|
innodb_log_buffer_size = 512M
|
||||||
innodb_redo_log_capacity = 8G
|
innodb_redo_log_capacity = 6G
|
||||||
|
|
||||||
# InnoDB I/O
|
# ------------------ I/O & NVMe Tuning ------------------
|
||||||
innodb_io_capacity = 1000
|
innodb_flush_method = O_DIRECT # Avoid OS cache — best for NVMe
|
||||||
innodb_io_capacity_max = 4000
|
|
||||||
innodb_flush_method = O_DIRECT
|
|
||||||
innodb_use_fdatasync = ON
|
innodb_use_fdatasync = ON
|
||||||
innodb_flush_log_at_trx_commit = 2
|
innodb_flush_log_at_trx_commit = 2 # Fast + safe enough with battery/UPS
|
||||||
|
innodb_io_capacity = 2000 # Pushes high IOPS for writes
|
||||||
|
innodb_io_capacity_max = 8000 # Maximize during bursts
|
||||||
|
|
||||||
# Temp Tables
|
# ------------------ Temp Tables & Buffers ------------------
|
||||||
tmp_table_size = 128M
|
tmp_table_size = 256M
|
||||||
max_heap_table_size = 128M
|
max_heap_table_size = 256M
|
||||||
|
join_buffer_size = 2M
|
||||||
|
sort_buffer_size = 4M
|
||||||
|
read_buffer_size = 2M
|
||||||
|
read_rnd_buffer_size = 1M
|
||||||
|
|
||||||
# Thread/Connection Handling
|
# ------------------ Concurrency / Threads ------------------
|
||||||
thread_cache_size = 32
|
thread_handling = one-thread-per-connection
|
||||||
join_buffer_size = 1M
|
thread_cache_size = 64
|
||||||
sort_buffer_size = 2M
|
|
||||||
max_connections = 300
|
max_connections = 300
|
||||||
table_open_cache = 4000
|
table_open_cache = 4000
|
||||||
open_files_limit = 65535
|
open_files_limit = 65535
|
||||||
|
|
||||||
# Deadlock/Lock Management
|
# ------------------ Locking/Deadlocks ------------------
|
||||||
innodb_lock_wait_timeout = 10
|
innodb_lock_wait_timeout = 10
|
||||||
innodb_deadlock_detect = ON
|
innodb_deadlock_detect = ON
|
||||||
|
|
||||||
# Logging (for profiling performance)
|
# ------------------ File & Table Management ------------------
|
||||||
|
innodb_file_per_table = 1
|
||||||
|
|
||||||
|
# ------------------ Logging / Debug ------------------
|
||||||
slow_query_log = 1
|
slow_query_log = 1
|
||||||
slow_query_log_file = /var/log/mysql/mysql-slow.log
|
slow_query_log_file = /var/log/mysql/mysql-slow.log
|
||||||
long_query_time = 1
|
long_query_time = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user