High-performance cluster task scheduling method, device, electronic device and storage medium

Through the task prediction and scheduling model that combines deep learning and reinforcement learning, the problem of improper resource allocation in high-performance computing clusters is solved, efficient and accurate task scheduling is achieved, and the overall cluster utilization is improved.

CN113886080BActive Publication Date: 2024-10-18INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111150923.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-29
Publication Date
2024-10-18
Estimated Expiration
2041-09-29

AI Technical Summary

Technical Problem

Existing high-performance computing cluster scheduling systems cannot accurately predict application running time, resulting in improper resource allocation and inaccurate task scheduling, and traditional heuristic scheduling algorithms result in low node utilization.

Method used

A deep learning algorithm is used to build a task prediction model, combined with the trial and error and delayed reward characteristics of reinforcement learning, to dynamically optimize the task scheduling process, predict application running time and adaptively adjust resource allocation.

Benefits of technology

It improves the resource utilization of high-performance clusters and the accuracy of task scheduling, ensuring that tasks are completed in the shortest time and maximizing the overall utilization of the cluster.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113886080B_ABST
    Figure CN113886080B_ABST
Patent Text Reader

Abstract

The present application discloses a high-performance cluster task scheduling method, device, electronic device and readable storage medium. The method includes pre-building a task prediction model based on a deep learning algorithm, and the task prediction model is used to predict the application running time of each user task during the simultaneous operation of different jobs. The task scheduling model is pre-trained, and the task scheduling model is used to dynamically optimize the task scheduling process based on the trial and error and delayed reward characteristics of reinforcement learning. The current task running parameters and calculation parameters of the high-performance cluster task scheduling are input into the task prediction model to obtain the application running prediction time; based on the application running prediction time, the task scheduling model is called to obtain the task scheduling result. The present application does not require users to design computing resources by themselves, and can effectively improve the utilization rate of high-performance clusters and the accuracy of task scheduling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a high-performance cluster task scheduling method, device, electronic device and readable storage medium. Background Art

[0002] With the rapid expansion of computing needs in different industries, the development of commercial CPUs (central processing units) and high-speed interconnected network devices, high-performance computing (HPC) clusters have achieved unprecedented development in the past 20 years. HPC clusters aggregate a large number of microprocessor units, have excellent scalability and extremely high cost-effectiveness, and can quickly solve complex problems. Therefore, they are widely used in technical fields such as nuclear explosion simulation, weather forecasting, and engineering computing. According to Moore's Law, the computing power of high-performance cluster platforms grows exponentially every year, but in actual operation, the actual performance of applications cannot meet current needs. According to NERSC research, in the ACM Gordon Bell award-winning application cases over the years, the ratio of peak performance of large-scale scientific applications to theoretical performance of the operating platform has decreased from 40%-50% in the 1990s to 5%-10% now. It can be seen that even large-scale high-performance computing applications that have been optimized a lot can only use peak performance far lower than the theoretical maximum performance of high-performance computing clusters. Therefore, improving the resource utilization of high-performance clusters, reducing the completion time of all jobs, and improving cluster throughput and fairness are increasingly becoming technical issues that need to be solved in the operation of high-performance clusters.

[0003] The existing high-performance cluster scheduling system is implemented based on classic heuristic algorithms, such as the commonly used Min-Min algorithm and Max-Min algorithm. These methods construct the minimum completion time matrix and find the allocation strategy for the corresponding computing tasks to realize the automation of performance cluster task scheduling. However, since the high-performance cluster scheduling system cannot predict the application running time, the user needs to customize the resource application size when submitting the task during the task allocation process, and the allocated resources cannot be adaptively adjusted according to the actual state of the cluster. Due to the competition between different applications for resources such as memory bandwidth, the running time will be affected. The existing technology cannot consider the simultaneous running of multiple applications on a single node in the cluster, resulting in inaccurate final task scheduling. In the traditional application prediction model, the regression method is relatively simple and cannot describe the interference between multiple applications running at the same time, so it cannot provide accurate results in such complex situations. In addition, the regression model cannot consider the resource constraints in the application running process, such as the number of cores, memory capacity, storage bandwidth, etc. Therefore, the obtained model is usually only applicable to the situation where all resources of a single node are occupied, and the running time accuracy is not high under the condition of restrictions. In addition, the traditional heuristic scheduling module has shortcomings. For example, the Min-Min algorithm will assign tasks to nodes with faster processing speeds as much as possible, making nodes with slower processing speeds always in a hungry state, ultimately resulting in low node utilization. Summary of the invention

