Time constraint optimization cost scheduling method based on task grouping for face cloud computing cloud system

By grouping workflow tasks in cloud computing and prioritizing processing on the same device, combined with the dual scheduling solution, the problem of difficult workflow scheduling optimization in cloud computing is solved, and cost minimization and efficiency improvement under time constraints are achieved. .

CN118535292AInactive Publication Date: 2024-08-23EAST CHINA UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310160795.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-23
Publication Date
2024-08-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

It is difficult to optimize workflow scheduling in cloud computing, resulting in high costs due to improper use of resources, and low-performance virtual machines may cause workflow execution time to be too long and response speed to be slow.

Method used

Group workflow tasks and prioritize tasks in the same group to the same cloud device based on the dependencies between tasks to reduce transmission delays. A dual-scheduling solution is used to minimize costs and ensure time constraints.

Benefits of technology

It effectively reduces the cost and time complexity of cloud computing scheduling, improves application efficiency, reduces cost waste caused by unreasonable transmission time, and improves the scheduling success rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0004094067400000044
    Figure BDA0004094067400000044
  • Figure BDA0004094067400000052
    Figure BDA0004094067400000052
  • Figure FDA0004094067380000023
    Figure FDA0004094067380000023
Patent Text Reader

Abstract

The invention discloses a time constraint optimization cost scheduling method based on task grouping for a face cloud computing cloud system. The method comprises the steps of 1, producing corresponding workflow according to a user request; 2, calculating the longest distance between all tasks in the workflow and an exit task, and grouping according to the preparation time generated according to the task grouping condition and the key path length; 3, allocating sub-time constraints to the tasks according to the grouping condition of the tasks, and neglecting the transmission time of the tasks in the same group when the sub-time constraints are allocated; and 4, using a double-scheduling scheme, simultaneously considering grouping splitting and grouping as unit scheduling tasks, and selecting a better scheme as a scheduling result. According to the scheme, the use cost of cloud computing is reduced, meanwhile, it can be guaranteed that the workflow success rate is improved, and great significance is achieved for use of a cloud computing system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of computer software and cloud computing system resource management and task scheduling, and more specifically, is a time-constrained optimized cost scheduling method based on task grouping for a cloud computing system. Background Art

[0002] Cloud computing has been widely used due to the development of modern network and computer processing power. It can provide computing power, bandwidth and storage resources. The scientific and commercial fields gradually use cloud computing to replace traditional grid and cluster systems. The maintenance and configuration costs of traditional grid and cluster systems are often several times higher than cloud computing. However, the charging model of cloud computing will also bring certain difficulties to cloud users. For example, in the current hourly cloud computing payment model, there is often improper use of cloud resources, resulting in a large amount of time fragmentation in the rental time and usage time, which makes cloud users pay extra expenses. If cloud users choose too many low-performance virtual machines in pursuit of cost, it may cause the workflow execution time to be too long and the application response speed of cloud computing to slow down. In this context, the problem of workflow scheduling optimization has gradually received attention, not only because users' requirements for application response speed are gradually increasing and enterprises are pursuing policies to reduce costs and increase efficiency, but also because the scale of cloud computing workflows is gradually expanding, and the dependencies between tasks in the workflow become more complex, making it more difficult to find the optimal solution for workflow scheduling within a reasonable time.

[0003] One of the major features of cloud computing is that cloud providers can provide cloud users with nearly "unlimited" resources. Cloud users can obtain new cloud resource instances according to their needs. For each type of resource, such as virtual machines, users can rent hundreds or even thousands of them as long as they have enough funds. However, renting too many virtual machines does not necessarily guarantee that the workflow will be completed earlier. This is because there is a certain dependency between the tasks in the workflow, and the execution of some tasks requires the data processed by the previous tasks. If tasks are assigned to different virtual machines for processing, it may eventually cause the data transmission between tasks to take a lot of time. If tasks with dependencies are placed on the same virtual machine for processing, data can be transmitted using pipelines, shared files, messaging, etc., and the transmission time generated by this method can be almost negligible. Summary of the invention

[0004] In order to solve the problem of completing the workflow within the specified time and minimizing the cost, the present invention splits the workflow into multiple groups based on the dependencies between workflow tasks. The tasks in each group have a forward and backward dependency relationship. When dividing task time constraints and assigning tasks, priority is given to assigning tasks in the same group to the same cloud device as much as possible to reduce the transmission delay between tasks, thereby ensuring that the total scheduling cost is reduced without timeout of the workflow scheduling.

