MySQL nineth article ~ Troubleshooting a MySQL case

Source: Internet
Author: User

Background: A large number of select queries were found in the test environment, and the load soared to 90 +

Troubleshooting ideas:

1 old rules, follow the wrong script to walk around, planning a few elements (1 for the library Access statistics 2 for the specific statement type of statistics), found that there are a large number of select queries

2 Consideration is because I did not go through the index caused by SQL heap, I explain a bit, very fast.

3 then come to the conclusion that the problem is caused by concurrency.

Problem solving:

1 since it is a concurrency problem, contacted the relevant developers, found that the MySQL front-end Redis hangs, resulting in a direct large number of queries hit the MySQL side, the load soared

2 Research and development stop the related query, problem solving

Summary: For the front-end MySQL cache to do this architecture, must also pay attention to, once the redis problem, a large number of queries will drag down MySQL itself. Troubleshooting is not only about MySQL itself.

This is my point of feeling

MySQL nineth article ~ Troubleshooting a MySQL case

Related Article

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.