HEX
Server: LiteSpeed
System: Linux baran.dnsprotection.me 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: ddir12 (3618)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //etc/my.cnf
[client]
default-character-set = utf8mb4
port = 3306
socket = /var/lib/mysql/mysql.sock

[mysql]
default-character-set = utf8mb4
no-auto-rehash

[mysqld]
# ========================================
# Core Settings
# ========================================
port = 3306
socket = /var/lib/mysql/mysql.sock
datadir = /var/lib/mysql
# pid-file = /var/lib/mysql/mysql.pid
user = mysql
bind-address = 127.0.0.1
skip-external-locking

# ========================================
# LIMITS (CRITICAL FIX FOR WARNING)
# ========================================
open_files_limit = 32000

# ========================================
# Connection Management
# ========================================
max_connections = 500
max_user_connections = 50
back_log = 512
connect_timeout = 10
wait_timeout = 300
interactive_timeout = 300
max_allowed_packet = 128M

# ========================================
# Thread Cache (Restored from Original)
# ========================================
# Helpers for handling new connections efficiently
thread_cache_size = 256
thread_stack = 256K

# ========================================
# Table Cache (Tuned for 32k Limit)
# ========================================
table_open_cache = 8000
table_definition_cache = 4000
table_open_cache_instances = 16

# ========================================
# InnoDB Buffer Pool (PERFORMANCE FIX)
# ========================================
# 64GB RAM allocation (Safe for your 384GB Server)
innodb_buffer_pool_size = 64G
innodb_buffer_pool_instances = 64
innodb_buffer_pool_chunk_size = 1G

# ========================================
# InnoDB Log Files (RESTORED - CRITICAL)
# ========================================
# Necessary to support the large Buffer Pool without write-choking
innodb_log_file_size = 2G
innodb_log_buffer_size = 64M
# 2 = High Speed (1 sec data loss risk on OS crash). 
# 1 = High Safety (No data loss). 
# Shared hosting usually prefers 2 for speed.
innodb_flush_log_at_trx_commit = 2

# ========================================
# InnoDB I/O & Threads (96 Core Optimization)
# ========================================
# 96 Cores allows for higher concurrency
innodb_read_io_threads = 16
innodb_write_io_threads = 16
innodb_io_capacity = 5000
innodb_io_capacity_max = 10000
innodb_flush_method = O_DIRECT
innodb_thread_concurrency = 64
innodb_flush_neighbors = 0
innodb_doublewrite = 1


# ========================================
# MEMORY SAFETY CAPS (Prevents leaks)
# ========================================
sort_buffer_size = 2M
read_buffer_size = 1M
read_rnd_buffer_size = 2M
join_buffer_size = 2M
tmp_table_size = 512M
max_heap_table_size = 512M

# ========================================
# Logging
# ========================================
log-error = /var/lib/mysql/error.log
log_slow_query = 1
log_slow_query_file = "/var/lib/mysql/slow.log"
log_slow_query_time = 2
log_slow_min_examined_row_limit = 1000

# ========================================
# Other Standard Settings
# ========================================
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
default_storage_engine = InnoDB
innodb_file_per_table = 1
innodb_stats_on_metadata = 0
innodb_stats_persistent = 1
innodb_adaptive_hash_index = 1
query_cache_type = 0
query_cache_size = 0
performance_schema = 0
skip-log-bin
local_infile = 0

unix_socket=OFF
[mysqldump]
quick
quote-names
max_allowed_packet = 128M
single-transaction