[0005] In order to achieve the above technical objectives, the technical solution adopted by the present invention is:

[0006] A time-constrained optimized cost scheduling method based on task grouping for cloud computing cloud systems comprises the following steps:

[0007] Step 1: Generate corresponding workflows for the large number of requests raised by cloud users. The workflow is represented by a directed acyclic graph (DAG), where nodes correspond to tasks, weighted edges correspond to dependencies and transmission data between tasks, and node values ​​correspond to the computational amount of the tasks.

[0008] Step 2: Calculate the longest distance between all tasks in the workflow and the exit task as the downward sorting value of the task, and initialize the upward preparation time of all tasks. The initial value of the preparation time is zero. Then group the tasks. Starting from the exit task, select the immediately executable tasks with the largest preparation time and downward sorting value and only the only parent task to add to the group. If there is no task that meets this condition, the grouping stage is started. Then update the preparation time of the subsequent tasks of all tasks in the group to the earliest executable time of the task. The preparation time in the same group will ignore the transmission time, and the preparation time in different groups needs to calculate the transmission time. Then take out the tasks in all groups from the workflow and start the next round of grouping again until there are no tasks in the workflow, that is, all tasks are assigned to the group.

[0009] Step three, assign sub-time constraints to tasks according to the grouping in step two. Before assigning time constraints, the downward sorting value of the task will be updated. During the update, the transmission time within the same group of tasks will be ignored. Then, the downward sorting value will be updated to assign time constraints. The larger the downward sorting value, the looser the time constraint.

[0010] Step 4: Schedule tasks in groups, use a dual scheduling scheme, consider both group splitting and group-based scheduling, select the better scheme as the scheduling result, give priority to the scheme that meets the time constraints and increases the cost the least, if all schemes will time out, select the scheduling method with the earliest completion time.

[0011] Preferably, in step 2, "selecting the immediately executable tasks with the largest preparation time and the largest downward sorting value from the exit task and having only one parent task and adding them to the group" means that the subtask meets the two conditions that the parent task execution time on the virtual machine plus the parent task preparation time is greater than or equal to the subtask preparation time and the other parent nodes of the subtask have been removed from the graph. The subtask that meets these two conditions can be executed immediately after the parent task is executed without being affected by other parent tasks.

[0012] Preferably, in step three, because tasks in a group are preferentially assigned to the same virtual machine during scheduling, the transmission delay in the group is ignored when calculating the time constraint.

[0013] Compared with the prior art, the present invention has the following advantages:

[0014] The present invention provides cloud computing users with a strategy to optimize the cost of renting cloud equipment under given time constraints. It makes full use of the relationship between tasks and groups the workflow. The grouping results will affect the allocation of time constraints to reduce the cost waste caused by unreasonable transmission time. Finally, a dual scheduling scheme is used to prevent the scheduling results from falling into local optimality due to excessive grouping particles. In the scheme with low time complexity, the cost of cloud computing scheduling and the success rate of scheduling are effectively reduced, which is of great significance to improving the application efficiency of cloud computing systems.

[0015] The present invention will be further described below in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 This is the overall flow chart of the invention

[0017] Figure 2 It is an algorithm for grouping workflows

[0018] Figure 3 This is an example diagram of workflow grouping

[0019] Figure 4 This is the cost comparison chart when the workflow size is 1000

[0020] Figure 5 The algorithm success rate comparison result DETAILED DESCRIPTION

[0021] The present invention is fully described and illustrated below in conjunction with the accompanying drawings in the embodiments of the present invention, and this embodiment does not limit the present invention.

[0022] 1. The directed acyclic graph model of cloud user request production is G = (T, E), where T = {t1, t2…t n} represents the task set in the workflow, node t i represents a task in cloud computing, and n represents the total number of tasks. i,j |t i ,t j ∈T} represents the data transmission and interdependence relationship between tasks, and the weight represents the transmission data size transdata between two tasks i,j . Weighted edge e i,j Limited task t j Before execution, task t iMust be executed to completion and all data must be transferred to task t j , in this case the task t i It is the task j The parent task of task t j Then it is task t i Only task t j All parent tasks of task t are completed. j Tasks deployed on the same virtual machine are transmitted using a file sharing system. In this mode, the transmission delay between parent and child tasks is considered zero, so task t j With the task j The transmission delay TT i,j The calculation formula is as follows

