26 lines
706 B
INI
26 lines
706 B
INI
# MySQL 8.4 — Nexus production tuning for 2 vCPU / 8 GiB host
|
|
# Mounted by docker/docker-compose.prod.yml (see docs/design/plans/2026-06-04-1panel-docker-production.md)
|
|
|
|
[mysqld]
|
|
character-set-server = utf8mb4
|
|
collation-server = utf8mb4_unicode_ci
|
|
|
|
# ~1 GiB for InnoDB (leave RAM for Nexus, Redis, 1Panel, OS)
|
|
innodb_buffer_pool_size = 1024M
|
|
innodb_log_file_size = 256M
|
|
|
|
# Nexus async pool default 30+20; leave headroom for admin/migrations
|
|
max_connections = 120
|
|
|
|
# 2 vCPU: avoid aggressive IO threads
|
|
innodb_read_io_threads = 4
|
|
innodb_write_io_threads = 4
|
|
|
|
# Sensible defaults on small VMs
|
|
table_open_cache = 2000
|
|
tmp_table_size = 64M
|
|
max_heap_table_size = 64M
|
|
|
|
[client]
|
|
default-character-set = utf8mb4
|