A cloud platform load prediction method, device and equipment

By performing empirical mode decomposition and causal convolutional network model prediction processing on the operating status data of the cloud computing platform, combined with the soft threshold function and scaling dot product attention mechanism, the accuracy of cloud platform load prediction is improved and existing problems are solved. The problem of low load prediction accuracy in technology.

CN114741196BActive Publication Date: 2024-10-29ZHENGZHOU UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210399150.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-12
Publication Date
2024-10-29
Estimated Expiration
2042-04-12

AI Technical Summary

Technical Problem

The load data prediction accuracy of existing load prediction methods in cloud computing platforms is low and cannot effectively solve the problem of reasonable and accurate prediction of cloud computing resource utilization.

Method used

By obtaining the operating status data of computing nodes on the cloud platform, empirical mode decomposition is performed to extract feature vectors, and input into the trained causal convolution network model for prediction processing to obtain load prediction results, combined with soft threshold functions and scaling Dot product attention mechanism module to improve prediction accuracy.

Benefits of technology

It improves the accuracy of cloud platform load prediction, can more accurately predict non-stationary and highly dynamic load data, reduces the impact of noise, and enhances the accuracy of load data prediction in complex situations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114741196B_ABST
    Figure CN114741196B_ABST
Patent Text Reader

Abstract

The present invention provides a cloud platform load prediction method, device and equipment, the method comprising: obtaining at least one operating status data of a computing node on a cloud platform; performing empirical mode decomposition on the operating status data to obtain at least one feature vector; inputting the at least one feature vector into a trained cloud platform load prediction model for prediction processing, obtaining the load prediction result of the computing node of the cloud platform, and outputting it. The solution of the present invention realizes cloud platform load prediction and improves the accuracy of load prediction results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information processing technology, and in particular to a cloud platform load prediction method, device and equipment. Background Art

[0002] Cloud computing is another computing model following distributed processing, parallel processing and grid computing. The emergence of cloud computing has completely changed the way traditional computer resources are used. It puts all software and hardware resources in the cloud and provides a pay-as-you-go service model. This is also the core advantage of cloud computing. It not only reduces the cost of software and hardware, but also allows users to easily expand computing resources when they need more computing power. However, the energy consumption problem brought about by the development of cloud computing cannot be underestimated. The carbon emissions caused by its electricity consumption will have a huge impact on the earth's environment.

[0003] In current cloud computing, resource utilization in the cloud computing platform is a very important indicator, and resource utilization requires a reasonable and accurate prediction of the load in the cloud computing platform;

[0004] The existing load prediction methods in cloud computing platforms have at least the following problems:

[0005] The load data prediction accuracy of the load prediction methods in existing cloud computing platforms is low. Summary of the invention

[0006] The technical problem to be solved by the present invention is how to provide a cloud platform load prediction method, device and equipment, so as to realize cloud platform load prediction and improve the accuracy of load prediction results.

[0007] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0008] A cloud platform load prediction method, comprising:

[0009] Obtain at least one operating status data of a computing node on the cloud platform;

[0010] Performing empirical mode decomposition on the operating status data to obtain at least one eigenvector;

[0011] The at least one feature vector is input into a trained cloud platform load prediction model for prediction processing to obtain a load prediction result of a computing node of the cloud platform and output it.

[0012] Optionally, the operating status data includes at least one of the following:

[0013] Central Processing Unit CPU utilization;

[0014] Memory utilization;

[0015] Disk utilization.

[0016] Optionally, the cloud platform load prediction model is trained through the following process:

[0017] Obtaining the time series data of the running status of the computing node within a historical period;

[0018] Performing empirical mode decomposition on the operating status time series data to obtain a feature sequence;

[0019] Inputting the feature sequence into the input layer of the causal convolutional network for processing to obtain N first-layer outputs;

[0020] Input the N first layer outputs into the first residual module of the causal convolutional network for processing to obtain N-1 second layer outputs;

[0021] The N-1 second layer outputs are input into the second residual module of the causal convolutional network for processing to obtain N-2 third layer outputs, until an Nth layer output is obtained, where N is a positive integer.

[0022] Optionally, the operating status time series data is subjected to empirical mode decomposition to obtain a feature sequence, including:

[0023] Obtaining the maximum and minimum points of the operating status time series data x(t);