[0004] The present application provides a high-performance cluster task scheduling method, device, electronic device and readable storage medium, which does not require users to design computing resources themselves, and effectively improves the utilization rate of high-performance clusters and the accuracy of task scheduling.

[0005] To solve the above technical problems, the embodiments of the present invention provide the following technical solutions:

[0006] An embodiment of the present invention provides a high-performance cluster task scheduling method, including:

[0007] Pre-building a task prediction model based on a deep learning algorithm, wherein the task prediction model is used to predict the application running time of each user task when different jobs are running simultaneously;

[0008] Pre-training a task scheduling model, wherein the task scheduling model is used to dynamically optimize the task scheduling process based on the trial and error and delayed reward characteristics of reinforcement learning;

[0009] Inputting the current task running parameters and calculation parameters of the high-performance cluster task scheduling into the task prediction model to obtain the application running prediction time;

[0010] Based on the predicted application running time, the task scheduling model is called to obtain a task scheduling result.

[0011] Optionally, the task prediction model includes a preprocessing module and a deep learning module;

[0012] The preprocessing module uniquely corresponds to the high-performance cluster type and is used to analyze the current task operation parameters to obtain the network parameters input into the deep learning module;

[0013] The deep learning module is used to obtain the task prediction model by training a deep neural network model through a sample data set based on the network parameters.

[0014] Optionally, the step of obtaining the task prediction model by training a deep neural network model based on the network parameters through a sample data set includes:

[0015] Pre-build a speed prediction model based on a deep neural network model;

[0016] Construct a sample data set based on the actual state data of multiple high-performance computing tasks trained in different high-performance clusters;

[0017] Constructing target features according to actual configuration information of the high-performance cluster and historical states of each high-performance computing task running in the high-performance cluster; obtaining the training speed of each high-performance computing task under different feature states based on the target features, as a label of the corresponding high-performance computing task of the sample data set;

[0018] Based on the network parameters, the speed prediction model is trained using a sample data set carrying labels.

[0019] Optionally, the training of the speed prediction model using the sample data set carrying labels includes:

[0020] Using the sample data set with labels, Adam is used as the optimizer, and the supervised learning algorithm is called while using the gradient descent method to train the speed prediction model.

[0021] Optionally, the dynamic optimization of the task scheduling process based on the trial and error and delayed reward features of reinforcement learning includes:

[0022] All task loads use the cluster node number and task run order vector as state;

[0023] The cluster computing resources for task load distribution and the changes in the execution order of each task are taken as actions to construct the action value function;

[0024] Inputting the corresponding initial scheduling result into the task scheduling model, and taking the predicted total running time as the delayed reward feature;

[0025] The action value function is iteratively calculated using a reinforcement learning algorithm according to the delayed reward feature, so as to determine a final task calling result according to a convergence result.

[0026] Optionally, the iterative calculation of the action-value function using a reinforcement learning algorithm according to the delayed reward feature includes:

[0027] Initialize the function value of the action value and set the current state of the action value function;

[0028] Inputting the current state into the task scheduling model to obtain the task running time;

[0029] Using the task running time as the delayed reward feature, and obtaining the current reward feature and the next state by executing an action;

[0030] The action value function is updated according to the current reward feature and the next state, and the next state is used as the current state, and iteration is repeated until the terminal state of the state set is reached; the state set is constructed according to all task resource allocation states and task scheduling sequences.

[0031] Another aspect of the present invention provides a high-performance cluster task scheduling device, including:

[0032] A model training module is used to pre-build a task prediction model based on a deep learning algorithm, and the task prediction model is used to predict the application running time of each user task during the simultaneous running of different jobs; pre-train a task scheduling model, and the task scheduling model is used to dynamically optimize the task scheduling process based on the trial and error and delayed reward characteristics of reinforcement learning;

[0033] A running time prediction module, used to input the current task running parameters and calculation parameters of the high-performance cluster task scheduling into the task prediction model to obtain the application running prediction time;

[0034] The task calling module is used to call the task scheduling model to obtain the task scheduling result based on the predicted running time of the application.

[0035] Optionally, the task prediction model includes a preprocessing module and a deep learning module;

[0036] The preprocessing module uniquely corresponds to the high-performance cluster type and is used to analyze the current task operation parameters to obtain the network parameters input into the deep learning module;

[0037] The deep learning module is used to obtain the task prediction model by training a deep neural network model through a sample data set based on the network parameters.

