You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.0 KiB
55 lines
1.0 KiB
# Performance settings
|
|
default_storage_engine = InnoDB
|
|
|
|
# innobdb
|
|
innodb_buffer_pool_instances = 4
|
|
|
|
# 75% of ram
|
|
innodb_buffer_pool_size = 12G
|
|
innodb_io_capacity = 3000
|
|
innodb_io_capacity_max = 6000
|
|
innodb_read_io_threads = 4
|
|
innodb_write_io_threads = 4
|
|
innodb_file_per_table = 1
|
|
|
|
# Flush and Logging Settings
|
|
innodb_flush_log_at_trx_commit = 2
|
|
innodb_flush_method = O_DIRECT
|
|
sync_binlog = 100
|
|
innodb_log_file_size = 512M
|
|
innodb_log_buffer_size = 32M
|
|
|
|
# Thread Settings
|
|
thread_handling = pool-of-threads
|
|
thread_pool_size = 8
|
|
thread_cache_size = 64
|
|
|
|
# Table Cache Settings
|
|
table_open_cache = 8192
|
|
table_definition_cache = 4096
|
|
table_open_cache_instances = 4
|
|
|
|
# Query Cache
|
|
query_cache_type = 0
|
|
query_cache_size = 0
|
|
|
|
# Memory
|
|
sort_buffer_size = 2M
|
|
tmp_table_size = 256M
|
|
max_heap_table_size = 256M
|
|
|
|
# Connection settings
|
|
max_connections = 500
|
|
|
|
# Additional Optimizations
|
|
innodb_change_buffering = all
|
|
innodb_checksum_algorithm = crc32
|
|
innodb_log_compressed_pages = OFF
|
|
max_allowed_packet = 64M
|
|
|
|
# Performance Schema
|
|
performance_schema = ON
|
|
|
|
[mysqld_safe]
|
|
open_files_limit=65535
|