mysql-5.7 saving and restore buffer pool state detailed

Source: Internet
Author: User

First, MySQL restart to face the problem :

Since the data cached in the InnoDB buffer pool is not available until after the reboot, MySQL will only be available from disk if business SQL arrives.

Read data into memory; it may take several hours for the data in memory to be business-intensive. Industry to put this memory from nothing

The process of thermal data in memory is called preheating . It can be seen that the performance of the database during the preheating process is not good, for memory (InnoDB buffer pool)

The larger the library warms up the longer it takes

second, the idea of solving the problem :

This solution is also simple and rude, the method is MySQL in the normal shutdown of the current in-memory page information (Tablespaceid,pageid), save to disk;

Wait until MySQL starts to load data from the disk into the InnoDB buffer pool based on the previously saved information;

Third, how to configure:

Before explaining the "solution to the problem", mentioned two process one is closed to save, a start-up recovery, the two processes each corresponding to a configuration

parameter, and a parameter is used to control the InnoDB buffer pool those pages to be "saved", "recovery" This is controlled by a percentage, this also

Corresponds to a parameter

[Mysqld] # --------InnoDB Buffer poolState innodb_buffer_pool_dump_pct                     =25                         #Innodb_buffer _pool_dump_at_shutdown             =on                         # Specifies whether to save information when the shutdown is started Innodb_buffer_pool_load_at_startup              =on                         # Specifies whether to enable this feature at startup

Iv. description of the innodb_buffer_pool_dump_pct:

The InnoDB buffer pool is internally organized by a list and configured to 25 that is, the 25% of the pages in front of the list to save their meta-information (Tablespaceid,pageid) when they are closed

This "front" refers to the new list in the InnoDB buffer pool; about the list of InnoDB buffer pool organization How can I see another blog

Http://www.cnblogs.com/JiangLe/p/7392421.html

   

----

Learning Communication

mysql-5.7 saving and restore buffer pool state detailed

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.