[0023]

[0024] The nodes without parent tasks and child tasks in the workflow are entry tasks t entry and export task t exit Generally, there is only one entry task t in a workflow. entry and an export task t exit In order to ensure that any workflow meets this feature, a pseudo entry task and an exit task will be added to the workflow. These two nodes are added at the beginning and end of the workflow respectively. The execution time of both nodes is 0. The pseudo entry task is connected to all nodes without parent tasks, and the pseudo exit task is connected to all nodes without child tasks. The edge weight of the connection is 0, that is, there is no data transmission.

[0025] Task i In the virtual machine instance j The earliest start time EST(t i ,instance j ) depends on the set of all its parent tasks pre(t i )'s earliest end time EFT and virtual machine instance j The actual available time avail(instance j ), the formula is as follows

[0026]

[0027] Virtual machine available time avail(instance j ) depends on the transfer end time of the last task on the virtual machine, st(t j ) represents task t jFor the currently assigned virtual machine, EFT represents the earliest end time of the task. The calculation formula is as follows:

[0028] EFT(t j ,st(t j ))=EST(t j ,st(t j ))+ET(t j ,st(t j ))

[0029] The virtual machine's lease start time LST (instance j ) and the virtual machine's lease end time KFT(instance j ) depends only on the virtual machine instance j The earliest start time EST and the earliest end time EFT of all tasks and the transmission time of the last task are as follows: The present invention is applicable to the cloud computing model with hourly billing mode, so the charging time of the virtual machine needs to be rounded up, and the virtual machine instance j The execution cost cost(instance j )for:

[0030] The scheduling results of this workflow can be used<I,ALLOCATION> To represent, I represents the set of rented virtual machines, ALLOCATION = {alloc1, alloc2…alloc m} represents the task execution status on the corresponding virtual machine. Each alloc= <t i ,instance j ,ST(t i ,instance j ),FT(t i ,instance j )> represents the task t i In the virtual machine instance j Executed on, starting time is ST(t i ,instance j ), the end time is FT(t i ,instance j ), so the end time of the workflow FT(G) is the latest end time of all tasks, the formula is as follows

[0031]

[0032] The total cost of the workflow, cost(G), depends on the sum of the costs of all rented virtual machines, as follows:

[0033]

[0034] D represents the deadline designed by the cloud user: The cost of optimizing the workflow under time constraints can be expressed as follows

[0035]

[0036] 2. Task grouping stage. The present invention proposes a grouping algorithm based on uprank and preparetime. The algorithm can retain the importance of tasks in the initial workflow and continuously update the preparetime index of tasks according to the current grouping situation. It will consider whether a task should be grouped when it has multiple parent tasks, reduce idle time fragmentation, and the uprank and preparetime index are closely related. (abbreviated as pt in subsequent formulas) The calculation formula is as follows

[0037]

[0038]

[0039] The value of α depends on the task t i and task t j Whether they are in the same group. If they are in the same group, it is 0, which means that the transmission delay between the two tasks is ignored. Otherwise, it is 1. Task grouping will give priority to the task with the largest sumrank. The formula is as follows

[0040] sumrank(t i )=uprank first (t i )+pt(t i )

