MySQL worry parameter

Source: Internet
Author: User

The following parameters are used in mysql-5.6.27, and may not be the same as the MySQL version.


1. Thread Parameters

Innodb_read_io_threads=6--INNODB Storage Engine reads the number of threads for the client to read data, the default value is 4

Innodb_read_io_threads=7--innodb The number of write threads for the storage engine for the client to write data to, the default value is 4

innodb_purge_threads=2--innodb Storage Engine recycles purge page thread, empties dirty data, default value is 1


2. Buffer pool Parameters

INNODB_BUFFER_POOL_SIZE=2G--innodb Storage Engine buffer pool includes data page, index page, insert buffer, adaptive ha Index, data dictionary, lock information. MyISAM cache only index files. The default value is 134217728 bytes (128M).

Innodb_buffer_pool_instances=8--innodb buffer pool number, used in conjunction with Innodb_buffer_pool_size

INNODB_OLD_BLOCKS_PCT=37--Using the LRU (least recent algorithm) algorithm to calculate the buffer pool, the buffer pool front 63% is the most active data, 63% is the historical data, the most active data hit ratio is high.

INNODB_OLD_BLOCKS_TIME=100--100s is added to the most active buffer pool after data is read

innodb_log_buffer_size=8m-Redo Log buffer size, should not be set too large, master thread is synchronized to disk per second, the thing commits to disk, redo log space remaining 1/2 is also synchronized to disk, the default is 8M

This article is from the "Days Together" blog, please be sure to keep this source http://tongcheng.blog.51cto.com/6214144/1710265

MySQL worry parameter

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.