[0024] Obtaining an upper envelope u(t) according to the maximum value point, and obtaining a lower envelope l(t) according to the minimum value point;

[0025] By formula Get the mean m(t) of the upper envelope u(t) and the lower envelope l(t);

[0026] The intermediate signal h(t) is obtained by the formula h(t)=x(t)-m(t);

[0027] Determine an intrinsic mode function IMF component c1(t) according to the mean value m(t) and the intermediate signal h(t);

[0028] The residual component r1(t) is obtained by the formula r1(t)=x(t)-c1(t);

[0029] The residual component r1(t) is used as the new original signal, and the IMF component c of the new original signal is repeatedly calculated iteratively. n (t) and the residual component r n (t), until the remaining component rn (t) cannot be decomposed, and the characteristic sequence c1(t),c2(t),...,c n (t).

[0030] Optionally, the processing process of each residual module of the causal convolutional network includes:

[0031] Input the matrix {query vector Q, key vector K, d V dimension value vector V}; wherein the dimension of the query vector Q and the key vector K are both d k ;

[0032] Performing linear transformation on Q, K, and V to obtain a transformed first value, a second value, and a third value, respectively;

[0033] Inputting the first value, the second value, and the third value into a scaled dot product attention mechanism module for processing to obtain a target processing result;

[0034] The target processing result is input into a soft threshold function for filtering to obtain a filtering result.

[0035] Optionally, the scaled dot-product attention module is passed:

[0036] Get the weight; where Q is the query vector, K is the key vector, and V is the value vector. is the scaling factor;

[0037] Through MultiHead(Q,K,V)=Concat(head1,…,head h )W O , obtain h different processing results, and connect the h different processing results to obtain the target processing result; where, MultiHead(Q,K,V) is the target processing result, W O , are all weight parameters.

[0038] Optionally, the soft threshold function is:

[0039]

[0040] Among them, x is the target processing result of the input, τ is the threshold, and y is the output filtering result.

[0041] Optionally, the cloud platform load prediction method further includes:

[0042] According to the load prediction result, load balancing control is performed on the computing nodes.

[0043] The present invention also provides a cloud platform load prediction device, comprising:

[0044] An acquisition module, used to acquire at least one operating status data of a computing node on the cloud platform;

[0045] The processing module is used to perform empirical mode decomposition on the operating status data to obtain at least one eigenvector; the at least one eigenvector is input into a trained cloud platform load prediction model for prediction processing to obtain the load prediction result of the computing node of the cloud platform and output it.

[0046] The present invention also provides a computing device, comprising: a processor and a memory storing a computer program, wherein when the computer program is run by the processor, the method as described above is executed.

[0047] The above solution of the present invention includes at least the following beneficial effects:

[0048] By acquiring at least one operating status data of a computing node on a cloud platform; performing empirical mode decomposition on the operating status data to obtain at least one eigenvector; inputting the at least one eigenvector into a trained cloud platform load prediction model for prediction processing, obtaining the load prediction result of the computing node of the cloud platform, and outputting it; the solution of the present invention realizes cloud platform load prediction and improves the accuracy of load prediction results. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a flow chart of a cloud platform load prediction method according to an embodiment of the present invention;

[0050] Figure 2 is a schematic diagram of the structure of a causal convolutional network in a specific embodiment provided by the present invention;

[0051] Figure 3 is a structural schematic diagram of a residual module in a specific embodiment provided by the present invention;

[0052] Figure 4 is a functional image schematic diagram of a soft threshold function in a specific embodiment provided by the present invention;

[0053] Figure 5 It is a schematic diagram of experimental data in a specific embodiment provided by the present invention;

[0054] Figure 6 It is a schematic diagram of predicted CPU utilization data and actual CPU utilization data in a specific embodiment provided by the present invention;

[0055] Figure 7 It is a schematic diagram of the process of cloud platform load prediction in a specific embodiment provided by the present invention;

[0056] Figure 8 It is a module block diagram of a cloud platform load prediction device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0057] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0058] like Figure 1 As shown, an embodiment of the present invention provides a cloud platform load prediction method, comprising:

[0059] Step 11, obtaining at least one operating status data of a computing node on the cloud platform;

[0060] Step 12, performing empirical mode decomposition on the operating status data to obtain at least one eigenvector;