[0038] An embodiment of the present invention further provides an electronic device, comprising a processor, wherein the processor is configured to implement the steps of the high-performance cluster task scheduling method as described in any of the preceding items when executing a computer program stored in a memory.

[0039] Finally, an embodiment of the present invention further provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the high-performance cluster task scheduling method as described in any of the preceding items are implemented.

[0040] The advantage of the technical solution provided by this application is that a high-performance cluster application running time prediction model is established using a deep learning method. Since the system resource occupancy of high-performance cluster computing applications and the mutual interference of different applications when running at the same time are taken into account, the model can predict various complex situations in the actual operation of the cluster, and can be applied to high-performance cluster task scheduling systems with complex running tasks. Different from traditional regression models, it has wider applicability and more accurate final scheduling results. The application running time predicted by the task prediction model provides data support for task scheduling. By converting the optimization process of task scheduling into a training process of reinforcement learning, the dynamic optimization process of task scheduling is realized, effectively improving the overall operation efficiency of the cluster. During the operation of a high-performance cluster, users do not need to set computing resources when submitting tasks. The scheduling system can adaptively adjust the actual use of computing resources according to the time prediction results and cluster resources, and execute all tasks in a certain order, so that the user-submitted tasks can be completed in the shortest time, which can ensure that the cluster utilization rate and the total execution speed of all tasks are maximized, thereby effectively improving the overall utilization rate of the cluster.

[0041] In addition, the embodiments of the present invention also provide corresponding implementation devices, electronic devices and readable storage media for the high-performance cluster task scheduling method, which further makes the method more practical, and the devices, electronic devices and readable storage media have corresponding advantages.

[0042] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 A flowchart of a high-performance cluster task scheduling method provided by an embodiment of the present invention;

[0045] Figure 2 A schematic diagram of a framework of an exemplary application scenario provided for an embodiment of the present invention;

[0046] Figure 3 A schematic diagram of the structure of a deep learning module for an exemplary application scenario provided by an embodiment of the present invention;

[0047] Figure 4 A schematic diagram of a training process of a task scheduling model for an exemplary application scenario provided by an embodiment of the present invention;

[0048] Figure 5 A schematic diagram of iterating an action set and a state set using an action value function in an exemplary application scenario provided by an embodiment of the present invention;

[0049] Figure 6 A structural diagram of a specific implementation of a high-performance cluster task scheduling device provided by an embodiment of the present invention;

[0050] Figure 7 A structural diagram of a specific implementation of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0051] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0052] The terms "first", "second", "third", "fourth", etc. in the specification and claims of this application and the above drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.

[0053] After introducing the technical solutions of the embodiments of the present invention, various non-limiting implementation methods of the present application are described in detail below.

[0054] See first Figure 1 , Figure 1 A flowchart of a high-performance cluster task scheduling method provided by an embodiment of the present invention may include the following contents:

[0055] S101: Build a task prediction model based on a deep learning algorithm in advance.

[0056] In this embodiment, the task prediction model is used to predict the application running time of each user task during the simultaneous running of different jobs. The task prediction model is constructed based on a deep learning method to predict resource usage such as the running time and memory usage of high-performance computing application tasks. Unlike the traditional prediction module using regression methods, the task prediction model constructed in this step takes into account the interference of different jobs running simultaneously, improves the accuracy of the prediction time, and is applicable to the prediction of any high-performance application. The main function of the task prediction model is to provide support for the optimization process of the entire high-performance cluster task scheduling system.

[0057] S102: Pre-training a task scheduling model.

[0058] The task scheduling model of this embodiment is used to dynamically optimize the task scheduling process based on the trial and error and delayed reward characteristics of reinforcement learning. This module is built based on the reinforcement learning method, and optimizes the task scheduling results during the training process through the trial and error and delayed reward characteristics of reinforcement learning.

[0059] S103: Inputting the current task running parameters and computing parameters of the high-performance cluster task scheduling into the task prediction model to obtain the application running prediction time.

[0060] S104: Based on the predicted application running time, the task scheduling model is called to obtain the task scheduling result.

