Method of resource allocation based on SQL sentence runtime and computer equipment

A runtime and resource allocation technology, applied in resource allocation, calculation, program control design, etc., can solve problems such as inaccurate judgment, heavy user burden, and large system overhead, so as to reduce initialization overhead, improve user experience, The effect of reducing system overhead

Active Publication Date: 2018-05-18
福建星瑞格软件有限公司
View PDF13 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The usual practice is to leave it to the user to make their own judgment. The consequence is that the user has a heavy burden (need to understand a lot of knowledge about the execution engine) and inaccurate judgment (many determinants and complex relationships), resulting in high system overhead or waste of resources.

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
  • Method of resource allocation based on SQL sentence runtime and computer equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The present invention is based on the method for the resource allocation of SQL statement running time, comprises the following steps:

[0027] Step 1. Collect the execution record ID, SQL statement and runtime of the SQL history;

[0028] Step 2. According to the execution record ID, obtain the resource allocated when the SQL statement is executed, form a resource vector R, parse the SQL statement to obtain the operator, table name and column name, query metadata information according to the table name and column name, and obtain data information , and correspond to the operator to form an operation vector OP, the resource vector R includes the number of Executors, the number of CPU cores of each Executor, and the size of the MEM;

[0029] Step 3. Taking runtime as the target variable, R and OP as predictor variables, using machine learning algorithms to establish a prediction module, and training the prediction model;

[0030] Step 4. Submit the SQL statement and the...

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 method of resource allocation based on the SQL sentence runtime. The method comprises the steps of collecting executing record IDs of SQL histories, SQL sentences and the runtime; according to the executing record IDs, obtaining resources allocated when the SQL sentences are executed to form resource vectors R, analyzing the SQL sentences to obtain operators, table names and column names, querying metadata information according to the table names and the column names, obtaining data information and corresponding the data information to the operators to form operation vectors OP; regarding the runtime as a target variable and R and OP as predicting variables, using a machine learning algorithm to build a predicting module, and training a predicting model; submittingthe SQL sentences and the resource vector values R, and predicting the needed executing time through the predicting model; according to the executing time, selecting resource allocation modules. Theinvention further provides computer equipment. By means of the method of the resource allocation based on the SQL sentence runtime and the computer equipment, the system expense is effectively lowered, the burden of a user is lowered, and the user experience is improved.

Description

technical field [0001] The invention relates to a resource allocation method and computer equipment based on the running time of SQL statements. Background technique [0002] There are two types of distributed computing resource allocation modes: batch mode - computing resource (CPU, MEM, etc.) allocation and environment initialization are performed when the task is submitted, resources are recovered and the environment is canceled when the task ends, and resources need to be reallocated when the task is submitted again and initialize the environment. Interactive mode - computing resource allocation and environment initialization are performed when the first task is executed, and subsequent tasks will continue to reuse the allocated resources and environment configuration. The disadvantage of the batch mode is that each time a task is submitted, there is an overhead of allocating resources and initializing the environment. The advantage is that resources are recovered and v...

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): G06F9/50G06F17/30
CPCG06F9/5027G06F16/2433
Inventor 李昭阳
Owner 福建星瑞格软件有限公司
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