[0061] Step 13: input the at least one feature vector into a trained cloud platform load prediction model for prediction processing, obtain the load prediction result of the computing node of the cloud platform, and output it.

[0062] In this embodiment, by obtaining at least one operating status data of the computing node on the cloud platform, in order to reduce the influence of noise in the operating status data, the operating status data is subjected to empirical mode decomposition, the stability and regularity of the operating status data after the empirical mode decomposition are improved, and the influence of noise on the load prediction result is reduced; at least one feature vector obtained by the empirical mode decomposition is input into the trained cloud platform load prediction model for prediction processing, and the load prediction result of the computing node of the cloud platform is obtained and output; accurate prediction of non-stationary and highly dynamically changing data in the cloud platform is achieved, which can not only reasonably screen out noise, but also fully extract nonlinear features in the data, and still has good accuracy for cloud platform load data prediction in complex situations.

[0063] In an optional embodiment of the present invention, the operating status data includes at least one of the following:

[0064] Central Processing Unit CPU utilization;

[0065] Memory utilization;

[0066] Disk utilization.

[0067] In this embodiment, the operation status data of the computing node includes at least one of a central processing unit CPU utilization (util:CPU), a memory utilization (util:memory), and a disk utilization (util:disk), wherein the CPU utilization, the memory utilization, and the disk utilization are preferably expressed in percentages;

[0068] It should be noted that the running status data may also include a timestamp and a machine identification number (machineID).

[0069] In an optional embodiment of the present invention, the cloud platform load prediction model in step 13 is trained through the following process:

[0070] Step a1, obtaining the time series data of the operation status of the computing node within a historical period;

[0071] Step a2, performing empirical mode decomposition on the operating status time series data to obtain a feature sequence;

[0072] Step a3, inputting the feature sequence into the input layer of the causal convolutional network for processing to obtain N first layer outputs;

[0073] Step a4, inputting the N first layer outputs into the first residual module of the causal convolutional network for processing to obtain N-1 second layer outputs;

[0074] Step a5: input the N-1 second layer outputs into the second residual module of the causal convolutional network for processing to obtain N-2 third layer outputs, until an Nth layer output is obtained, where N is a positive integer.

[0075] In this embodiment, empirical mode decomposition is performed on the operating status time series data of the computing node in the historical time period to obtain a feature sequence. The empirical mode decomposition solves the problem of unstable operating status time series data of the cloud platform data center.

[0076] The problem of unstable operation status time series data here refers to that when the operation status time series data fluctuates due to emergencies (e.g., the usage of the operation status time series data is reduced due to equipment failure, or the usage of resources is reduced due to network delay, etc.), extreme value points with sudden changes will be generated in the operation status time series data, which increases the prediction difficulty of the causal convolutional network to be trained. At the same time, the large amount of noise in the operation status time series data during the collection process reduces the accuracy of the load prediction results of the trained cloud platform load prediction model.

[0077] Through empirical mode decomposition, the original sequence can be decomposed into multiple feature sequences and residual sequences, fully extracting data features and thus improving the accuracy of prediction;

[0078] Input the feature sequence into the input layer of the causal convolutional network to obtain N first-layer outputs, input the N first-layer outputs into the first residual module for processing, obtain N-1 second-layer outputs, further input the N-1 second-layer outputs into the second residual module for processing, obtain N-2 third-layer outputs, and so on, until an N-th layer output is a positive integer of N; wherein the causal convolutional network limits the convolution operation to one direction, and the output at time t can only come from the input at time t-1 and before time t-1, so that the output of the causal convolutional network depends only on historical data. Among them, the residual module is used to solve the problems of gradient disappearance and gradient explosion that may occur in the causal convolutional network.

[0079] like Figure 2 As shown in a specific embodiment 1, in the input layer input of the causal convolutional network, each position corresponds to the running status data of a historical time period, that is, x0, x1, ..., x n-1 ,x n , d is the expansion factor, which can affect the size of the receptive field. The running status data is input into the residual module of the first layer, and convolved with the 2*1 convolution kernel. It moves from left to right in each layer and is finally passed to the top layer (convolution receptive field d=8) to obtain the result of causal convolution y n .

[0080] In an optional embodiment of the present invention, step a2 includes:

[0081] Step a21, obtaining the maximum and minimum points of the operating status time series data x(t);

