Easy to master the way of database management--operation and maintenance patrol eight (performance)

Source: Internet
Author: User

Objective

To do daily inspection is an important step of database management and maintenance, and it is necessary to register each inspection date and result, and may need to make a inspection report.

This series is designed to address some common problems:

    • I don't know what to patrol.
    • Don't know how to get a quick checkup
    • Machine Too much physical examination trouble
    • Difficult to generate reports, no visual rendering of results

Performance is one of the important indicators of the system, and performance problems may be caused by a small point (such as parameter configuration, job configuration, structural design, hardware and software environment, etc.). The first seven articles from different aspects of the system carried out the inspection, this article will introduce the series of inspection of the most important (performance).

Performance baselines

Performance patrol indicators are very many, the situation changes are also very large, so that their own system should establish a complete set of performance evaluation model, what is the performance evaluation model, is when the system into a smooth period, after optimization, the system performance has reached a stable value, then we can use this stable project as a late inspection, and function on-line, structural changes and other operational performance of the baseline.

On the Medical Items page we can use the historical version of a more stable physical examination item as a performance baseline, in order to differentiate between other items that can be renamed "Performance Baselines".

  

  

Compare overall metrics based on performance baseline

On the overview page, we can view the performance status of the system as a whole, mainly from the query statement-execution time, session-wait type, check item, and so on, compared with the baseline. See if the indicators in the patrol are significantly different from the baseline indicators.

Example: When polling the "query statement-execution time" in the time period of the number of slow statements is significantly higher than the baseline, then you can indicate that the system statements may be slow. CPU, memory, IO and other system indicator pressure rise, indicating that your system pressure is larger, the cause of the increase may be due to new non-optimized statements or hardware resources problems.

Note: The collection time of the baseline and patrol should be guaranteed to be the same or small difference. If the variance is large, it may not be descriptive.

Specific indicator counter
    • System counters
    • Database counters

  

Query statements

In the inspection, we can mainly focus on:

    • Number of slow statements

  

    • Top 10 execution times
    • Duration Top 10
    • CPU Consumption Top 10
    • Top 10 Reads
    • Top 10 Write times
    • Affects the number of rows top 10

  

System wait and block

In the inspection, we can mainly focus on:

    • Types of waits and distribution of quantities

  

    • Wait Time distribution

  

    • Number of Waits Top 10
    • Wait Time Top 10
    • CPU Time Top 10
    • Number of logical reads Top 10
    • Number of physical reads Top 10
    • Physical Write Top 10

  

Other indicators

Database performance inspection indicators are many, according to the situation of their own system selection, specific indicators and optimization methods see: Performance Diagnostics Series

Summarize

Some of the previous inspection items and configuration items, in the management of the system of comparative norms, generally do not have any problems, and performance is different, this is a lot of factors affected, and more prone to problems. At the same time performance on the total degree of the system is self-evident, do a good job in front of the inspection is also a stable performance guarantee.

Easy to master the way of database management--operation and maintenance patrol eight (performance)

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.