[0061] This embodiment aims to solve the problem of high-performance cluster task scheduling. Figure 2 As shown in the figure, during the operation of a high-performance cluster, the high-performance cluster task scheduling system needs to allocate resources according to the cluster and execute all tasks in a certain order, so that the tasks submitted by users can be completed in the shortest time, thereby improving the overall utilization of the cluster. Assume that there are a total of P nodes in a high-performance cluster, and the cluster set that can be formed is R = {R1, R2, ..., R P}, the user submits a total of S computing tasks, which can be expressed as W = {W1, W2, ..., W S}. In each computing task W j It can be further divided into N j The computational load T j ={T j,1 , T j,2 , ..., T j,S}As the minimum execution unit, the total load of all tasks is Each task W j The time from submission to completion is T(W j), the total time for all tasks to complete is For high-performance cluster task scheduling systems, F T That is, the corresponding optimization objective function. In the actual use of the high-performance cluster computing task call system, the task prediction model adopts a deep learning method. By extracting unified parameters for the module to make predictions, the system as a whole is more flexible and can be applied to predictions of different HPC (High Performance Computing) applications. The task scheduling model adopts a reinforcement learning method. By converting the scheduling results into state vectors, the optimization process of task scheduling results is realized during the reinforcement learning training process.

[0062] In the technical solution provided by the embodiment of the present invention, a high-performance cluster application running time prediction model is established using a deep learning method. Since the system resource occupancy of the high-performance cluster computing application and the mutual interference of different applications when running at the same time are taken into account, the model can predict various complex situations in the actual operation of the cluster, and can be applied to high-performance cluster task scheduling systems with complex running tasks. Different from the traditional regression model, it has a wider applicability and a more accurate final scheduling result. The application running time predicted by the task prediction model provides data support for task scheduling. By converting the optimization process of task scheduling into a training process of reinforcement learning, the dynamic optimization process of task scheduling is realized, and the overall operation efficiency of the cluster is effectively improved. During the operation of the high-performance cluster, users do not need to set computing resources when submitting tasks. The scheduling system can adaptively adjust the actual computing resources used according to the time prediction results and cluster resources, and execute all tasks in a certain order, so that the user-submitted tasks can be completed in the shortest time, which can ensure that the cluster utilization rate and the total execution speed of all tasks are maximized, thereby effectively improving the overall utilization rate of the cluster.

[0063] It should be noted that there is no strict order of execution between the steps in this application. As long as they comply with the logical order, these steps can be executed simultaneously or in a certain preset order. Figure 1 This is just a schematic and does not mean that this is the only execution order.

[0064] In the above embodiment, the structure of the task prediction model is not limited. In this embodiment, an optional implementation of the task prediction model is provided, which may include:

[0065] The task prediction model includes a preprocessing module and a deep learning module; the preprocessing module uniquely corresponds to the high-performance cluster type and is used to analyze the current task operation parameters to obtain the network parameters input into the deep learning module; the deep learning module is used to train the deep neural network model based on the network parameters through the sample data set to obtain the task prediction model. The task prediction model inputs the application computing parameters and operation parameters as feature vectors into the deep neural network model for training, and obtains a unified prediction model suitable for different applications. By combining with different preprocessing modules, it can realize the prediction of the running time of different HPC applications.

[0066] In this embodiment, in the task prediction model, a deep neural network method is used to predict the tasks submitted by the user, and obtain information such as the predicted running time and occupied resources. First, based on the analysis of the submitted application running task parameters, relevant parameter information such as the running status and applied resources are obtained, and finally input into the deep neural network model as a feature vector together with the calculation parameters for prediction. The task prediction model includes two parts: a preprocessing module that performs preprocessing operations and a deep learning module that includes a neural network model. The preprocessing can analyze the input files and running parameters of a specific application software, and extract the parameters required for the neural network model prediction. For different high-performance application software, only the corresponding preprocessing module needs to be adjusted, so the prediction module has the advantages of wide applicability and simple application. The deep neural network model of the deep learning module can, for example, adopt a three-layer fully connected layer DNN (Deep Neural Network) model with 80 neural units in each layer, using a ReLU (Rectified Linear Unit) activation function, such as Figure 3 The output of the deep neural network is the application running time.

[0067] In this embodiment, during the operation of the task prediction model, the running application is determined according to the calling command. Before the prediction time, the corresponding preprocessing module is first called to analyze the running parameters and extract the parameters required for the deep learning module. Due to the particularity of different high-performance cluster computing applications, the preprocessing module needs to be developed separately for different applications. However, since most of the extracted parameters are directly included in the HPC application running parameters or parameter files, the workload of the preprocessing module is very small, and the parameters required for each model are exactly the same. In addition, during the operation of high-performance applications, the main running time of most applications is the iterative calculation process of the linear equation group. Therefore, the calculation amount can be predicted according to the size of the linear equation group, and a more accurate simulation time can be obtained. The calculation parameters extracted during the preprocessing process include the following: A 0-1 binary vector of length m, indicating the type of application. If an element in is 1, it means that the HPC job is a certain type of application, and the other elements are 0. m is the number of all HPC applications. w represents the number of unknown numbers in the HPC application calculation process. is a 0-1 binary vector of length n, indicating the data type used to store the coefficient matrix of the linear equation system. In Intel MKL, there are 6 commonly used sparse matrix types: csr, bsr, coo, dia, dok, csc, etc., so n can be set to 6. When the coefficient matrix is ​​not stored in sparse data format, All elements in are 0.