[0041] The main process of the grouping algorithm based on uprank and preparetime is as follows: Each time the entry task t is set entry The current task Task is selected, and then the subtask nextTask with the largest sumrank is selected from the subtask set succ(Task) that meets the conditions and added to the current group CCP. At the same time, the preparetime of all subtasks is updated, and then the subtask is set as the current task to continue searching for the next task until there is no subtask that meets the conditions. The tasks in the current group CCP set (except the entry task t entry Remove it from the graph and start again from the entry task tentry Start searching for new group CCP until entry task t entry There are no subtasks. (The specific process is as follows Figure 2 shown).

[0042] Use below Figure 3 To demonstrate the grouping method, first Figure 3 (a) performs the first CCP division. Based on sumrank, we can see that the entry task entry The NextTask is task t2. Although the only child task of task t2 is task t4, condition 2 is not met, that is, the child task must have only one parent task. The parent tasks of task t4 are task t2 and task t3. Therefore, the CCP of the first grouping is 1→2. Task t2 is removed from the graph and the preparetime of task t4 is updated.

[0043] like Figure 3 (b) The second grouping starts from the entry task task entry The subtask that meets the condition is task t3, so task t3 is selected as NextTask. Task t3 has subtasks task t4 and task t5. Although the sum of preparetime and uprank of task t4 is greater than the sum of preparetime and uprank of task t5, the preparetime of task t4 is 40, while the sum of preparetime and execution time ET of task t3 is 15, which means that the execution end time of task t3 is 15, which makes task t4 not meet condition 1. When task t3 and task t4 are in the same group CCP, there will be idle time, so task t3 selects task t5 as NextTask, and the second group CCP is 3→5.

[0044] After removing tasks t3 and t5 from the graph, task t4 has no predecessor node, so the entry task task entry Add a pseudo edge with a weight of 0 between task t4, such as Figure 3 .2(c), the only remaining path in the graph is 1→4→6. Since task t6 is the exit task t exit Therefore, task t6 is removed, so there is only task t4 in the third group CCP. The remaining entry task task entry The only subsequent node is task t6, which is the export task t exit , remove task t4 and task t6 and then the entry task task entry No subtasks. At this point, the workflow G is split into multiple group CCPs and put into the group queue CCPs, and the exploration algorithm ends.

[0045] 3. In the time constraint calculation phase, time constraints are assigned based on grouping. First, the workflow is traversed from back to front, and the uprank of all tasks is calculated twice. The formula is as follows:

[0046]

[0047] The calculation of α is the same as preparetime. The transmission delay within the same packet CCP will be ignored. entry The uprank is used to obtain the length of the critical path CPL of the entire workflow, and the following is

[0048] CPL = uprank second (t entry )

[0049] After calculating the uprank of all tasks and the critical path length CPL, the time constraint deadline of each group CCP can be calculated by the uprank of the last task on each group CCP. The formula is as follows, where t lastTa1k (CCP i ) represents the last task on the i-th group CCP, and the formula is as follows

[0050] lastTaskUprank=uprank 1econd (t LastTask (CCP i ))

[0051]

[0052] This method of calculating the time constraint deadline can make the allocation result more accurate and reasonable, ensuring that the time constraint of a task will not be unable to be completed or wasted due to some excessively long transmission delays.

[0053] 4. Task scheduling stage. First, group CCPs are taken out from the divided group queues CCPs in order, and then the increased cost and end time based on group scheduling and split group scheduling are calculated. The increased cost refers to the sum of the increased costs of all virtual machines on the workflow after using the scheduling scheme. When using group scheduling, virtual machines that meet the time constraints of the group CCP and have the least increased cost are given priority, while group split scheduling is to split the group and schedule virtual machines one task at a time.

[0054] The experiments in this example mainly target typical cloud computing applications: Cybershake, Epigenomics, LIGO, and Montage. Figure 4 and Figure 5It is the result of comparing the PTCCP task scheduling scheme proposed in this patent with the existing IC-PCP, DCCP and ProLis algorithms. The time constraint D formula is as follows

[0055] D=HEFT(fastest)+(HEFT(slowest)-HEFT(fastest))×deadline factory

[0056] HEFT (fastest) means that the workflow is scheduled using the heft algorithm and only the fastest virtual machine is selected during scheduling. HEFT (slowest) means that all tasks in the workflow are scheduled to the slowest virtual machine using the heft method. Deadline factory represents the time factor. The smaller the deadline factory, the tighter the time constraint. It costs more to meet the time constraint D.

[0057] according to Figure 4 It can be seen that PTCCP has a significant improvement in cost. Compared with the second-ranked ProLis algorithm, the comprehensive cost of the four workflows is reduced by 34.16%, 2.27%, 10.0% and 2.86% respectively. Compared with DCCP and ICPCP, it is the better solution in all graphs. Figure 5 It also shows that PTCCP has a greater advantage in mission success rate.

[0058] The above is a preferred implementation of the present invention, but the protection scope of the present invention is not limited to this. The drawings and implementation expansions involved in this article directly or indirectly applied to related fields should be covered in the protection scope of the present invention, and the protection scope should be based on the protection scope of the claims.

Claims

1. A time-constrained optimization cost scheduling method based on task grouping for cloud computing systems. It is characterized in that The following steps are involved: Step 1: Generate corresponding workflows for a large number of requests from cloud users. The workflows are represented by directed acyclic graphs (DAGs), where nodes correspond to tasks, weighted edges correspond to dependencies and transmission data between tasks, and node values ​​correspond to the computational effort of tasks. Step 2: Calculate the longest distance between all tasks in the workflow and the exit task as the downward sorting value of the task, and initialize the upward preparation time of all tasks. The initial value of the preparation time is zero. Then group the tasks. Starting from the exit task, select the immediately executable tasks with the largest preparation time and downward sorting value and only the only parent task to add to the group. If there is no task that meets this condition, the grouping stage is started. Then update the preparation time of the subsequent tasks of all tasks in the group to the earliest executable time of the task. The preparation time in the same group will ignore the transmission time, and the preparation time in different groups needs to calculate the transmission time. Then take out the tasks in all groups from the workflow and start the next round of grouping again until there are no tasks in the workflow, that is, all tasks are assigned to the group. Step three, assign sub-time constraints to tasks according to the grouping in step two. Before assigning time constraints, the downward sorting value of the task will be updated. During the update, the transmission time within the same group of tasks will be ignored. Then, the downward sorting value will be updated to assign time constraints. The larger the downward sorting value, the looser the time constraint. Step 4: Schedule tasks in groups, use a dual scheduling scheme, consider both group splitting and group-based scheduling, select the better scheme as the scheduling result, give priority to the scheme that meets the time constraints and increases the cost the least, if all schemes will time out, select the scheduling method with the earliest completion time.

2. The method according to claim 1, Its characteristics are Step 1: Model the cloud data center as follows: The directed acyclic graph model of cloud user request production is G = (T, E), where T = {t 1 ,t 2 …t n } represents the task set in the workflow, node t i represents a task in cloud computing, and n represents the total number of tasks. i,j |t i ,t j ∈T} represents the data transmission and interdependence relationship between tasks, and the weight represents the transmission data size transdata between two tasks i,j . Weighted edge e i,j Limited task t j Before execution, task t i Must be executed to completion and all data must be transferred to task t j , in this case the task t i It is the task j The parent task of task t j Then it is task t i Only task t j All parent tasks of task t are completed. j Tasks deployed on the same virtual machine are transmitted using a file sharing system. In this mode, the transmission delay between parent and child tasks is considered zero, so task t j With the task j The transmission delay TT i,j The calculation formula is: Task i In the virtual machine instance j The earliest start time EST(t i ,instance j ) depends on the set of all its parent tasks pre(t i )'s earliest end time EFT and virtual machine instance j The actual available time avail(instance j ), the formula is as follows: Virtual machine available time avail(instance j ) depends on the transfer end time of the last task on the virtual machine, st(t j ) represents task t j For the currently assigned virtual machine, the calculation formula for EFT represents the earliest end time of the task is as follows: EFT(t j ,st(t j ))=EST(t j ,st(t j ))+ET(t j ,st(t j )) 3. The method according to claim 2, It is characterized in that The nodes without parent tasks and child tasks in the workflow are entry tasks t entry and export task t exie Generally, there is only one entry task t in a workflow. enery and an export task t exit In order to ensure that any workflow meets this feature, a pseudo entry task and an exit task will be added to the workflow. These two nodes are added at the beginning and end of the workflow respectively. The execution time of both nodes is 0. The pseudo entry task is connected to all nodes without parent tasks, and the pseudo exit task is connected to all nodes without child tasks. The edge weight of the connection is 0, that is, there is no data transmission.

