A cloud computing workflow scheduling method, system, processing device and medium
A cloud computing workflow scheduling model is constructed through deep reinforcement learning algorithms, which solves the problem of uneven resource allocation caused by single-target focus in existing technologies, maximizes resource utilization efficiency while minimizing completion time and cost, and adapts to different tasks. Load scheduling strategy.
Patent Information
- Application Number
- CN202410883063.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-03
AI Technical Summary
Existing cloud computing workflow scheduling methods often only focus on a single goal, resulting in uneven execution time or resource allocation, and cannot effectively meet the needs of IoT applications. Moreover, heuristic algorithms are difficult to balance exploration and development, avoid premature convergence, and fine-tune algorithms. There are challenges with parameters.
Use deep reinforcement learning algorithms, especially the DQN algorithm, to build a workflow scheduling model. By building a directed acyclic graph model, we can determine the earliest end time of the task, the task completion time of the virtual machine, resource utilization and total processing cost, and optimize many aspects. Objective function to implement task allocation and resource scheduling.
While minimizing completion time and cost, it maximizes resource utilization efficiency, ensures service quality and resource efficiency, adapts to different workloads and system states, and obtains optimal workflow scheduling solutions in real time.
Smart Images

Figure CN118409848B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers and automation, and in particular to a cloud computing workflow scheduling method, system, processing equipment and medium. Background Art
[0002] With the rapid development of information technology, cloud computing, relying on the elasticity and virtualization of resources, can adapt well to the distributed execution of large-scale tasks. It has been widely used in scientific research, healthcare, financial services, education and other industries, and has become one of the important cornerstones of today's digital era. Workflow scheduling refers to the process of effectively arranging and managing the execution order and resource allocation of various tasks or jobs in a cloud environment according to the dependencies between tasks and resource constraints. Among them, tasks in the same workflow (same level) are subject to priority and execution deadline. It has been proven that workflow scheduling largely determines the quality of service (QoS) and resource efficiency of cloud computing, so its research has become a hot topic in recent years.
[0003] Each application should be executed within a specific time limit, otherwise it will lead to the failure of the application. Different applications can be regarded as a workflow composed of a series of tasks connected by data or computing dependencies, in which the processing resources, storage resources and response time required for each task are different. Only focusing on the delay of scheduling cannot meet the requirements of IoT applications. Reasonable workflow scheduling needs to measure the completion time, resource constraints and energy consumption of the workflow, which can effectively improve user experience and system performance. On the contrary, unreasonable workflow scheduling will directly lead to a significant increase in execution time and uneven resource allocation, resulting in a large amount of energy consumption and violation of SLA, which greatly reduces service quality and resource efficiency. Therefore, how to perform reasonable workflow scheduling is a difficult problem that must be solved.
[0004] However, existing cloud computing workflow scheduling often only focuses on a single goal, which leads to increased execution time or uneven resource allocation. In addition, existing cloud computing workflow scheduling often uses heuristic algorithms to handle task scheduling, which poses challenges in balancing exploration and exploitation, avoiding premature convergence, and fine-tuning algorithm parameters. Summary of the invention
[0005] In view of the above problems, the purpose of the present invention is to provide a cloud computing workflow scheduling method, system, processing device and medium, which can minimize completion time and cost consumption while maximizing resource utilization efficiency.
[0006] To achieve the above objectives, the present invention adopts the following technical solutions: In a first aspect, a cloud computing workflow scheduling method is provided, comprising:
[0007] Build a workflow model of the application to be tested based on application requests;
[0008] Based on the workflow model of the application to be tested, the pre-built workflow scheduling model is solved to obtain the optimal workflow scheduling solution for the application to be tested. The optimal workflow scheduling solution includes which virtual machine different tasks are assigned to execute and the total completion time and total cost of the entire workflow. The workflow scheduling model is trained using a deep reinforcement learning algorithm.
[0009] Furthermore, the workflow model is a directed acyclic graph G(T,E), with a total of 8 tasks, where the node set T represents the task set, the edge set E represents the dependency or priority between tasks, and each task must wait for the output of its predecessor task to be completed before continuing to execute its own scheduled task.
[0010] Furthermore, the construction process of the workflow scheduling model is:
[0011] Determine the transfer time between two virtual machines performing different tasks;
[0012] Determine the earliest end time of the task based on the transmission time;
[0013] Determine the task completion time of the virtual machine according to the determined earliest end time;
[0014] Determine the maximum task completion time, resource utilization and total processing cost of all virtual machines based on the task completion time of the virtual machines;
[0015] A workflow scheduling model is constructed based on the maximum task completion time, resource utilization, and total processing cost of the virtual machine;
[0016] The DQN algorithm is used to train the constructed workflow scheduling model to obtain a trained workflow scheduling model.
[0017] Furthermore, the determining of the maximum task completion time, resource utilization and total processing cost of all virtual machines according to the task completion time of the virtual machines includes:
[0018] According to the task completion time of the virtual machine, determine the maximum task completion time of all virtual machines;
[0019] Take the average of the task completion time of all virtual machines to determine the average cloud execution time, and then determine the resource utilization of the corresponding virtual machine;
[0020] The total processing cost of the virtual machine is determined based on the task completion time of the virtual machine.
[0021] Furthermore, the maximum task completion time of all virtual machines is:
[0022]
[0023] in, For virtual machines The time to complete the task; It is a virtual machine variable;
[0024] The resource utilization of the virtual machine is:
[0025]
[0026] in, is the average cloud execution time of all virtual machines;
[0027] The total processing cost of the virtual machine is:
[0028]
[0029] in, For virtual machines The cost of data processing per hour.
[0030] Furthermore, the optimization objective function of the workflow scheduling model is:
[0031]
[0032] in, is a constant; is the coefficient weight, and its sum is 1; is the maximum task completion time of the virtual machine; is the resource utilization of the virtual machine; is the total processing cost of the virtual machine;
[0033] The constraints of the workflow scheduling model are:
[0034]
[0035] in, When the value is 1, it indicates that the task Assigned to a virtual machine The value of 0 indicates that the task Not assigned to a virtual machine The maximum tolerance time for the application; is a positive integer valued variable.
[0036] Furthermore, the DQN algorithm is used to train the constructed workflow scheduling model to obtain a trained workflow scheduling model, including:
[0037] Determine the state space, action space, and reward function in the DQN algorithm;
[0038] Determine the estimation network and target network in the DQN algorithm;
[0039] The DQN algorithm is used to train the constructed workflow scheduling model to obtain the trained workflow scheduling model;
[0040] in:
[0041] The state space in the DQN algorithm consists of the currently available virtual machines and the task execution matrix together constitute;
[0042] The action space in the DQN algorithm represents the assignment of tasks to virtual machines. virtual machines, then Representation Task Migrate to a virtual machine superior:
[0043]
[0044] The value of the reward function in the DQN algorithm Depends on the value of the optimization objective function:
[0045]
[0046] in, Indicates that when the network status improves, the given reward value is a positive value; It indicates the reward value given after the operation is performed but the network state remains unchanged, mainly used to reduce invalid operations; Indicates the change of network status determined based on the optimization objective function. When the value is greater than 0, it means that the network status has improved. and .
[0047] In a second aspect, a cloud computing workflow scheduling system is provided, comprising:
[0048] A workflow model building module is used to build a workflow model of the application to be tested based on the application request;
[0049] The optimal workflow scheduling determination module is used to solve the pre-built workflow scheduling model based on the workflow model of the application to be tested, and obtain the optimal workflow scheduling solution for the application to be tested. The optimal workflow scheduling solution includes which virtual machine different tasks are assigned to execute and the total completion time and total cost of the entire workflow. The workflow scheduling model is trained using a deep reinforcement learning algorithm.
[0050] According to a third aspect, a processing device is provided, comprising computer program instructions, wherein the computer program instructions are used to implement the steps corresponding to the above-mentioned cloud computing workflow scheduling method when executed by the processing device.
[0051] In a fourth aspect, a computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions, when executed by a processor, are used to implement the steps corresponding to the above-mentioned cloud computing workflow scheduling method.
[0052] The present invention adopts the above technical solution, which has the following advantages:
[0053] 1. The present invention designs a reward function based on a multi-objective function, and uses the training and optimization of a deep reinforcement learning algorithm to construct a knowledge decision-making model, ultimately minimizing completion time and cost consumption while maximizing resource utilization efficiency, ensuring that the SLA agreement (service level agreement) is not violated.
[0054] 2. The present invention takes multiple objectives into consideration as the final optimization goal, adopts the DQN (Deep Q Network) algorithm of deep reinforcement learning, and uses the trained knowledge decision model to obtain the optimal workflow scheduling solution in real time according to the current environmental status, which greatly improves the response speed and performance of the system.
[0055] 3. The present invention adopts a deep reinforcement learning algorithm. On the basis of obtaining real-time decisions, it comprehensively considers the mutual influence and dependencies among multiple tasks, realizes global optimization within the entire system, and adapts to different workloads and system states.
[0056] In summary, the present invention can be widely used in the fields of computer and automation. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Throughout the accompanying drawings, the same reference numerals are used to represent the same components. In the accompanying drawings:
[0058] Figure 1 It is a schematic diagram of a method flow provided by an embodiment of the present invention;
[0059] Figure 2 It is a workflow diagram provided by an embodiment of the present invention;
[0060] Figure 3 Schematic diagram of a DQN network structure provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0061] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0062] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0063] Although the terms first, second, third, etc. can be used in the text to describe multiple elements, components, regions, layers and / or sections, these elements, components, regions, layers and / or sections should not be limited by these terms. These terms can only be used to distinguish an element, component, region, layer or section from another region, layer or section. Unless the context clearly indicates, terms such as "first", "second" and other numerical terms do not imply order or sequence when used in the text. Therefore, the first element, component, region, layer or section discussed below can be referred to as the second element, component, region, layer or section without departing from the teaching of the example embodiments.
[0064] Since existing cloud computing workflow scheduling often only focuses on a single goal, it leads to increased execution time or uneven resource allocation. In addition, existing cloud computing workflow scheduling often uses heuristic algorithms to handle task scheduling, which poses challenges in balancing exploration and development, avoiding premature convergence, and fine-tuning algorithm parameters. An embodiment of the present invention provides a cloud computing workflow scheduling method, including: based on application requests, building a workflow model of an application to be tested; based on the workflow model of the application to be tested, solving a pre-built workflow scheduling model to obtain an optimal workflow scheduling solution for the application to be tested, wherein the optimal workflow scheduling solution includes which virtual machines different tasks are assigned to execute and the total completion time and total cost of the entire workflow, and the workflow scheduling model is trained using a deep reinforcement learning algorithm. The present invention can not only minimize task completion time and cost while maximizing resource utilization under the premise of complying with the SLA agreement, but also use the trained knowledge decision-making model to obtain the optimal workflow scheduling solution in real time, effectively improving the user experience and the overall efficiency of the system. The deep reinforcement learning algorithm adopted will use the number of workflow applications and virtual machines as state inputs, and the reward value depends on the value of the optimization objective function. The model can seek a balance between multiple objectives without prior expert knowledge and converge to relevant scheduling strategies in a dynamic real-time environment.
[0065] Example 1
[0066] like Figure 1 As shown, this embodiment provides a cloud computing workflow scheduling method, including the following steps:
[0067] 1) Based on application requests, build a workflow model of the application under test.
[0068] Specifically, for example: Figure 2 As shown in the figure, the workflow is modeled as a directed acyclic graph G(T,E), with a total of 8 tasks (the principle of setting 8 tasks is to show the logical relationship between multiple tasks without making the workflow acyclic graph look complicated due to too many tasks). The workflow model is obtained, where the node set T represents the task set, and the edge set E represents the dependency or priority between tasks. Each task must wait for the output of its predecessor task to be completed before it can continue to execute its scheduled task. The computing load of each task is expressed in millions of instructions (MI), and the label on each edge represents the amount of output data generated by the predecessor task. The entry task is a task without any predecessor task, and the exit task is a task without any successor task.
[0069] 2) Construct a workflow scheduling model, namely a knowledge decision model, which is as follows:
[0070] 2.1) Determine the execution of different tasks The transfer time between the two virtual machines :
[0071]
[0072] in, To perform tasks Virtual Machine To carry out tasks Virtual Machine The amount of data sent; Represents a virtual machine With virtual machines The bandwidth between the two tasks is measured in bits per second (Bit / s). If the two tasks run on the same virtual machine, the transmission time is 0.
[0073] 2.2) According to the transmission time , determine the task Earliest start time :
[0074]
[0075] 2.3) According to the task Earliest start time , determine the task The earliest end time :
[0076]
[0077] in, For the task Prerequisites: For the task The earliest end time;
[0078] For entry tasks, the earliest start time of the task is is 0, the corresponding earliest end time For the task In the virtual machine Execution time on For the task In the virtual machine Execution time on:
[0079]
[0080] in, For tasks in MI units Length; For virtual machines in units of MI Processing speed; For virtual machines The number of processing units.
[0081] 2.4) Determine the task execution matrix based on the execution time of the task on the virtual machine: :
[0082]
[0083] in, is the number of virtual machines; is the number of tasks; For the task In the virtual machine Each row in the matrix represents the execution time of processing different tasks on a specified virtual machine, and each column represents the execution time of a specified task on different virtual machines.
[0084] 2.5) According to the earliest end time determined , determine the task completion time of the virtual machine :
[0085]
[0086] in, For virtual machines The time to complete the task; When the value is 1, it indicates that the task Assigned to a virtual machine ; The value of 0 indicates that the task Not assigned to a virtual machine ; is a positive integer valued variable.
[0087] 2.6) Based on the task completion time of the virtual machine , determine the maximum task completion time for all virtual machines :
[0088]
[0089] in, For virtual machine variables.
[0090] 2.7) Take the average of the task completion time of all virtual machines to determine the average cloud execution time , and then determine the resource utilization of the corresponding virtual machine :
[0091]
[0092] 2.8) Determine the total processing cost of the virtual machine based on the task completion time of the virtual machine :
[0093]
[0094] in, For virtual machines The cost of data processing per hour.
[0095] 2.9) Based on the maximum task completion time of the virtual machine , Resource Utilization and total processing cost , build a workflow scheduling model:
[0096] 2.9.1) Based on the maximum task completion time of the virtual machine , Resource Utilization and total processing cost , determine the optimization objective function of the workflow scheduling model.
[0097] Specifically, the present invention solves a multi-objective optimization problem, and the final optimization goal can be modeled as a multi-objective function:
[0098]
[0099] in, is a constant; is the coefficient weight, and its sum is 1.
[0100] 2.9.2) Determine the constraints of the workflow scheduling model:
[0101]
[0102] Among them, formula (12) means that a task can only be assigned to one virtual machine; formula (13) represents the total processing cost of the task Cannot exceed the maximum tolerance time of the application .
[0103] 3) The DQN algorithm in the deep reinforcement learning algorithm is used to train the constructed workflow scheduling model to obtain a trained workflow scheduling model, which is specifically:
[0104] 3.1) Determine the state space, action space, and reward function in the DQN algorithm, where:
[0105] State space: consists of currently available virtual machines and task execution matrices Together constitute.
[0106] Action space: represents the assignment of tasks to virtual machines. virtual machines, then Representation Task Migrate to a virtual machine superior:
[0107]
[0108] Reward function: the value of the reward function It depends on the value of the optimization objective function. After executing an action, if the overall state improves, a positive reward is given, otherwise, a negative feedback is given:
[0109]
[0110] in, Indicates that when the network status improves, the given reward value is a positive value; It indicates the reward value given after the operation is performed but the network state remains unchanged, mainly used to reduce invalid operations; Indicates the change of network status determined based on the optimization objective function. When the value is greater than 0, it means that the network status has improved. .
[0111] 3.2) If Figure 3 As shown, the estimation network and target network in the DQN algorithm are determined, where: express The state of the moment, express The action of the moment, represents the weight parameter, represents the reward function.
[0112] Specifically, the inputs of the estimation network and the target network are both the current network states, the output of the estimation network is the Q value of each possible action in the current state, and the output of the target network is the target Q value.
[0113] 3.3) Use the DQN algorithm to train the constructed workflow scheduling model to obtain the trained workflow scheduling model.
[0114] Specifically, the DQN algorithm is used to train the constructed workflow scheduling model based on data such as the workflow's task structure, dependencies between tasks, each person's resource requirements, CPU usage, and memory usage. Parameters are continuously selected and adjusted to obtain a trained workflow scheduling model.
[0115] 4) Based on the workflow model of the application to be tested, solve the trained workflow scheduling model to obtain the optimal workflow scheduling solution for the application to be tested.
[0116] Specifically, the optimal workflow scheduling solution includes which virtual machine different tasks are assigned to execute and the total completion time and total cost of the entire workflow. It can enable the application under test to minimize the completion time and cost consumption in the cloud platform while maximizing the resource utilization efficiency of the cloud computing platform.
[0117] Example 2
[0118] This embodiment provides a cloud computing workflow scheduling system, including:
[0119] The workflow model building module is used to build a workflow model of the application to be tested based on application requests.
[0120] The optimal workflow scheduling determination module is used to solve the pre-built workflow scheduling model based on the workflow model of the application to be tested, and obtain the optimal workflow scheduling solution for the application to be tested, wherein the workflow scheduling model is trained using a deep reinforcement learning algorithm.
[0121] In a preferred embodiment, it also includes a workflow scheduling model building module for building a workflow scheduling model.
[0122] Specifically, the construction process of the workflow scheduling model construction module is as follows:
[0123] Determine the transfer time between two virtual machines performing different tasks.
[0124] Determine the earliest end time of the task based on the transmission time.
[0125] The task completion time of the virtual machine is determined according to the determined earliest end time.
[0126] Based on the task completion time of the virtual machines, the maximum task completion time, resource utilization, and total processing cost of all virtual machines are determined.
[0127] A workflow scheduling model is constructed based on the maximum task completion time, resource utilization and total processing cost of the virtual machine.
[0128] The DQN algorithm is used to train the constructed workflow scheduling model to obtain a trained workflow scheduling model.
[0129] The system provided in this embodiment is used to execute the above-mentioned method embodiments. Please refer to the above-mentioned embodiments for specific processes and detailed contents, which will not be repeated here.
[0130] Example 3
[0131] This embodiment provides a processing device corresponding to the cloud computing workflow scheduling method provided in Embodiment 1. The processing device can be applicable to a client processing device, such as a mobile phone, a laptop computer, a tablet computer, a desktop computer, etc., to execute the method of Embodiment 1.
[0132] The processing device includes a processor, a memory, a communication interface and a bus, and the processor, the memory and the communication interface are connected through the bus to complete mutual communication. The memory stores a computer program that can be run on the processing device, and the processing device executes the cloud computing workflow scheduling method provided in this embodiment 1 when running the computer program.
[0133] In some implementations, the memory may be a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage.
[0134] In some other implementations, the processor may be a central processing unit (CPU), a digital signal processor (DSP), or other general-purpose processors of various types, which are not limited herein.
[0135] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a 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: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0136] Those skilled in the art will understand that the structure of the above-mentioned computing device is only a partial structure related to the solution of the present invention, and does not constitute a limitation on the computing device to which the solution of the present invention is applied. The specific computing device may include more or fewer components, or combine certain components, or have a different arrangement of components.
[0137] Example 4
[0138] This embodiment provides a computer program product corresponding to the cloud computing workflow scheduling method provided in Embodiment 1. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing the cloud computing workflow scheduling method described in Embodiment 1.
[0139] Computer readable storage media can be tangible devices that hold and store instructions used by instruction execution devices. Computer readable storage media can be, for example, but not limited to, electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any combination thereof.
[0140] The above embodiment provides a computer-readable storage medium, whose implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.
[0141] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0142] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0144] The above embodiments are only used to illustrate the present invention, wherein the structure, connection mode and manufacturing process of each component may be changed. Any equivalent transformations and improvements based on the technical solution of the present invention should not be excluded from the protection scope of the present invention.
Claims
1. A cloud computing workflow scheduling method, characterized in that: include: Build a workflow model of the application to be tested based on application requests; Based on the workflow model of the application to be tested, solve the pre-built workflow scheduling model to obtain the optimal workflow scheduling solution for the application to be tested. The optimal workflow scheduling solution includes which virtual machine different tasks are assigned to execute and the total completion time and total cost of the entire workflow. The workflow scheduling model is trained using a deep reinforcement learning algorithm. The construction process of the workflow scheduling model is as follows: Determine the transfer time between two virtual machines performing different tasks; Determine the earliest end time of the task based on the transmission time; Determine the task completion time of the virtual machine according to the determined earliest end time; Determine the maximum task completion time, resource utilization and total processing cost of all virtual machines based on the task completion time of the virtual machines; A workflow scheduling model is constructed based on the maximum task completion time, resource utilization, and total processing cost of the virtual machine; The DQN algorithm is used to train the constructed workflow scheduling model to obtain a trained workflow scheduling model; The determining of the maximum task completion time, resource utilization and total processing cost of all virtual machines according to the task completion time of the virtual machines includes: According to the task completion time of the virtual machine, determine the maximum task completion time of all virtual machines; Take the average of the task completion time of all virtual machines to determine the average cloud execution time, and then determine the resource utilization of the corresponding virtual machine; Determine the total processing cost of the virtual machine based on the task completion time of the virtual machine; The maximum task completion time of all virtual machines is: in, For virtual machines The time to complete the task; It is a virtual machine variable; The resource utilization of the virtual machine is: in, is the average cloud execution time of all virtual machines; The total processing cost of the virtual machine is: in, For virtual machines The cost of data processing per hour; The optimization objective function of the workflow scheduling model is: in, is a constant; , is the coefficient weight, and its sum is 1; is the maximum task completion time of the virtual machine; is the resource utilization of the virtual machine; is the total processing cost of the virtual machine; The constraints of the workflow scheduling model are: in, When the value is 1, it indicates that the task Assigned to a virtual machine ; The value of 0 indicates that the task Not assigned to a virtual machine ; The maximum tolerance time for the application; is a positive integer valued variable.
2. A cloud computing workflow scheduling method according to claim 1, characterized in that: The workflow model is a directed acyclic graph G(T,E), which has 8 tasks in total, wherein the node set T represents the task set, and the edge set E represents the dependency or priority between tasks. Each task must wait for the output of its predecessor task to be completed before continuing to execute its own scheduled task.
3. A cloud computing workflow scheduling method according to claim 1, characterized in that: The DQN algorithm is used to train the constructed workflow scheduling model to obtain a trained workflow scheduling model, including: Determine the state space, action space, and reward function in the DQN algorithm; Determine the estimation network and target network in the DQN algorithm; The DQN algorithm is used to train the constructed workflow scheduling model to obtain the trained workflow scheduling model; in: The state space in the DQN algorithm consists of the currently available virtual machines and the task execution matrix together constitute; The action space in the DQN algorithm represents the assignment of tasks to virtual machines. virtual machines, then Representation Task Migrate to a virtual machine superior: The value of the reward function in the DQN algorithm Depends on the value of the optimization objective function: in, Indicates that when the network status improves, the given reward value is a positive value; It indicates the reward value given after the operation is performed but the network state remains unchanged, mainly used to reduce invalid operations; Indicates the change of network status determined based on the optimization objective function. When the value is greater than 0, it means that the network status has improved. and .
4. A cloud computing workflow scheduling system, characterized in that: include: A workflow model building module is used to build a workflow model of the application to be tested based on the application request; The optimal workflow scheduling determination module is used to solve the pre-built workflow scheduling model based on the workflow model of the application to be tested, and obtain the optimal workflow scheduling solution of the application to be tested, wherein the optimal workflow scheduling solution includes which virtual machine different tasks are assigned to execute and the total completion time and total cost of the entire workflow. The workflow scheduling model is trained using a deep reinforcement learning algorithm; The construction process of the workflow scheduling model is as follows: Determine the transfer time between two virtual machines performing different tasks; Determine the earliest end time of the task based on the transmission time; Determine the task completion time of the virtual machine according to the determined earliest end time; Determine the maximum task completion time, resource utilization and total processing cost of all virtual machines based on the task completion time of the virtual machines; A workflow scheduling model is constructed based on the maximum task completion time, resource utilization, and total processing cost of the virtual machine; The DQN algorithm is used to train the constructed workflow scheduling model to obtain a trained workflow scheduling model; The determining of the maximum task completion time, resource utilization and total processing cost of all virtual machines according to the task completion time of the virtual machines includes: According to the task completion time of the virtual machine, determine the maximum task completion time of all virtual machines; Take the average of the task completion time of all virtual machines to determine the average cloud execution time, and then determine the resource utilization of the corresponding virtual machine; Determine the total processing cost of the virtual machine based on the task completion time of the virtual machine; The maximum task completion time of all virtual machines is: in, For virtual machines The time to complete the task; It is a virtual machine variable; The resource utilization of the virtual machine is: in, is the average cloud execution time of all virtual machines; The total processing cost of the virtual machine is: in, For virtual machines The cost of data processing per hour; The optimization objective function of the workflow scheduling model is: in, is a constant; , is the coefficient weight, and its sum is 1; is the maximum task completion time of the virtual machine; is the resource utilization of the virtual machine; is the total processing cost of the virtual machine; The constraints of the workflow scheduling model are: in, When the value is 1, it indicates that the task Assigned to a virtual machine ; The value of 0 indicates that the task Not assigned to a virtual machine ; The maximum tolerance time for the application; is a positive integer valued variable.
5. A processing device, characterized in that: It includes computer program instructions, wherein when the computer program instructions are executed by a processing device, they are used to implement the steps corresponding to the cloud computing workflow scheduling method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, wherein the computer program instructions are used to implement the steps corresponding to the cloud computing workflow scheduling method according to any one of claims 1 to 3 when executed by the processor.