[0068] The running parameters obtained in the preprocessing process are used to form a feature vector, which is input into the deep neural network model to predict the running time of the application under given conditions. As an optional implementation of this embodiment, based on the network parameters, the process of training the deep neural network model through the sample data set to obtain the task prediction model may include:

[0069] A speed prediction model is constructed in advance based on a deep neural network model; a sample data set is constructed based on the actual state data of multiple high-performance computing tasks trained in different high-performance clusters; target features are constructed based on the actual configuration information of the high-performance cluster and the historical states of each high-performance computing task running in the high-performance cluster; based on the target features, the training speed of each high-performance computing task under different feature states is obtained as a label of the corresponding high-performance computing task of the sample data set; based on the network parameters, the speed prediction model is trained using the sample data set carrying the label.

[0070] The input features of the speed prediction model are used to represent the characteristics of the training process of a task, and each piece of data in the data set represents the actual state of a task in the cluster under different values ​​of the feature. The meanings of each element of the feature variable are as follows:

[0071] Indicates application computing related parameters, which are mainly extracted by the preprocessing module; p indicates the number of processes used in HPC application computing; is a vector of length k, which indicates the placement information of the computing process of the HPC application. k represents the number of computing nodes in the cluster. For example, the server has 4 nodes: node01–node04. Assuming that an HPC job evenly distributes 30 processes on the first 3 nodes, then It is a vector of length k, which represents the sum of the number of processes on each computing node when the HPC application is running.

[0072] In order to predict the speed of HPC jobs, it is necessary to construct corresponding features based on the actual configuration of the cluster and the historical status of the HPC jobs running in the cluster, and use automated tools based on these features to obtain the training speed of each HPC job under different feature states as the label of the data set. The speed prediction model can be built using Keras, using a three-layer fully connected DNN model. The output of the model is the running time of the HPC job. It is trained using supervised learning and uses Adam as the optimizer. The data set for model training is constructed by collecting real data from the running of HPC jobs in the cluster. Since most of the HPC application computing processes have iterative characteristics, the computing and communication requirements of the entire process are basically stable, so the Mini-batch gradient descent method can be used for predictive model training to make the training process converge quickly.

[0073] The above embodiment does not limit S102 in any way. The present application also provides an implementation method for task call optimization. The task scheduling model is implemented through a reinforcement learning training process, and the running time obtained by the task prediction model is used as a reward to achieve the best scheduling result optimization effect for different clusters or high-performance applications, and maximize the cluster utilization efficiency. It may include:

[0074] All task loads use cluster node numbers and task running order vectors as states; cluster computing resources allocated to task loads and changes in the execution order of each task are used as actions to construct action value functions; the corresponding initial scheduling results are input into the task scheduling model, and the predicted total running time is used as the delayed reward feature; the action value function is iteratively calculated using a reinforcement learning algorithm based on the delayed reward feature to determine the final task call result based on the convergence result.

[0075] The task scheduling model of this embodiment uses a reinforcement learning method to integrate the application task operation optimization process into the training process of the reinforcement learning method, and finally determine the minimum FT value. During the training process, all task loads use the cluster node number and task operation order vector as the state; the cluster computing resources allocated to the task load and the change of the execution order are used as actions to construct the action value function; the corresponding scheduling results are input into the prediction module, and the predicted total operation time is used as the "reward"; according to the reward, the action value function is iteratively calculated using the reinforcement learning algorithm, and finally the converged result is obtained, so as to optimize the scheduling process according to the state, action and convergence function, such as Figure 4 In this embodiment, the reinforcement learning may adopt the Q-Learning algorithm, for example, and the state set is a set of all task resource allocation states and task scheduling sequences. Use a vector p with a length of N+S s As the state, the first N elements are the node numbers that make up the load distribution of all tasks, and the last S elements are the calculation tasks Wj Execution number: In the first N elements, the i-th element ranges from [0, P-1], indicating the node number to which the i-th load is assigned; in the last S elements, the i-th element ranges from [0, S-1], indicating the order in which the i-th task is run. When the corresponding values ​​of two elements are the same, it means that the two tasks start running at the same time. When using reinforcement learning methods for training, all changes in load distribution resources and changes in task scheduling order constitute the action set A. The Q-Learning algorithm is used to iteratively calculate the action value function based on the reward, which may include the following steps:

