我在 RHEL 6 系统中安装了一台 mysql 服务器,该服务器有 128 GB 的 RAM 和 16 个核心。我正在运行 4 个网站,这些网站的查询非常繁重,有大量的连接和排序。请为我的 my.cnf 文件建议一个好的配置。以下是我当前的配置。我的模式中大部分都是 innodb 表...
max_allowed_packet=64M
max_connections = 2500
tmp_table_size = 512M
binlog_cache_size = 32768
innodb_additional_mem_pool_size = 2097152
innodb_file_per_table =1
innodb_log_buffer_size = 8388608
innodb_log_file_size = 1G
innodb_flush_log_at_trx_commit = 0
innodb_lock_wait_timeout = 300
local_infile = 1
log_bin_trust_function_creators = 1
key_buffer_size = 50G
read_buffer_size = 2M
thread_stack = 262144
query_cache_size =512M
query_cache_limit = 512M
query_cache_min_res_unit = 8M
query_cache_type = 1
thread_cache_size = 100
innodb_buffer_pool_size = 50G
table_cache = 4096
read_rnd_buffer_size = 524288
sort_buffer_size = 16M
join_buffer_size = 16M
myisam_sort_buffer_size = 64M
myisam_max_sort_file_size = 64M
thread_concurrency = 32