Method and system for acquiring SQL performance data of database
A collection method and collection system technology, applied in the field of databases, can solve problems such as limited performance, uncertain duration of MySQL performance jitter, and inability to obtain the first on-site data analysis, so as to achieve the effect of improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] Embodiment 1, a kind of collection method of database SQL performance data, such as figure 1 shown, including the following steps:
[0053] S100. Detecting whether performance jitter occurs in the MySQL instance and the host, respectively, and generates a detection result when performance jitter occurs in the MySQL instance and / or the host;
[0054] S200. Collect host performance data and corresponding MySQL performance data based on the detection results until the detected MySQL instance and / or the host that is jittering returns to normal. At this time, the collection of host and corresponding MySQL performance data is suspended.
[0055] Note: Host performance data includes at least CPU data, IO data, and network data. The above CPU data includes at least CPU usage, and IO data includes at least IO usage.
[0056] MySQL performance data includes at least the engine status of the MySQL instance, the active transaction list, the executed SQL list, and lock waiting info...
Embodiment 2
[0109] Embodiment 2, based on the step S200 in embodiment 1, collect the host performance data and the corresponding MySQL performance data based on the detection results and then add the step of analyzing and diagnosing the performance data, and the rest are the same as in embodiment 1. The specific steps for analyzing and diagnosing the performance data are:
[0110] When performance jitter occurs, match the host performance data and corresponding MySQL performance data with the preset analysis rules in the rule base, and obtain the slow query log, kill log and / or information_schema database according to the matching analysis rules, and combine the host performance Data and corresponding MySQL performance data are analyzed, and diagnostic results are output.
[0111] The preset analysis rules are the rules set by the staff themselves according to actual needs when analyzing MySQL performance problems. Those skilled in the relevant technical fields can set the analysis rules t...
Embodiment 3
[0122] Embodiment 3, a collection system of database SQL performance data, including detection module 1 and collection module 2;
[0123] The detection module 1 is used to respectively detect whether the MySQL instance and the host have performance jitter, and generate a detection result when the MySQL instance and / or the host has performance jitter;
[0124] The collection module 2 is used to collect host performance data and MySQLMySQL performance data based on the detection results, until the MySQL instance and / or the host that is detected to be jittering returns to normal, and at this time, the collection of the performance data of the host and corresponding MySQL is suspended.
[0125]Further, the detection module 1 includes a detection thread creation unit 11, a host detection unit 12 and an instance detection unit 13;
[0126] The detection thread creation unit 11 is used to create a mainframe detection thread and several MySQL detection threads, wherein the mainframe d...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com