[0076] Initialize the function value of the action value and set the current state p of the action value function s .

[0077] Input the current state into the task scheduling model to obtain the task running time F T .

[0078] Set the task running time F T As a delayed reward feature, the current reward feature and the next state are obtained by executing the action, such as Figure 5 To ensure that the task call model can search all possible call processes and that the Q-Learning algorithm can converge, a greedy algorithm can be used for searching.

[0079] Update the action value function according to the current reward feature and the next state. The updated action value function can be expressed as:

[0080] Q(p s ,α)=(1-β)·Q(p s ,α)+β[R+γmax α Q(p′ s ,α)];

[0081] Among them, p s =p s `, p s is the current state, α is the action, Q(p s , α) is the action value function, representing the current state p s The convergence function value obtained by executing action α, β is the learning rate, R is the reward, γ is the discount factor, and p s ` is the maximum convergence function value of the action taken in the next state.

[0082] The next state is taken as the current state and the iteration is repeated until the terminal state of the state set is reached; the state set is constructed according to the resource allocation state of all tasks and the task scheduling order.

[0083] As can be seen from the above, this embodiment is applicable to different high-performance clusters and applications and has good universality. By integrating a high-precision task prediction model, the scheduling results can be automatically optimized in the task scheduling model after the user submits the task, rather than by running the application multiple times, which saves computing resources, improves the training speed, and can effectively improve the overall utilization of the cluster.

[0084] The embodiment of the present invention also provides a corresponding device for the high-performance cluster task scheduling method, which further makes the method more practical. Among them, the device can be described from the perspective of functional modules and hardware. The high-performance cluster task scheduling device provided by the embodiment of the present invention is introduced below. The high-performance cluster task scheduling device described below and the high-performance cluster task scheduling method described above can be referred to each other.

[0085] From the perspective of functional modules, see Figure 6 , Figure 6 A structural diagram of a high-performance cluster task scheduling device provided by an embodiment of the present invention in a specific implementation manner, the device may include:

[0086] The model training module 601 is used to pre-build a task prediction model based on a deep learning algorithm, and the task prediction model is used to predict the application running time of each user task during the simultaneous running of different jobs; the task scheduling model is pre-trained, and the task scheduling model is used to dynamically optimize the task scheduling process based on the trial and error and delayed reward characteristics of reinforcement learning.

[0087] The running time prediction module 602 is used to input the current task running parameters and computing parameters of the high-performance cluster task scheduling into the task prediction model to obtain the application running prediction time.

[0088] The task calling module 603 is used to call the task scheduling model to obtain the task scheduling result based on the application running prediction time.

[0089] Optionally, in some implementations of this embodiment, the task prediction model may include a preprocessing module and a deep learning module;

[0090] The preprocessing module uniquely corresponds to the high-performance cluster type and is used to analyze the current task running parameters to obtain the network parameters for input into the deep learning module;

[0091] The deep learning module is used to train the deep neural network model based on the network parameters and the sample data set to obtain the task prediction model.

[0092] As an optional implementation of this embodiment, the above-mentioned model training module 601 can be further used to: pre-build a speed prediction model based on a deep neural network model; build a sample data set based on the actual state data of multiple high-performance computing tasks trained in different high-performance clusters; construct target features based on the actual configuration information of the high-performance cluster and the historical status of each high-performance computing task running in the high-performance cluster; based on the target features, obtain the training speed of each high-performance computing task under different feature states as the label of the corresponding high-performance computing task of the sample data set; based on the network parameters, use the sample data set carrying the label to train the speed prediction model.

[0093] As an optional implementation of the above embodiment, the above model training module 601 can be further used to: use a sample data set carrying labels, use Adam as an optimizer, call a supervised learning algorithm and use a gradient descent method to train a speed prediction model.

[0094] Optionally, in some other implementations of this embodiment, the above-mentioned model training module can be further used to: use the cluster node number and task running order vector of all task loads as the state; use the cluster computing resources allocated to the task load and the change of the execution order of each task as the action to construct the action value function; input the corresponding initial scheduling result into the task scheduling model, and use the predicted total running time as the delayed reward feature; use the reinforcement learning algorithm to iteratively calculate the action value function according to the delayed reward feature to determine the final task call result according to the convergence result.

