A dynamic scheduling method for cloud platform resources based on deep learning
By constructing a workload and response time prediction model based on deep learning methods, automatic scheduling of cloud platform resources is realized, which solves the problem of load imbalance in the cloud computing platform and improves resource utilization and economic benefits.
Patent Information
- Application Number
- CN202111114287.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-23
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-09-23
AI Technical Summary
In the cloud computing platform, dynamic changes in user load lead to node load imbalance, which affects overall performance. Traditional load balancing and static adjustment are difficult to achieve optimal utilization, and manual management of resource clusters becomes unrealistic. How to automatically coordinate server load to Improving resource utilization has become an urgent need.
Using deep learning-based methods, we build a workload prediction model, response time prediction model and scheduling strategy model, use LSTM and BP neural network for feature processing and prediction, monitor and adjust the number of servers in real time, and form a stable dynamic resource scheduling model.
It realizes automatic scheduling of cloud platform resources, improves resource utilization, saves cloud resources, has good economic benefits, and can adjust the number of servers in real time according to load changes to meet the requirements of service quality and service level agreement.
Smart Images

Figure CN113806094B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automated operation and maintenance, and in particular to a cloud platform resource dynamic scheduling method based on deep learning. Background Art
[0002] Cloud computing is an emerging leading information technology that distributes computing tasks on the "cloud". Automated management achieved through dedicated software enables users to access computing power, storage space, and information services on demand. Users can focus on their own business without having to consider complex technical details, which helps improve efficiency, reduce costs and promote technological innovation.
[0003] According to existing surveys, the number of cloud computing users will continue to grow until at least 2026. The demand for cloud computing in the commercial and civilian fields is increasing. The continued growth in the number of users has also brought about the expansion and increase of data scale and service operation pressure. In the actual environment, the servers running cloud service applications face huge workloads, and the workloads of most service applications will change over time. It is difficult to keep all running servers at the best utilization rate through traditional load balancing and static quantity adjustment. Therefore, it is necessary to allow the number of servers and other computing resources to change flexibly, in line with the actual load changes, improve resource utilization, and meet the requirements of quality of service (QoS) and service level agreements (SLAs). Generally speaking, by allowing some servers to sleep when the load is low, it can help customers and providers reduce server rental costs and power consumption, while having economic and environmental benefits. In order to enable server resources to work stably, have good scalability, and avoid problems caused by heterogeneity, virtualization technology has been used to optimize and manage server resources.
[0004] The key technologies in cloud computing research include virtualization technology, data storage technology, resource management technology, energy management technology, cloud monitoring technology, etc. Among them, system resource scheduling is one of the key issues in cloud computing. However, due to the diversity of applications on the cloud computing platform and the dynamic changes in user load, there may be a problem of load imbalance between nodes. Some nodes are underloaded and lack resources, while other nodes are idle, which greatly affects the overall performance of the cloud computing system. In addition, with the expansion of the scale of cloud computing resources, manual or manual management of resource clusters has become very unrealistic. Therefore, how to automatically coordinate the load between servers through appropriate algorithms to improve the resource utilization of the cloud computing platform has become an urgent problem to be solved in the field of cloud computing. Summary of the invention
[0005] In view of the above problems, the present invention is proposed to provide a cloud platform resource dynamic scheduling method based on deep learning that overcomes the above problems or at least partially solves the above problems.
[0006] In order to solve the above technical problems, the embodiments of the present application disclose the following technical solutions:
[0007] A cloud platform resource dynamic scheduling method based on deep learning, comprising:
[0008] S100. Obtain time series data from the system's monitoring information and log files, and use the time series data as a training data set for the model;
[0009] S200. Build a workload prediction model;
[0010] S300. Build a response time prediction model;
[0011] S400. Construct a scheduling strategy model based on the constructed workload prediction model and response time prediction model:
[0012] S500. Jointly debug the scheduling strategy model, optimize the model parameters, form a stable cloud platform resource dynamic scheduling model based on deep learning, and realize the scheduling of cloud platform resources.
[0013] Furthermore, the method for constructing a workload prediction model is:
[0014] S201. Add a convolution layer based on LSTM to perform feature processing on the workload data, take the number of requests received by the application service per second as its workload data, and preprocess the data into a one-dimensional array. The model intercepts multiple elements of the array as input each time.
[0015] S202. Send the input elements to the convolution layer and the pooling layer, where the size of the convolution kernel is 1×5, the number of convolution kernels is 5, and the kernel size in the max-pooling layer is 1×2;
[0016] S203. Send the data features extracted by convolution and pooling operations to the LSTM layer and the fully connected BP neural network layer, and then give the predicted workload value;
[0017] S204. Use a monitor to continuously monitor the actual workload and model prediction error and collect data while the model is working. When the monitor collects enough workload data, the existing model will be trained online using the collected new data;
[0018] S205. Install the early warning model, monitor the online data, and predict the occurrence of early warnings in the system.
[0019] Furthermore, the LSTM layer contains 72 neural units.
[0020] Furthermore, if the monitor finds that the prediction error is continuously higher than a threshold set by a certain SLA, the model will be retrained offline using all the data, and then the new model will replace the existing model.
[0021] Furthermore, the method of constructing a response time prediction model is: using a multi-layer BP neural network to learn the characteristics of the response time, wherein the predicted workload, the current number of servers, the average workload of each server and the number of servers that can be used for each application request are used as model inputs, the hidden layer is set to 4 fully connected layers, the network shape is selected as 5×5×5×5, the neural unit uses Re-LU as the activation function, the neural unit in the output layer is a linear activation function, and the output layer outputs one-dimensional data.
[0022] Furthermore, a batch normalization operation is added to each neural unit to accelerate model convergence and solve the problem of model overfitting in small batch model training.
[0023] Furthermore, the method for constructing the scheduling strategy model is as follows: the scheduling strategy model uses a BP neural network to determine the number of servers that need to be adjusted. The input of the model includes three elements: predicted workload, predicted response time, current number of servers, and response time target; the hidden layer is a 3-layer fully connected network with a shape of 5×5×5. The activation functions of the neural units in the hidden layer and the output layer are Re-LU and linear functions, respectively, and batch normalization is added. The model learns the characteristic information of the data and outputs the number of servers that should be adjusted as the scheduling strategy.
[0024] Furthermore, the input data of the scheduling strategy model can be collected from previous scheduling strategy models or pre-processed according to SLAs.
[0025] The beneficial effects of the above technical solution provided by the embodiment of the present invention include at least:
[0026] The present invention discloses a method for dynamic scheduling of cloud platform resources based on deep learning, which can monitor changes in workload or server utilization in real time, and appropriately adjust the number of application servers according to these changes. Generally speaking, there are two different resource monitoring and scheduling angles for resource scheduling: server-oriented and application-oriented. Server-oriented scheduling will consider the actual status of the server and perform corresponding resource scheduling. It can accurately predict the workload and response time of application services on the cloud platform, and give a suitable resource scheduling strategy based on this. The present invention is based on server-oriented scheduling, uses a deep learning model for continuous training, and finally obtains a stable and effective model, which can realize automatic scheduling of cloud platform resources, can save a lot of cloud resources in actual production, and has good economic benefits.
[0027] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0029] Figure 1 This is a flow chart of a method for dynamic scheduling of cloud platform resources based on deep learning in Embodiment 1 of the present invention;
[0030] Figure 2 This is a schematic diagram of a workload prediction model in Embodiment 1 of the present invention;
[0031] Figure 3 This is a schematic diagram of a response time prediction model in Example 2 of the present invention;
[0032] Figure 4 This is a schematic diagram of a scheduling strategy model in Example 2 of the present invention. DETAILED DESCRIPTION
[0033] 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.
[0034] In order to solve the problems existing in the prior art, an embodiment of the present invention provides a cloud platform resource dynamic scheduling method based on deep learning.
[0035] Example 1
[0036] A cloud platform resource dynamic scheduling method based on deep learning, such as Figure 1 ,include:
[0037] S100. Obtain time series data from the system's monitoring information and log files, and use the time series data as a training data set for the model; specifically, if a time series is viewed as a picture with only one row of pixels, the problem of extracting feature information from the time series can be handled from a new perspective. By adding a convolution layer to the neural network to perform convolution operations, important feature information in the data can be well extracted.
[0038] S200. Build a workload prediction model. The workload prediction model structure is as follows: Figure 2 ; Specifically, the method for constructing a workload prediction model is:
[0039] S201. Add a convolution layer based on LSTM to perform feature processing on the workload data, take the number of requests received by the application service per second as its workload data, and preprocess the data into a one-dimensional array. The model intercepts 72 elements of it as input each time;
[0040] S202. Send the input elements to the convolution layer and the pooling layer, where the size of the convolution kernel is 1×5, the number of convolution kernels is 5, and the kernel size in the max-pooling layer is 1×2;
[0041] S203. Send the data features extracted by convolution and pooling operations to the LSTM layer and the fully connected BP neural network layer, and then give the predicted workload value;
[0042] S204. When the model is working, use the monitor to continuously monitor the actual workload and model prediction error and collect data. When the monitor collects enough workload data, the existing model will be trained online using the collected new data. Specifically, the workload of the server will change over time when it is running, so the model prediction error may also increase. Therefore, when the model is working, use the monitor to continuously monitor the actual workload and model prediction error and collect data. When the monitor collects enough workload data, the existing model will be trained online using the collected new data to adapt to changes in workload. In addition, if the monitoring finds that the prediction error is continuously higher than the threshold set by a certain SLA, the model will be retrained offline using all the data, and then the new model will replace the existing model.
[0043] S205. Install the early warning model, monitor the online data, and predict the occurrence of early warnings in the system.
[0044] In this embodiment, the LSTM layer contains 72 neural units. Compared with other numbers of units (such as 96 and 128), the model with 72 neural units performs best in terms of training speed and loss reduction. In order to prevent the model from overfitting during training, Dropout is used in this model to sparse the neural network model.
[0045] S300. Build a response time prediction model. The response time prediction model is as follows: Figure 3 ; Specifically, when the predicted value of the workload is given, the scheduling algorithm can use it as a basis to predict the possible response time of the application service under the workload. Unlike workload, the change in response time is not strongly related to time. Therefore, LSTM is not used in the response time prediction model. In the actual model implementation, a multi-layer BP neural network is used to learn the characteristics of response time. The input of this model includes the predicted workload, the current number of servers, the average workload of each server, and the number of servers that can be used for each application request. The hidden layer is a 4-layer fully connected layer. Based on experience and multiple comparisons, the network shape is selected as 5×5×5×5. The neural unit uses Re-LU as the activation function, while the neural unit in the output layer is a linear activation function and outputs one-dimensional data. In addition, this paper adds a batch normalization operation in each neural unit to accelerate model convergence and solve the problem of model overfitting in small batch model training.
[0046] S400. Based on the constructed workload prediction model and response time prediction model, a scheduling strategy model is constructed. The scheduling strategy model structure is as follows: Figure 4 :Specifically, after obtaining the predicted response time, the algorithm uses the scheduling strategy model to generate a scheduling strategy. The goal of the model is to give reasonable server adjustment suggestions to minimize resource consumption and ensure that the response time is lower than the target value set according to SLAs. Traditionally, server managers adjust servers according to specific rules and response times. These rules are formulated based on the historical data of the server and the experience of experts. However, if the rules are not updated according to the latest changes in server resources, they may not be suitable for the current status of the server. In addition, the change in the number of servers is not time-dependent. Therefore, the scheduling strategy model uses a BP neural network to determine the number of servers that need to be adjusted. The input of the model includes 4 elements: predicted workload, predicted response time, current number of servers, and response time target. These data are collected from previous models or preprocessed according to SLAs. The hidden layer is a 3-layer fully connected network with a shape of 5×5×5. The activation functions of the hidden layer and output layer neural units are Re-LU and linear functions, respectively, and batch normalization is added. The model learns the characteristic information of the data and outputs the number of servers that should be adjusted as a scheduling strategy.
[0047] S500. Jointly debug the scheduling strategy model, optimize the model parameters, and form a stable cloud platform resource dynamic scheduling model based on deep learning to achieve real-time, dynamic and efficient scheduling of cloud platform resources.
[0048] The present embodiment discloses a method for dynamic scheduling of cloud platform resources based on deep learning, which can monitor changes in workload or server utilization in real time, and appropriately adjust the number of application servers according to these changes. Generally speaking, there are two different resource monitoring and scheduling angles for resource scheduling: server-oriented and application-oriented. Server-oriented scheduling will consider the actual status of the server and perform corresponding resource scheduling. It can accurately predict the workload and response time of application services on the cloud platform, and give a suitable resource scheduling strategy based on this. The present invention is based on server-oriented scheduling, uses a deep learning model for continuous training, and finally obtains a stable and effective model, which can realize automatic scheduling of cloud platform resources, can save a lot of cloud resources in actual production, and has good economic benefits.
[0049] It should be understood that the specific order or hierarchy of steps in the disclosed process is an example of an exemplary method. Based on design preferences, it should be understood that the specific order or hierarchy of steps in the process can be rearranged without departing from the scope of protection of the present disclosure. The attached method claims present the elements of the various steps in an exemplary order and are not intended to be limited to the specific order or hierarchy described.
[0050] In the above detailed description, various features are grouped together in a single embodiment to simplify the disclosure. This method of disclosure should not be interpreted as reflecting an intention that the embodiments of the claimed subject matter require more features than are clearly stated in each claim. On the contrary, as reflected in the appended claims, the invention is in a state of having less than all the features of the disclosed individual embodiments. Therefore, the appended claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.
[0051] Those skilled in the art will also appreciate that the various illustrative logic blocks, modules, circuits, and algorithmic steps described in conjunction with the embodiments herein can all be implemented as electronic hardware, computer software, or a combination thereof. In order to clearly illustrate the interchangeability between hardware and software, various illustrative components, blocks, modules, circuits, and steps are generally described above around their functions. Whether such functions are implemented as hardware or software depends on specific applications and the design constraints imposed on the entire system. A skilled person can implement the described functions in an alternative manner for each specific application, but such implementation decisions should not be interpreted as departing from the scope of protection of the present disclosure.
[0052] The steps of the method or algorithm described in conjunction with the embodiments herein may be directly embodied as hardware, a software module executed by a processor, or a combination thereof. The software module may be located in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a mobile disk, a CD-ROM, or any other form of storage medium well known in the art. An exemplary storage medium is connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium may also be an integral part of the processor. The processor and the storage medium may be located in an ASIC. The ASIC may be located in a user terminal. Of course, the processor and the storage medium may also be present in a user terminal as discrete components.
[0053] For software implementation, the techniques described in this application can be implemented with modules (e.g., procedures, functions, etc.) that perform the functions described in this application. These software codes can be stored in a memory unit and executed by a processor. The memory unit can be implemented within the processor or outside the processor. In the latter case, it is coupled to the processor in a communication manner via various means, which are well known in the art.
[0054] The above description includes examples of one or more embodiments. Of course, it is impossible to describe all possible combinations of components or methods for the purpose of describing the above embodiments, but it should be recognized by those skilled in the art that the various embodiments may be further combined and arranged. Therefore, the embodiments described herein are intended to cover all such changes, modifications and variations that fall within the scope of protection of the appended claims. In addition, with respect to the term "comprising" used in the specification or claims, the word is covered in a manner similar to the term "including", just as "including," is explained as a transitional word in the claims. In addition, any term "or" used in the specification of the claims is intended to mean "non-exclusive or".
Claims
1. A method for dynamic scheduling of cloud platform resources based on deep learning, It is characterized in that include: S100. Obtain time series data from the system's monitoring information and log files, and use the time series data as a training data set for the model; S200. Construct a workload prediction model. The method for constructing a workload prediction model is: S201. Add a convolutional layer based on LSTM to perform feature processing on the workload data, take the number of requests received by the application service per second as its workload data, and preprocess the data into a one-dimensional array. The model intercepts multiple elements of the array as input each time. S202. Send the input elements to the convolution layer and the pooling layer, where the size of the convolution kernel is 1×5, the number of convolution kernels is 5, and the kernel size in the max-pooling layer is 1×2; S203. Send the data features extracted by convolution and pooling operations to the LSTM layer and the fully connected BP neural network layer, and then give the predicted workload value; S204. When the model is working, the monitor is used to continuously monitor the actual workload and model prediction error and collect data. When the monitor collects enough workload data, the existing model will be trained online using the collected new data. If the monitor finds that the prediction error is continuously higher than a threshold set by a certain SLA, the model will be retrained offline using all the data, and then the new model will replace the existing model. S205. Install the early warning model, monitor the online data, and predict the occurrence of early warnings in the system; S300. Construct a response time prediction model; the method for constructing the response time prediction model is: using a multi-layer BP neural network to learn the characteristics of the response time, wherein the predicted workload, the current number of servers, the average workload of each server, and the number of servers that can be used for each application request are used as model inputs, the hidden layer is set to 4 fully connected layers, the network shape is selected as 5×5×5×5, the neural unit uses Re-LU as the activation function, the neural unit in the output layer is a linear activation function, and the output layer outputs one-dimensional data; S400. Construct a scheduling strategy model based on the constructed workload prediction model and response time prediction model: S500. Jointly debug the scheduling strategy model, optimize the model parameters, form a stable cloud platform resource dynamic scheduling model based on deep learning, and realize the scheduling of cloud platform resources.
2. A cloud platform resource dynamic scheduling method based on deep learning as claimed in claim 1, It is characterized in that A batch normalization operation is added to each neural unit to accelerate model convergence and solve the problem of model overfitting in small batch model training.
3. A cloud platform resource dynamic scheduling method based on deep learning as claimed in claim 1, It is characterized in that The method for constructing a scheduling strategy model is as follows: the scheduling strategy model uses a BP neural network to determine the number of servers that need to be adjusted. The input of the model includes three elements: predicted workload, predicted response time, current number of servers, and response time target; the hidden layer is a 3-layer fully connected network with a shape of 5×5×5; the activation functions of the hidden layer and output layer neural units are Re-LU and linear functions, respectively, and batch normalization is added. The model learns the characteristic information of the data and outputs the number of servers that should be adjusted as the scheduling strategy.
4. A cloud platform resource dynamic scheduling method based on deep learning as claimed in claim 1, It is characterized in that The input data of the scheduling strategy model can be collected from previous scheduling strategy models or pre-processed according to SLAs.
