MySQL核心參數(shù)優(yōu)化
innodb_thread_concurrency=32
表示SQL經(jīng)過解析后,允許同時(shí)有32個(gè)線程去innodb引擎取數(shù)據(jù),CPU線程數(shù)
query_cache_type=0
query_cache_size=0
關(guān)閉查詢緩存谦炒,在應(yīng)用層實(shí)現(xiàn)
innodb_buffer_pool_size=50G
緩沖池大小
innodb_log_file_size=1000M
redo log日志循化寫
innodb_file_per_table=on
一表一文件,可以避免共享表空間的IO競爭
max_connections=3000
最大連接數(shù)
thread_cache_size=512
復(fù)用線程池