[0095] As an optional implementation of this embodiment, the above-mentioned model training module can be further used to: initialize the function value of the action value and set the current state of the action value function; input the current state into the task scheduling model to obtain the task running time; use the task running time as a delayed reward feature, and obtain the current reward feature and the next state by executing the action; update the action value function according to the current reward feature and the next state, and use the next state as the current state, and repeat the iteration until the terminal state of the state set is reached; the state set is constructed according to the resource allocation status of all tasks and the task scheduling order.

[0096] The functions of the functional modules of the high-performance cluster task scheduling device described in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0097] It can be seen from the above that the embodiments of the present invention do not require users to design computing resources themselves, and effectively improve the utilization rate of high-performance clusters and the accuracy of task scheduling.

[0098] The high-performance cluster task scheduling device mentioned above is described from the perspective of functional modules. Furthermore, the present application also provides an electronic device, which is described from the perspective of hardware. Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application in one implementation manner. Figure 7 As shown, the electronic device includes a memory 70 for storing computer programs; a processor 71 for implementing the steps of the high-performance cluster task scheduling method mentioned in any of the above embodiments when executing the computer program.

[0099] Among them, the processor 71 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the processor 71 may also be a controller, a microcontroller, a microprocessor or other data processing chip. The processor 71 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 71 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 71 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 71 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0100] The memory 70 may include one or more computer-readable storage media, which may be non-transitory. The memory 70 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In some embodiments, the memory 70 may be an internal storage unit of an electronic device, such as a hard disk of a server. In other embodiments, the memory 70 may also be an external storage device of an electronic device, such as a plug-in hard disk equipped on a server, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. Further, the memory 70 may also include both an internal storage unit of an electronic device and an external storage device. The memory 70 may not only be used to store application software and various types of data installed in the electronic device, such as: the code of the program for executing the vulnerability processing method, etc., but may also be used to temporarily store data that has been output or is to be output. In this embodiment, the memory 70 is at least used to store the following computer program 701, wherein, after the computer program is loaded and executed by the processor 71, the relevant steps of the high-performance cluster task scheduling method disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 70 may also include an operating system 702 and data 703, and the storage method may be temporary storage or permanent storage. The operating system 702 may include Windows, Unix, Linux, etc. The data 703 may include but is not limited to data corresponding to the high-performance cluster task scheduling results.

[0101] In some embodiments, the electronic device may further include a display screen 72, an input / output interface 73, a communication interface 74 or a network interface, a power supply 75 and a communication bus 76. Among them, the display screen 72 and the input / output interface 73 such as a keyboard belong to the user interface, and the optional user interface may also include a standard wired interface, a wireless interface, etc. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface. The communication interface 74 may optionally include a wired interface and / or a wireless interface, such as a WI-FI interface, a Bluetooth interface, etc., which are generally used to establish a communication connection between the electronic device and other electronic devices. The communication bus 76 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0102] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, for example, it may also include a sensor 77 to implement various functions.

[0103] The functions of the functional modules of the electronic device described in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0104] It can be seen from the above that the embodiments of the present invention do not require users to design computing resources themselves, and effectively improve the utilization rate of high-performance clusters and the accuracy of task scheduling.

[0105] It is understandable that if the high-performance cluster task scheduling method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), electrically erasable programmable ROM, register, hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), magnetic memory, removable disk, CD-ROM, disk or optical disk, etc. Various media that can store program codes.

[0106] Based on this, an embodiment of the present invention further provides a readable storage medium storing a computer program. When the computer program is executed by a processor, the steps of the high-performance cluster task scheduling method described in any of the above embodiments are performed.

[0107] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the hardware disclosed in the embodiments, including devices and electronic devices, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part.

[0108] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may 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.