[0082] Step a22, obtaining an upper envelope u(t) according to the maximum value point, and obtaining a lower envelope l(t) according to the minimum value point;

[0083] Step a23, by formula Get the mean m(t) of the upper envelope u(t) and the lower envelope l(t);

[0084] Step a24, obtaining an intermediate signal h(t) by the formula h(t)=x(t)-m(t);

[0085] Step a25, determining an intrinsic mode function IMF component c1(t) according to the mean value m(t) and the intermediate signal h(t);

[0086] Step a26, obtaining the residual component r1(t) by the formula r1(t)=x(t)-c1(t);

[0087] Step a27, taking the residual component r1(t) as the new original signal, and repeatedly iteratively calculating the IMF component c of the new original signal n (t) and the residual component r n (t), until the remaining component r n (t) cannot be decomposed, and the characteristic sequence c1(t),c2(t),...,c n (t).

[0088] In this embodiment, Empirical Mode Decomposition (EMD) obtains the maximum and minimum points of the operating status time series data x(t) by identifying; according to the maximum and minimum points, the upper envelope u(t) and the lower envelope l(t) are obtained by interpolation; by formula Calculate the mean m(t) of the upper envelope u(t) and the lower envelope l(t); obtain the intermediate signal h(t) by the formula h(t)=x(t)-m(t); determine the intrinsic mode function (IMF) component c1(t) based on the mean m(t) and the intermediate signal h(t);

[0089] Here, the IMF components are determined based on the mean m(t) and the intermediate signal h(t), including:

[0090] Step a251, if the intermediate signal h(t) satisfies the condition of the intrinsic mode function IMF, then h(t) satisfying the condition of the IMF is recorded as the IMF component c1(t);

[0091] Step a252, if the intermediate signal h(t) does not meet the conditions of the intrinsic mode function IMF, then h(t) is used as the new intermediate signal, and the upper envelope u(t) and the lower envelope l(t) are repeatedly obtained, and the mean of the upper envelope u(t) and the lower envelope l(t) are calculated until the new intermediate signal meets the conditions of the IMF, which is recorded as the IMF component c1(t).

[0092] Among them, the condition of the intrinsic mode function IMF is:

[0093] Condition 1: In the running state, the time series data x(t) or the residual component r n In (t), the number of extreme points and zero points must be equal or differ by at most one;

[0094] Condition 2: The average value of the upper envelope and the lower envelope at any time must be zero.

[0095] Furthermore, the residual component r1(t) is obtained by the formula h(t)=x(t)-m(t); the residual component r1(t) is used as the new original signal (new operating status time series data), and the IMF component c of the new original signal (residual component r1(t)) is iteratively calculated. n (t) and the residual component r n (t), until the remaining component r n (t) cannot be further decomposed, and the characteristic sequence c1(t),c2(t),...,c n (t); the characteristic sequence is composed of the residual component r n (t) obtained by decomposition;

[0096] Therefore, the original operating status time series data can be expressed as Among them, c1(t) to c n (t) are the IMF components from high to low frequency.

[0097] Through the above empirical mode decomposition process, the operating status time series data x(t) is decomposed into multiple feature sequences c1(t), c2(t), ..., c n (t) and residuals r1(t),r2(t),...,r n (t), the decomposed sequence has better stability and regularity. Compared with the load prediction based on the actual sequence data of the operating status, the accuracy of the load prediction is higher and the performance of the load prediction result is better.

[0098] In an optional embodiment of the present invention, the processing process of each residual module of the causal convolutional network in step a4 and step a5 includes:

[0099] Step b1: Input the matrix {query vector Q, key vector K, d V dimension value vector V}; wherein the dimension of the query vector Q and the key vector K are both d k ;

[0100] Step b2, performing linear transformation on the Q, K, and V to obtain a transformed first value, a second value, and a third value, respectively;

[0101] Step b3, inputting the first value, the second value and the third value into the scaled dot product attention mechanism module for processing to obtain a target processing result;

[0102] Step b4, inputting the target processing result into a soft threshold function for filtering to obtain a filtering result.

