MySQL database server parameter optimization mycnf, 16 GB memory 8-core CPU bitsCN.com
MySQL database server parameter optimization mycnf, 16 GB memory 8-core CPU
Business Scenario: The backend supports online mobile phone update systems, with 16 GB db server memory, 8 cores, and dell pc servers.
Qps: around 200
Tps: 1 minute or so
Sort_buffer_size = 32 M, 8 M
Read_buffer_size = 32 M, 8 M
Read_rnd_buffer_size = 16 M, 8 M
Table_open_cache = 512
Small. we recommend that you change it to 2048.
Max_allowed_packet = 5 M
Small, it is recommended to change to 16 M
Tmp_table_size = 64 M
Small, it is recommended to change to 2G
Innodb_buffer_pool_size = 3000 M
Small, changed to 60% to 80% of the total memory of the db server
Innodb_additional_mem_pool_size = 20 M smaller, changed to 128 M
The join_buffer_size parameter is not displayed. The value must be set. join_buffer_size = 8 M must be added. this parameter is associated with the join table and is very important.
BitsCN.com