[0109] The above is a detailed introduction to a high-performance cluster task scheduling method, device, electronic device and readable storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A high-performance cluster task scheduling method, characterized in that: include: Pre-building a task prediction model based on a deep learning algorithm, wherein the task prediction model is used to predict the application running time of each user task when different jobs are running simultaneously; The task prediction model includes a preprocessing module and a deep learning module; The preprocessing module uniquely corresponds to the high-performance cluster type and is used to analyze the current task operation parameters to obtain the network parameters input into the deep learning module; the deep learning module is used to train the deep neural network model through the sample data set based on the network parameters to obtain the task prediction model; Pre-training a task scheduling model, wherein the task scheduling model is used to dynamically optimize the task scheduling process based on the trial and error and delayed reward characteristics of reinforcement learning; Inputting the current task running parameters and calculation parameters of the high-performance cluster task scheduling into the task prediction model to obtain the application running prediction time; Based on the predicted application running time, calling the task scheduling model to obtain a task scheduling result; The step of obtaining the task prediction model by training a deep neural network model based on the network parameters through a sample data set includes: Pre-build a speed prediction model based on a deep neural network model; Construct a sample data set based on the actual state data of multiple high-performance computing tasks trained in different high-performance clusters; Constructing target features according to actual configuration information of the high-performance cluster and the historical status of each high-performance computing task running in the high-performance cluster; based on the target features, obtaining the training speed of each high-performance computing task under different feature states as a label of the corresponding high-performance computing task of the sample data set; Based on the network parameters, the speed prediction model is trained using a sample data set carrying labels; The trial-and-error and delayed reward features based on reinforcement learning dynamically optimize the task scheduling process, including: All task loads use the cluster node number and task run order vector as state; The cluster computing resources for task load distribution and the changes in the execution order of each task are taken as actions to construct the action value function; Inputting the corresponding initial scheduling result into the task scheduling model, and taking the predicted total running time as the delayed reward feature; The action value function is iteratively calculated using a reinforcement learning algorithm according to the delayed reward feature, so as to determine a final task calling result according to a convergence result.

2. The high-performance cluster task scheduling method according to claim 1, characterized in that: The method of training the speed prediction model using the sample data set carrying labels includes: Using the sample data set with labels, Adam is used as the optimizer, and the supervised learning algorithm is called while using the gradient descent method to train the speed prediction model.

3. The high-performance cluster task scheduling method according to claim 1, characterized in that: The iterative calculation of the action value function using a reinforcement learning algorithm according to the delayed reward feature includes: Initialize the function value of the action value and set the current state of the action value function; Inputting the current state into the task scheduling model to obtain the task running time; Using the task running time as the delayed reward feature, and obtaining the current reward feature and the next state by executing an action; The action value function is updated according to the current reward feature and the next state, and the next state is used as the current state, and iteration is repeated until the terminal state of the state set is reached; the state set is constructed according to all task resource allocation states and task scheduling sequences.

4. A high-performance cluster task scheduling device, characterized in that: include: A model training module is used to pre-build a task prediction model based on a deep learning algorithm, wherein the task prediction model is used to predict the application running time of each user task when different jobs are running simultaneously; Pre-training a task scheduling model, wherein the task scheduling model is used to dynamically optimize the task scheduling process based on the trial and error and delayed reward characteristics of reinforcement learning; the task prediction model includes a preprocessing module and a deep learning module; The preprocessing module uniquely corresponds to the high-performance cluster type and is used to analyze the current task operation parameters to obtain the network parameters input into the deep learning module; the deep learning module is used to train the deep neural network model through the sample data set based on the network parameters to obtain the task prediction model; A running time prediction module, used to input the current task running parameters and calculation parameters of the high-performance cluster task scheduling into the task prediction model to obtain the application running prediction time; A task calling module, used to call the task scheduling model to obtain a task scheduling result based on the predicted application running time; The model training module is further used to: construct a speed prediction model based on a deep neural network model in advance; construct a sample data set based on the actual state data of the training of multiple high-performance computing tasks in different high-performance clusters; construct a target feature based on the actual configuration information of the high-performance cluster and the historical state of each high-performance computing task running in the high-performance cluster; based on the target feature, obtain the training speed of each high-performance computing task under different feature states as a label of the corresponding high-performance computing task of the sample data set; based on the network parameters, train the speed prediction model using the sample data set carrying the label; Among them, the model training module is further used to: use the cluster node number and task running order vector of all task loads as the state; use the cluster computing resources allocated to the task load and the change of the execution order of each task as the action to construct the action value function; input the corresponding initial scheduling result into the task scheduling model, and use the predicted total running time as the delayed reward feature; according to the delayed reward feature, use the reinforcement learning algorithm to iteratively calculate the action value function to determine the final task call result according to the convergence result.

5. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the processor is used to implement the steps of the high-performance cluster task scheduling method as claimed in any one of claims 1 to 3 when executing a computer program stored in the memory.

6. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the high-performance cluster task scheduling method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Reinforced learning-based cluster scheduling system

    CN108874545A

  • Private cloud task scheduling method for resource prediction based on v-TGRU model

    CN110389820A