[0103] In this embodiment, based on the Temporal Convolutional Network (TCN), causal convolution is used and Multi-head-attention and Soft Thresholding are introduced to improve the prediction ability of the model; Multi-head-attention is based on the Scaled Dot-Product Attention mechanism. Specifically, the matrix {query vector Q, key vector K, d V The value vector V of the dimension is input into the residual module, and the query vector Q, the key vector K and the value vector V are linearly transformed to obtain the transformed first value, the second value and the third value; the first value, the second value and the third value are input into the scaled dot product attention mechanism module for processing to obtain the target processing result, and the target processing result is input into the soft threshold function for filtering to obtain the filtering result, thereby realizing the filtering of the noise of the target processing result; the residual module is suitable for a deep network model, and the information of the lower layer is identically mapped to the upper layer through cross-layer connection. As the depth of the model increases, the feature information will not be weakened, which solves the problem of gradient disappearance and gradient explosion very well, and is very effective for learning the long-distance dependency of time series, and enhances the nonlinear fitting ability of the model;

[0104] It should be noted that TCN includes causal convolution modules, dilated convolution modules and residual connection modules. TCN can make up for the problems of poor parallelism and high training memory consumption of traditional time series modeling. TCN has good parallelism and does not need to be processed sequentially. Given input, it can perform parallel operations. It has a stable gradient and is not prone to problems such as gradient disappearance. At the same time, it occupies low memory and does not need to save the intermediate results of each calculation step. The convolution kernel of TCN is shared, and its memory usage is even lower.

[0105] In an optional embodiment of the present invention, the scaled dot product attention mechanism module in step b3 is:

[0106] Step c1, Get the weight; where Q is the query vector, K is the key vector, and V is the value vector. is the scaling factor;

[0107] Step c2, through MultiHead(Q,K,V)=Concat(head1,…,head h )W O , obtain h different processing results, and connect the h different processing results to obtain the target processing result; where, MultiHead(Q,K,V) is the target processing result, WO , are all weight parameters.

[0108] In this embodiment, the dot product of the query vector Q, the key vector K and the value vector V is calculated and then multiplied by the scaling factor And input it into the softmax function to get the value weight Attention(Q,K,V), where the dimension of the query vector Q and the key vector K is d k , the dimension of the value vector V is d V , by scaling factor Ensure that the inner product of the scaled dot product attention model is not too large;

[0109] Furthermore, by MultiHead(Q,K,V)=Concat(head1,…,head h )W O Obtain h different processing results, connect the h different processing results and perform linear transformation to obtain the target processing result;

[0110] It should be noted that the definition of the Softmax function is (taking the output of the i-th node as an example):

[0111] Among them, z i is the output value of the i-th node, C is the number of output nodes, that is, the number of classification categories; the Softmax function can be used to convert the output value of multiple classifications into a probability distribution ranging from [0,1] and 1.

[0112] like Figure 3 As shown, in a specific embodiment 2, the query vector Q, the key vector K and the value vector V are input, and linear transformation is performed through the linear transformation module Linear to obtain values ​​M1, M2 and M3, and the values ​​M1, M2 and M3 are input into the scaled dot product attention mechanism module. The scaled dot product attention mechanism module is an h-layer, and each layer of the scaled dot product attention mechanism module is sequentially passed through Get the weight, through MultiHead(Q,K,V)=Concat(head1,…,head h )W O , and obtain h different processing results;

[0113] Furthermore, the h different processing results are connected through the Concat module to obtain a connection result, and finally the connection result is input into the linear transformation module Linear to obtain the target processing result.

[0114] In an optional embodiment of the present invention, the soft threshold function in step b4 is:

[0115]

[0116] Among them, x is the target processing result of the input, τ is the threshold, and y is the output filtering result.

[0117] In this embodiment, the soft threshold function is used for signal denoising. The soft threshold function can remove the noise in the input data and also has the function of an activation function. The soft threshold function sets the features close to zero to zero, which can effectively filter out useless noise data and greatly improve the prediction accuracy of the model.

[0118] It should be noted that the derivative of the soft threshold function is:

[0119]

[0120] in, It is the derivative of y with respect to x, and the derivative value is only 0 and 1. The derivative of y with respect to x is similar to the properties of the activation function ReLU. It not only retains some advantages of the activation function ReLU (such as no gradient saturation problem, fast calculation speed, etc.), but also reduces the disadvantages of the activation function ReLU (such as the neuron necrosis problem (Dead ReLUProblem) when the input data is negative).

[0121] like Figure 4 As shown, in a specific embodiment 3, when the τ value in the soft threshold function is 2, the soft threshold function is:

[0122]

[0123] Right now:

[0124]

[0125] Furthermore, the derivative of the soft threshold function is:

[0126]

[0127] Among them, x is the input data, y is the output filtering result, τ is the threshold, It is the derivative of y with respect to x. The noise in the input data is filtered through the soft threshold function, which greatly improves the prediction accuracy of the model.

[0128] In an optional embodiment of the present invention, the cloud platform load prediction method further includes:

[0129] Step 14: Perform load balancing control on the computing nodes according to the load prediction result.

[0130] In this embodiment, the load prediction results of the computing nodes of the cloud platform are obtained based on the trained cloud platform load prediction model, the load status on the computing nodes is adjusted, and the load balancing is controlled.

[0131] like Figure 5 and Figure 6 As shown, in a specific embodiment 3, a load prediction of a cloud platform is performed on a target cluster tracking data set (clustertrace), wherein the data set includes load resources generated by the operation of approximately 4,000 machines within 8 days, and the data set includes a timestamp (timestamp), a machine ID (machineID), a CPU utilization (util:CPU), a memory utilization (util:memory), and a disk utilization (util:disk), etc., and each resource utilization is expressed in percentage;

[0132] Randomly select the load data of a host and predict the CPU utilization of the host. The experimental data results are as follows: Figure 5 As shown, further, we get Figure 6 The CPU load prediction result is shown in Figure 1, where True is the real CPU utilization data of the host and E-SMT is the predicted CPU utilization data of the host. Figure 6 It can be seen that the trends of the predicted CPU utilization data of the host and the actual CPU utilization data of the host in the same time period are consistent, and the load prediction results of the cloud platform are highly accurate.

[0133] like Figure 7 As shown, in a specific embodiment 4, the process of processing the target load running status data on the cloud platform is as follows:

[0134] Step 71, obtaining the original data of the running status data; Figure 7 It can be seen that the original data is a piece of data with noise interference;

[0135] Step 72, perform empirical mode decomposition on the original data to obtain several IMF components; Figure 7 It can be seen that by using EMD, the original data is decomposed into multiple stable components and noise data, so that the characteristics of the original data can be fully extracted, thereby improving the accuracy of load prediction;

[0136] Step 73, the feature sequence {x1, x2, ..., x n-1 ,x n} performs at least one layer of iterative processing to obtain the output value {y1,y2,…,y n-1 ,y n}; wherein, the processing of each layer includes performing linear transformation processing on the input values ​​{query vector V, key vector K, value vector V} respectively to obtain linear transformation results, further processing the linear transformation results through the scaled dot product attention mechanism module to obtain target processing results; the target processing results are input into the soft threshold function for filtering processing to obtain filtering results;

[0137] Step 74, according to the output value {y1,y2,…,y n-1 ,y n}, determine the load prediction result.

[0138] The embodiments of the present invention obtain at least one operating status data of a computing node on a cloud platform; perform empirical mode decomposition on the operating status data to obtain at least one eigenvector; input the at least one eigenvector into a trained cloud platform load prediction model for prediction processing to obtain and output the load prediction results of the computing nodes of the cloud platform; thereby realizing cloud platform load prediction and improving the accuracy of load prediction results.

[0139] like Figure 8 As shown, an embodiment of the present invention further provides a cloud platform load prediction device 80, comprising:

[0140] An acquisition module 81 is used to acquire at least one operating status data of a computing node on the cloud platform;

[0141] The processing module 82 is used to perform empirical mode decomposition on the operating status data to obtain at least one eigenvector; input the at least one eigenvector into a trained cloud platform load prediction model for prediction processing to obtain the load prediction result of the computing node of the cloud platform, and output it.

[0142] Optionally, the operating status data includes at least one of the following:

[0143] Central Processing Unit CPU utilization;

[0144] Memory utilization;

[0145] Disk utilization.

[0146] Optionally, the cloud platform load prediction model is trained through the following process:

[0147] Obtaining the time series data of the running status of the computing node within a historical period;

[0148] Performing empirical mode decomposition on the operating status time series data to obtain a feature sequence;

[0149] Inputting the feature sequence into the input layer of the causal convolutional network for processing to obtain N first-layer outputs;

[0150] Input the N first layer outputs into the first residual module of the causal convolutional network for processing to obtain N-1 second layer outputs;

[0151] The N-1 second layer outputs are input into the second residual module of the causal convolutional network for processing to obtain N-2 third layer outputs, until an Nth layer output is obtained, where N is a positive integer.

[0152] Optionally, the operating status time series data is subjected to empirical mode decomposition to obtain a feature sequence, including:

[0153] Obtaining the maximum and minimum points of the operating status time series data x(t);

[0154] Obtaining an upper envelope u(t) according to the maximum value point, and obtaining a lower envelope l(t) according to the minimum value point;

[0155] By formula Get the mean m(t) of the upper envelope u(t) and the lower envelope l(t);

[0156] The intermediate signal h(t) is obtained by the formula h(t)=x(t)-m(t);

[0157] Determine an intrinsic mode function IMF component c1(t) according to the mean value m(t) and the intermediate signal h(t);

[0158] The residual component r1(t) is obtained by the formula r1(t)=x(t)-c1(t);

[0159] The residual component r1(t) is used as the new original signal, and the IMF component c of the new original signal is repeatedly calculated iteratively. n (t) and the residual component r n (t), until the remaining component r n (t) cannot be decomposed, and the characteristic sequence c1(t),c2(t),...,c n (t).

[0160] Optionally, the processing process of each residual module of the causal convolutional network includes:

[0161] Input the matrix {query vector Q, key vector K, d V dimension value vector V}; wherein the dimension of the query vector Q and the key vector K are both d k ;

[0162] Performing linear transformation on Q, K, and V to obtain a transformed first value, a second value, and a third value, respectively;

[0163] Inputting the first value, the second value, and the third value into a scaled dot product attention mechanism module for processing to obtain a target processing result;

[0164] The target processing result is input into a soft threshold function for filtering to obtain a filtering result.

[0165] Optionally, the scaled dot-product attention module is passed:

[0166] Get the weight; where Q is the query vector, K is the key vector, and V is the value vector. is the scaling factor;

[0167] Through MultiHead(Q,K,V)=Concat(head1,…,head h )W O , obtain h different processing results, and connect the h different processing results to obtain the target processing result; where, MultiHead(Q,K,V) is the target processing result, W O , are all weight parameters.

[0168] Optionally, the soft threshold function is:

[0169]

[0170] Among them, x is the target processing result of the input, τ is the threshold, and y is the output filtering result.

[0171] Optionally, the processing module is further configured to:

[0172] According to the load prediction result, load balancing control is performed on the computing nodes. It should be noted that the device is a device corresponding to the above method, and all implementations in the above method embodiment are applicable to the embodiment of the device and can achieve the same technical effect.

[0173] The embodiment of the present invention further provides a computing device, comprising: a processor, a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0174] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0175] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0176] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0177] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0178] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0179] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0180] In addition, it should be noted that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it is understood that all or any steps or components of the method and apparatus of the present invention can be implemented in any computing device (including processors, storage media, etc.) or a network of computing devices in hardware, firmware, software or a combination thereof, which can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.

