The processing of database CPU high is recorded once

Source: Internet
Author: User

Basically, every time our DB instance has a CPU spike is read, and very few write-induced CPUs are high. This means that read, random read, sort, will consume CPU. And the write is mainly IO behavior, especially sequential write, do not need to account for CPU.

This time, RDS is very high within three hours, always maintaining 50+, up to 98. Of course, our business availability is not dependent on RDS.

Observe for some time, and there is no obvious big slow query. But there will be some small queries sometimes have no, in fact, these can be seen by the naked eye may be the problem .

The second field, which is eventually positioned as a composite primary key, is queried too much, resulting in a full table scan. Fix after you add the index individually.

Not too slow, the amount of query data is not too much, but very often, the query volume is very large, often this kind of small SQL will be very covert to the CPU up.

The processing of database CPU high is recorded once

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.