Database self-learning optimization method and device based on flow mirror image

An optimization method and technology of an optimization device, applied in the field of database configuration, can solve the problems of not supporting online optimization, invariable traffic, single scene, etc., and achieve the effect of accelerating speed and shortening optimization time.

Active Publication Date: 2019-08-16
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF9 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] (1) In the face of hundreds of performance parameters, the DBA needs to analyze the load of the database, provide parameter configurations based on the type of database access SQL and personal experience, and conduct test observations, which requires a lot of time and labor costs
[0009] (2) For the scenario of expected traffic growth, DBA lacks estimated model verification, and usually needs to use experience to estimate. The effect of parameter setting is not only dependent on DBA's experience, but it is difficult to follow the rules of the attempted configuration. Difficult to achieve the best
[0010] (3) In addition, there are disadvantages such as single scene, immutable traffic, dependence on training data, serialization of training, and no support for online optimization.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Database self-learning optimization method and device based on flow mirror image
  • Database self-learning optimization method and device based on flow mirror image
  • Database self-learning optimization method and device based on flow mirror image

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] Specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention.

[0061] In the embodiments of the present invention, unless stated otherwise, the used orientation words such as "up, down, top, bottom" are usually for the directions shown in the drawings or for vertical, vertical or The term used to describe the mutual positional relationship of each component in terms of the direction of gravity.

[0062] The optional embodiments of the present invention have been described in detail above in conjunction with the accompanying drawings. However, the embodiments of the present invention are not limited to the specific details in the above-mentioned embodiments. Within the technical concept of the embodiments of the present inve...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a database self-learning optimization method based on a flow mirror image, and the method comprises the steps: obtaining a latest database configuration parameter of a to-be-optimized database through a self-adaptive learning method, and sending the latest database configuration parameter to a training database; establishing a database mirror image model consistent with thedatabase model of the database to be optimized, and sending the database mirror image model to the training database; establishing a flow mirror image model consistent with the flow model received bythe to-be-optimized database, and sending the flow mirror image model to the training database; obtaining a training result fed back to the self-training database; updating database configuration parameters of the to-be-optimized database according to a training result of the training database; and repeating the above steps for R times, obtaining the latest database configuration parameter when the TPS throughput of the training database in the R training results is the maximum value, and configuring the latest database configuration parameter as the final database configuration parameter to the to-be-optimized database. For a real traffic scene, the performance of the database can be effectively improved.

Description

technical field [0001] The invention relates to the field of database configuration, in particular to a traffic mirroring-based database self-learning optimization method and a traffic mirroring-based database self-learning optimization device. Background technique [0002] Multi-databases usually have many parameters. For example, MySQL and PostgreSQL have hundreds of parameters, while Oracle has thousands of parameters. These parameters will affect the running process of the database, thus affecting the overall throughput and response time of the database. big impact. For a database application scenario, proper parameter selection can improve performance several times. In order to improve the performance of the database, the company usually needs to hire a professional DBA to tune the database parameters. However, for different application scenarios, different loads, different hardware and operating systems, the optimal parameters required are often different. DBAs usual...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/21G06F16/25
CPCG06F16/21G06F16/25
Inventor 周坤龙
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products