4. According to the method of claim 1, the cloud computing cost model is as follows: The virtual machine's lease start time LST (instance j ) and the virtual machine's lease end time KFT(instance j ) depends only on the virtual machine instance j The earliest start time EST and the earliest end time EFT of all tasks and the transmission time of the last task are calculated as follows: The present invention is applicable to the cloud computing model with hourly billing mode, so the charging time of the virtual machine needs to be rounded up, and the virtual machine instance j The execution cost cost(instance j )for:

5. The method according to claim 1, wherein the optimization objective and constraints are as follows: The workflow scheduling results are used<I,ALLOCATION> To indicate, I represents the set of rented virtual machines, ALLOCATION = {alloc 1 ,alloc 2 …alloc m } represents the task execution status on the corresponding virtual machine. Each alloc= <t i ,instance j ,ST(t i ,instance j ),FT(t i ,instance j )> represents the task t i In the virtual machine instance j Executed on, starting time is ST(t i ,instance j ), the end time is FT(t i ,instance j ), so the end time of the workflow FT(G) is the latest end time of all tasks: The total cost of the workflow, cost(G), depends on the sum of the costs of all rented virtual machines: D represents the deadline designed by the cloud user: The cost of optimizing the workflow under time constraints can be expressed as follows: min.cost(G)