[0181] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.

[0182] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A cloud platform load prediction method, It is characterized in that include: Obtain at least one operating status data of a computing node on the cloud platform; Performing empirical mode decomposition on the operating status data to obtain at least one eigenvector; Input the at least one feature vector into a trained cloud platform load prediction model for prediction processing, obtain a load prediction result of a computing node of the cloud platform, and output it; The operating status time series data is subjected to empirical mode decomposition to obtain a feature vector, including: Obtain the operating status time series data The maximum and minimum points of ; The upper envelope is obtained according to the maximum value point , and the lower envelope is obtained according to the minimum point ; By formula , and get the upper envelope and lower envelope The mean ; By formula , and get the intermediate signal ; According to the mean and the intermediate signal , determine the intrinsic mode function IMF component ; By formula , and obtain the remaining component ; The remaining amount As a new original signal, and repeatedly iteratively calculate the IMF component of the new original signal and the remaining amount , until the remaining component Unable to decompose, get the eigenvector ; The cloud platform load prediction model is trained through the following process: Obtaining the time series data of the running status of the computing node within a historical period; Performing empirical mode decomposition on the operating status time series data to obtain a feature vector; Inputting the feature vector into the input layer of the causal convolutional network for processing to obtain N first-layer outputs; Input the N first layer outputs into the first residual module of the causal convolutional network for processing to obtain N-1 second layer outputs; Inputting the N-1 second layer outputs into the second residual module of the causal convolutional network for processing to obtain N-2 third layer outputs, until an N-th layer output is obtained, where N is a positive integer; The processing process of each residual module of the causal convolutional network includes: Input the matrix {query vector , the key vector , dimension value vector V}; wherein the query vector and the key vector The dimensions of ; The , , Performing linear transformation to obtain a transformed first value, a second value, and a third value respectively; Inputting the first value, the second value, and the third value into a scaled dot product attention mechanism module for processing to obtain a target processing result; Input the target processing result into the soft threshold function for filtering to obtain a filtering result; Among them, the scaled dot product attention mechanism module is: , get the weight; where Q is the query vector, K is the key vector, and V is the value vector. is the scaling factor; pass , obtain h different processing results, and connect the h different processing results to obtain the target processing result; where, , Processing results for the target, , , All are weight parameters; Wherein, the soft threshold function is: in, is the target processing result of the input, is the threshold value, It is the output filtering result.

2. The cloud platform load prediction method according to claim 1, It is characterized in that The operating status data includes at least one of the following: Central Processing Unit CPU utilization; Memory utilization; Disk utilization.

3. The cloud platform load prediction method according to claim 1, It is characterized in that Also includes: According to the load prediction result, load balancing control is performed on the computing nodes.

4. A cloud platform load prediction device, It is characterized in that include: An acquisition module, used to acquire at least one operating status data of a computing node on the cloud platform; A processing module is used to perform empirical mode decomposition on the operating status data to obtain at least one feature vector; input the at least one feature vector into a trained cloud platform load prediction model for prediction processing to obtain a load prediction result of a computing node of the cloud platform, and output it; The operating status time series data is subjected to empirical mode decomposition to obtain a feature vector, including: Obtain the operating status time series data The maximum and minimum points of ; The upper envelope is obtained according to the maximum value point , and the lower envelope is obtained according to the minimum point ; By formula , and get the upper envelope and lower envelope The mean ; By formula , and get the intermediate signal ; According to the mean and the intermediate signal , determine the intrinsic mode function IMF component ; By formula , and obtain the remaining component ; The remaining amount As a new original signal, and repeatedly iteratively calculate the IMF component of the new original signal and the remaining amount , until the remaining component Unable to decompose, get the eigenvector ; The cloud platform load prediction model is trained through the following process: Obtaining the time series data of the running status of the computing node within a historical period; Performing empirical mode decomposition on the operating status time series data to obtain a feature vector; Inputting the feature vector into the input layer of the causal convolutional network for processing to obtain N first-layer outputs; Input the N first layer outputs into the first residual module of the causal convolutional network for processing to obtain N-1 second layer outputs; Inputting the N-1 second layer outputs into the second residual module of the causal convolutional network for processing to obtain N-2 third layer outputs, until an N-th layer output is obtained, where N is a positive integer; The processing process of each residual module of the causal convolutional network includes: Input the matrix {query vector , the key vector , dimension value vector V}; wherein the query vector and the key vector The dimensions of ; The , , Performing linear transformation to obtain a transformed first value, a second value, and a third value respectively; Inputting the first value, the second value, and the third value into a scaled dot product attention mechanism module for processing to obtain a target processing result; Input the target processing result into the soft threshold function for filtering to obtain a filtering result; Among them, the scaled dot product attention mechanism module is: , get the weight; where Q is the query vector, K is the key vector, and V is the value vector. is the scaling factor; pass , obtain h different processing results, and connect the h different processing results to obtain the target processing result; where, , Processing results for the target, , , All are weight parameters; Wherein, the soft threshold function is: in, is the target processing result of the input, is the threshold value, It is the output filtering result.

5. A computing device, It is characterized in that include: A processor and a memory storing a computer program, wherein when the computer program is executed by the processor, the method according to any one of claims 1 to 3 is performed.

Citation Information

Patent Citations

  • Host load prediction method under cloud environment

    CN108196957A

  • Equipment state prediction method and system based on multi-dimensional data fusion

    CN112613646A