Scheduling system performance optimization method based on task instance dependency

By analyzing the dependencies and dependence strengths between task instances, constructing dependency graphs, and optimizing resource allocation, the problem of low resource utilization in the existing technology is solved, and the performance and stability of the task scheduling system are improved.

CN118331711BActive Publication Date: 2024-09-10北京科杰科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410748570.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-10
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

The existing task scheduling system does not fully consider the dependencies between tasks, resulting in low resource utilization. Tasks with low priority but large resource requirements cannot be executed for a long time, while tasks with high priority but small resource requirements are frequently executed. Occupying resources and causing low resource utilization.

Method used

By analyzing historical execution data between task instances, we build a dependency graph, identify actual dependencies and dependency strengths, and allocate resources based on this to ensure that key tasks receive sufficient resources. We also monitor and adjust resource allocation in real time during the execution process to optimize resources. Utilization.

Benefits of technology

It improves resource utilization, avoids task blocking, delay or failure, significantly improves the overall performance and stability of the system, ensures that tasks are executed in the correct order and priority, and reduces resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118331711B
    Figure CN118331711B
Patent Text Reader

Abstract

The present invention relates to the technical field of task scheduling, and in particular to a method for optimizing the performance of a scheduling system based on task instance dependency, the method comprising: analyzing historical execution data corresponding to a number of task instances, judging the actual dependency and actual dependency strength between the number of task instances according to the analysis results; allocating total computing resources according to the actual dependency and actual dependency strength, and obtaining an initial allocation result; executing according to the initial allocation result, monitoring and analyzing the state of computing resources allocated at runtime in real time, obtaining a state analysis result, adjusting the initial allocation result according to the state analysis result, and obtaining an adjusted allocation result; executing according to the adjusted allocation result, obtaining a number of actual execution results, comparing the actual execution results with the expected execution results, obtaining a comparison result, optimizing and adjusting the adjusted allocation result according to the comparison result, and obtaining an optimized allocation result. The present invention improves the utilization rate of computing resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of task scheduling, and in particular to a scheduling system performance optimization method based on task instance dependency. Background Art

[0002] With the rapid development of information technology, task scheduling systems have been widely used in various scenarios, such as cloud computing, big data analysis, machine learning, etc. In task scheduling systems, the execution of task instances is often affected by many factors, including the dependency between tasks, the allocation of computing resources, and the performance optimization of the system.

[0003] The patent document with Chinese patent application publication number CN117032993A discloses a task scheduling method, which adds four members, namely, average running time, average scheduling interval, task score and the number of scheduling times experienced by the task from being ready to being scheduled by the CPU, to the task description body of the task in the ready queue, assigns a task score based on the average running time, average scheduling interval and scheduling times, and determines the position of the task in the queue based on the task score.

[0004] The task scheduling method in the prior art is only based on the priority or arrival order of the task, but does not fully consider the dependency between tasks, resulting in some tasks that have high computing resource requirements but low priority not being executed for a long time, while some tasks with high priority but low resource requirements frequently occupy resources, resulting in low resource utilization. Summary of the invention

[0005] To this end, the present invention provides a scheduling system performance optimization method based on task instance dependencies, which can solve the problem of low resource utilization in the existing task scheduling system by rationally allocating computing resources through the dependencies between tasks, status data during the operation of task instances, actual execution results and execution dependency strength.

[0006] To achieve the above object, the present invention provides a scheduling system performance optimization method based on task instance dependency, the method comprising:

[0007] Analyze the historical execution data corresponding to several task instances, and determine the actual dependency relationship and actual dependency strength between the several task instances based on the analysis results;

[0008] Determine actual groups of the task instances according to the actual dependency relationship, determine priorities of the task instances in the actual groups according to the actual dependency strength, allocate total computing resources based on the actual groups and priorities, and obtain an initial allocation result;

[0009] Execute the initial allocation result, monitor the status data of the allocated computing resources in real time during the execution, analyze the real-time status data, obtain the status analysis result, adjust the initial allocation result according to the status analysis result, and obtain the adjusted allocation result;

[0010] Execute the adjusted allocation result to obtain several actual execution results, determine the execution dependency strength between the several task instances in the process of executing the adjusted allocation result, analyze the actual execution results and the execution dependency strength, optimize the adjusted allocation result according to the analysis result, and obtain the optimized allocation result.

[0011] Furthermore, the step of determining the actual dependency relationship and the actual dependency strength between the plurality of task instances according to the analysis result includes:

[0012] Obtaining historical execution data corresponding to a number of the task instances;

[0013] Constructing a dependency graph between the plurality of task instances according to the plurality of historical execution data;

[0014] Analyze the dependency graph, and obtain the actual dependency and the actual dependency strength according to the graph analysis result;

[0015] The historical execution data includes historical execution sequence, historical execution time and historical resource utilization.

[0016] Furthermore, the step of constructing a dependency graph between the plurality of task instances according to the plurality of historical execution data comprises:

[0017] Establish a rectangular coordinate system with execution time as the horizontal axis and resource utilization as the vertical axis;

[0018] Drawing a number of task instances in the rectangular coordinate system in the form of nodes according to the historical time and historical resource utilization rates corresponding to the number of task instances;

[0019] According to the historical execution order, the execution relationship between the plurality of task instances is determined, and the execution relationship is drawn in the rectangular coordinate system in the form of arrows to obtain the dependency graph.

[0020] Furthermore, the step of obtaining the actual dependency relationship and the actual dependency strength according to the graph analysis result includes:

[0021] Determine the actual dependency relationship according to the connection arrows of the dependency graph;

[0022] The dependency strength of any of the task instances is calculated according to the historical execution time and the historical resource utilization rate to obtain the actual dependency strength.

[0023] Furthermore, the step of determining the actual grouping of the plurality of task instances according to the actual dependency relationship comprises:

[0024] Determine a direct dependency relationship based on arrows directly connecting any two task instances in the dependency graph;

[0025] Traversing a plurality of the task instances in the dependency graph, and combining the task instances with direct dependencies as an initial group;

[0026] The repeated task instances in the initial grouping are deleted to obtain an actual grouping.

[0027] Furthermore, the step of allocating total computing resources based on a number of actual groups and priorities includes:

[0028] determining an amount of grouping resources required for any of said actual groupings;

[0029] Sort the actual groups according to the group resource amounts from large to small, calculate the ratio of the group resource amounts to the total computing resources, divide the total computing resources according to the ratio, and obtain the actual group computing resources;

[0030] The actual group computing resources are allocated according to the priority level to obtain the initial allocation result.

[0031] Furthermore, the step of real-time monitoring of the state data of the allocated computing resources during the execution process includes:

[0032] The state data of the computing resources during the operation of the task instances are collected in real time by a monitoring tool, wherein the real-time state data includes real-time memory usage and real-time CPU usage;

[0033] Calculate an average CPU usage rate based on the real-time CPU usage rates;

[0034] Extracting the maximum memory proportion among the real-time memory proportions;

[0035] Compare the average usage rate with a preset usage rate to obtain a usage rate comparison result;

[0036] The maximum memory ratio is compared with a preset ratio to obtain a ratio comparison result.

[0037] Furthermore, the step of adjusting the initial allocation result according to the state analysis result includes:

[0038] When the average usage rate is greater than the preset usage rate or the maximum memory share is greater than the preset share, the status of each running node executing the task instance is detected, and the detection result is obtained, the task instance on the overloaded node is split according to the detection result, and the running node is reallocated based on the split result to adjust the initial allocation result;

[0039] When the average usage rate is less than the preset usage rate or the maximum memory proportion is less than the preset proportion, idle computing resources are identified and reclaimed without adjusting the initial allocation result.

[0040] Furthermore, the step of executing the adjustment allocation result to obtain a number of actual execution results includes:

[0041] Obtaining the actual execution time through the start timestamp and end timestamp of any of the task instances;

[0042] Obtaining the actual resource utilization of any of the task instances through a monitoring tool;

[0043] Obtaining an error rate of any of the task instances through an application error tracking system;

[0044] The actual execution duration, the actual resource utilization rate and the error rate are taken as the actual execution result.

[0045] Furthermore, the step of analyzing the actual execution result and the execution dependency strength includes:

[0046] Calculate the task execution efficiency according to the actual execution time, the actual resource utilization rate and the error rate;

[0047] Determine a task instance corresponding to a maximum execution efficiency among the plurality of execution efficiencies as an observation instance;

[0048] The actual execution time and actual resource utilization of the observation instance are obtained, and the dependency strength of the observation instance is calculated according to the actual execution time and the actual resource utilization to obtain the execution dependency strength.

[0049] Compared with the prior art, the beneficial effect of the present invention lies in that, by identifying the actual dependencies and dependency strengths between task instances and making initial allocation of resources accordingly, it ensures that critical tasks obtain sufficient resources while preventing non-critical tasks from occupying too many resources. During the execution process, dynamic adjustments are made based on the results of real-time monitoring and analysis to further improve resource utilization and avoid resource waste. Resource allocation is performed based on the dependencies of task instances to ensure that tasks are executed in the correct order and priority, thereby avoiding task blocking, delays or failures caused by insufficient or improper resource allocation, significantly improving the overall performance and stability of the system, and evaluating the effectiveness of the current resource allocation strategy by comparing the actual execution results with the expected execution results, and optimizing and adjusting according to the comparison results to improve resource utilization.

[0050] In particular, by acquiring and analyzing the historical execution data of task instances, the actual dependencies and dependency strengths between task instances can be accurately identified, accurately reflecting the dependencies of the system during actual runtime. The dependency graph constructed based on the sorted historical execution data can intuitively display the dependencies between task instances, which helps to quickly understand complex dependency networks and provide strong support for subsequent resource allocation and scheduling decisions. By analyzing the dependency graph, the actual dependency strength between task instances can be obtained. Quantitative evaluation helps to more accurately understand the degree of dependency between different task instances, provide a more scientific basis for resource allocation, and improve resource utilization.

[0051] In particular, the dependency graph allows us to intuitively see the dependencies between task instances, including which tasks need to be executed after other tasks are completed, and the order of their execution, which helps us quickly understand the complex task execution process. In the rectangular coordinate system, the node position of each task instance reflects its historical execution time and resource utilization, so that the resource usage is quantified, which is convenient for analyzing which tasks use more resources and which tasks may have room for optimization in resource usage. The dependency graph allows us to clearly see the dependencies and resource usage between tasks, thus providing an accurate basis for the reasonable allocation of resources. For critical tasks with high resource consumption, more resources are allocated to ensure their smooth execution, while for tasks with low resource consumption and simple dependencies, resource allocation is appropriately reduced to improve overall resource utilization. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 A schematic diagram of a process flow of a scheduling system performance optimization method based on task instance dependency provided by an embodiment of the present invention;

[0053] Figure 2A schematic diagram of a flow chart for determining actual dependency and actual dependency strength of a scheduling system performance optimization method based on task instance dependency provided in an embodiment of the present invention;

[0054] Figure 3 A dependency graph of a scheduling system performance optimization method based on task instance dependency provided by an embodiment of the present invention;

[0055] Figure 4 A schematic diagram of a preliminary allocation flow of a scheduling system performance optimization method based on task instance dependency provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0056] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0057] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0058] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be understood as a limitation on the present invention.

[0059] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0060] See also Figure 1 As shown, an embodiment of the present invention provides a scheduling system performance optimization method based on task instance dependency, the method comprising:

[0061] Step S100, analyzing the historical execution data corresponding to the plurality of task instances, and determining the actual dependency relationship and actual dependency strength between the plurality of task instances according to the analysis result;

[0062] Step S200, determining actual groups of the task instances according to the actual dependency relationship, determining priorities of the task instances in the actual groups according to the actual dependency strength, allocating total computing resources based on the actual groups and priorities, and obtaining an initial allocation result;

[0063] Step S300, executing the initial allocation result, and monitoring the state data of the allocated computing resources in real time during the execution process, analyzing the real-time state data, obtaining a state analysis result, and adjusting the initial allocation result according to the state analysis result to obtain an adjusted allocation result;

[0064] Step S400, execute the adjusted allocation result to obtain several actual execution results, determine the execution dependency strength between several task instances in the process of executing the adjusted allocation result, analyze the actual execution results and the execution dependency strength, optimize the adjusted allocation result according to the analysis result, and obtain the optimized allocation result.

[0065] Specifically, the embodiments of the present invention identify the actual dependencies and dependency strengths between task instances, and make initial allocation of resources accordingly, thereby ensuring that critical tasks obtain sufficient resources and preventing non-critical tasks from occupying too many resources. During the execution process, dynamic adjustments are made based on the results of real-time monitoring and analysis to further improve resource utilization and avoid resource waste. Resource allocation is performed based on the dependencies of task instances to ensure that tasks are executed in the correct order and priority, thereby avoiding task blocking, delays or failures caused by insufficient or improper resource allocation, significantly improving the overall performance and stability of the system, and evaluating the effectiveness of the current resource allocation strategy by comparing the actual execution results with the expected execution results, and optimizing and adjusting according to the comparison results to improve resource utilization.

[0066] See also Figure 2 As shown, the step of determining the actual dependency relationship and the actual dependency strength between the plurality of task instances according to the analysis result includes:

[0067] Step S110, obtaining historical execution data corresponding to a number of the task instances;

[0068] Step S120, constructing a dependency graph between the plurality of task instances according to the plurality of historical execution data;

[0069] Step S130, analyzing the dependency graph, and obtaining the actual dependency and the actual dependency strength according to the graph analysis result;

[0070] The historical execution data includes historical execution sequence, historical execution time and historical resource utilization.

[0071] Specifically, the historical execution data collection duration in the embodiment of the present invention is the historical duration of execution completion of several task instances.

[0072] Specifically, the embodiments of the present invention obtain and analyze the historical execution data of task instances, accurately identify the actual dependency and dependency strength between task instances, accurately reflect the dependency situation of the system during actual operation, and intuitively display the dependency between task instances based on the dependency graph constructed according to the sorted historical execution data, which helps to quickly understand the complex dependency network and provide strong support for subsequent resource allocation and scheduling decisions. By analyzing the dependency graph, the actual dependency strength between task instances is obtained, and quantitative evaluation helps to more accurately understand the degree of dependency between different task instances, provide a more scientific basis for resource allocation, and improve resource utilization.

[0073] Specifically, the historical execution data described in the embodiment of the present invention can be obtained through the execution log of the historical task embodiment.

[0074] Specifically, one possible way to organize some historical execution data is as follows:

[0075]

[0076] Specifically, the historical resource utilization is the actual usage of the total computing resources of any of the task instances during the historical execution process, and can be obtained by dividing the actual usage amount by the total amount of total computing resources.

[0077] Specifically, the step of constructing a dependency graph between the plurality of task instances according to the plurality of historical execution data comprises:

[0078] Establish a rectangular coordinate system with execution time as the horizontal axis and resource utilization as the vertical axis;

[0079] Drawing a number of task instances in the rectangular coordinate system in the form of nodes according to the historical time and historical resource utilization rates corresponding to the number of task instances;

[0080] According to the historical execution order, the execution relationship between the plurality of task instances is determined, and the execution relationship is drawn in the rectangular coordinate system in the form of arrows to obtain the dependency graph.

[0081] See also Figure 3 FIG. 1 is a possible representation of a dependency graph according to an embodiment of the present invention.

[0082] Specifically, the embodiment of the present invention uses a dependency graph to intuitively see the dependencies between task instances, including which tasks need to be executed after other tasks are completed, and the execution order between them, which helps to quickly understand complex task execution processes. In the rectangular coordinate system, the node position of each task instance reflects its historical execution time and resource utilization, so that the resource usage is quantified, which is convenient for analyzing which tasks use more resources and which tasks may have room for optimization in resource usage. Through the dependency graph, the dependencies and resource usage between tasks can be clearly seen, thereby providing an accurate basis for the reasonable allocation of resources. For critical tasks with high resource consumption, more resources are allocated to ensure their smooth execution, and for tasks with low resource consumption and simple dependencies, resource allocation is appropriately reduced to improve overall resource utilization.

[0083] Specifically, the step of obtaining the actual dependency relationship and the actual dependency strength according to the graph analysis result includes:

[0084] Determine the actual dependency relationship according to the connection arrows of the dependency graph;

[0085] The dependency strength of any of the task instances is calculated according to the historical execution time and the historical resource utilization rate to obtain the actual dependency strength.

[0086] Specifically, the actual dependency strength described in the embodiment of the present invention = α × historical execution time + β × historical resource utilization, where α and β are preset weight coefficients, α + β = 1, which can be set according to actual conditions to balance the impact of historical execution time and historical resource utilization on the actual dependency strength. For example, when you want to focus more on historical execution time, you can set α to a larger value and β to a smaller value; when you want to focus more on historical resource utilization, you can set β to a larger value and α to a smaller value.

[0087] Specifically, the embodiments of the present invention clearly identify the dependencies between tasks through the connecting arrows of the dependency graph, thereby avoiding confusion or duplication of work in project management, helping to arrange the execution order of tasks more reasonably, ensuring that tasks on the critical path are given priority, thereby shortening the project cycle, and the dependency strength calculated based on historical execution time and resource utilization reflects the actual degree of dependency between tasks, which helps to allocate resources more accurately, ensure that critical tasks are adequately supported, and improve the utilization of computing resources.

[0088] Specifically, the step of determining the actual grouping of the plurality of task instances according to the actual dependency relationship comprises:

[0089] Determine a direct dependency relationship based on arrows directly connecting any two task instances in the dependency graph;

[0090] Traversing a plurality of the task instances in the dependency graph, and combining the task instances with direct dependencies as an initial group;

[0091] The repeated task instances in the initial grouping are deleted to obtain an actual grouping.

[0092] Specifically, the direct dependency described in the embodiment of the present invention is that one task must be executed after another task, and the indirect dependency is that one task is executed after multiple other tasks.

[0093] See also Figure 4 As shown, the step of allocating total computing resources based on a number of actual groups and priorities includes:

[0094] Step S210, determining the amount of grouping resources required for any of the actual groups;

[0095] Step S220, sorting the actual groups from large to small according to the group resource amounts, calculating the ratio of the group resource amounts to the total computing resources, dividing the total computing resources according to the ratio, and obtaining the actual group computing resources;

[0096] Step S230: Allocate the actual group computing resources according to the priority level to obtain the initial allocation result.

[0097] Specifically, the allocation of the actual group computing resources according to the priority described in the embodiment of the present invention can be an allocation method for determining that the operating resources corresponding to the embodiment with a high priority are sufficient, and the operating resources corresponding to the embodiment with a low priority are allocated through the remaining resources.

[0098] Specifically, the embodiments of the present invention ensure that computing resources are reasonably allocated by determining the amount of group resources required for each actual group and sorting the actual groups according to the amount of resources, thereby helping to improve the overall operating efficiency of the system. The resources are divided according to the proportion of the group resources to the total amount of computing resources to ensure that each actual group obtains computing resources that match its needs, thereby avoiding waste and uneven distribution of resources. Resources are allocated according to priority to ensure that high-priority tasks or actual groups can obtain computing resources first, so that the system can better cope with scenarios with different priority requirements, thereby improving the operating efficiency of the system and reducing idle and waste resources.

[0099] Specifically, the step of real-time monitoring of the state data of the allocated computing resources during the execution process includes:

[0100] The state data of the computing resources during the operation of the task instances are collected in real time by a monitoring tool, wherein the real-time state data includes real-time memory usage and real-time CPU usage;

[0101] Calculate an average CPU usage rate based on the real-time CPU usage rates;

[0102] Extracting the maximum memory proportion among the real-time memory proportions;

[0103] Compare the average usage rate with a preset usage rate to obtain a usage rate comparison result;

[0104] The maximum memory ratio is compared with a preset ratio to obtain a ratio comparison result.

[0105] Specifically, the monitoring tool described in the embodiment of the present invention may be Prometheus or Grafana.

[0106] Specifically, the step of adjusting the initial allocation result according to the state analysis result includes:

[0107] When the average usage rate is greater than the preset usage rate or the maximum memory share is greater than the preset share, the status of each running node executing the task instance is detected, and the detection result is obtained, the task instance on the overloaded node is split according to the detection result, and the running node is reallocated based on the split result to adjust the initial allocation result;

[0108] When the average usage rate is less than the preset usage rate or the maximum memory proportion is less than the preset proportion, idle computing resources are identified and reclaimed without adjusting the initial allocation result.

[0109] Specifically, the preset usage rate in the embodiment of the present invention is the average of historical CPU usage rates;

[0110] The preset proportion is 2 / 3 of the total memory of the execution system.

[0111] Specifically, the step of splitting the task instance on the overloaded node according to the detection result in the embodiment of the present invention includes:

[0112] Determine the task instances running on the overloaded node based on the detection results, and obtain the current execution progress of each task instance;

[0113] Split the task instance on the overloaded node into several subtask instances according to the current execution progress of each task instance;

[0114] Based on the split results, the subtask instances are allocated to other nodes that are not overloaded.

[0115] Specifically, the step of splitting a task instance on an overloaded node into a plurality of subtask instances according to the current execution progress of each task instance in the embodiment of the present invention includes:

[0116] Analyze the logical structure of the task instance on the overloaded node, and determine the partition node according to the logical structure analysis result;

[0117] Identify the currently completed and unfinished parts based on the current execution progress;

[0118] The unfinished part is divided according to the division nodes to obtain a number of subtask instances.

[0119] Specifically, a task instance of an embodiment of the present invention may be a project including multiple steps or modules, and its logical structure is a number of steps or modules. The end points of the steps or modules can be used as division nodes based on the results of the logical structure analysis.

[0120] Specifically, a possible allocation method for allocating subtask instances to other non-overloaded nodes based on the splitting results described in an embodiment of the present invention is to match the remaining resource space at other non-overloaded nodes with the resource requirement space of the subtask instances, and select the node whose remaining resource space is greater than the resource requirement space and whose difference between the remaining resource space and the resource requirement space is the smallest as the allocation node.

[0121] Specifically, the embodiment of the present invention effectively alleviates the pressure of overloaded nodes and improves the utilization rate of overall resources by splitting and reallocating task instances, while ensuring the smooth execution of tasks.

[0122] Specifically, the step of executing the adjustment allocation result to obtain a number of actual execution results includes:

[0123] Obtaining the actual execution time through the start timestamp and end timestamp of any of the task instances;

[0124] Obtaining the actual resource utilization of any of the task instances through a monitoring tool;

[0125] Obtaining an error rate of any of the task instances through an application error tracking system;

[0126] The actual execution duration, the actual resource utilization rate and the error rate are taken as the actual execution result.

[0127] Specifically, the monitoring tools in the embodiment of the present invention may be Prometheus and Zabbix;

[0128] The application error tracking system may be Sentry.

[0129] Specifically, the step of analyzing the actual execution result and the execution dependency strength includes:

[0130] Calculate the task execution efficiency according to the actual execution time, the actual resource utilization rate and the error rate;

[0131] The actual execution time and actual resource utilization of several of the task instances are obtained, and the dependency strength of the observed instances is calculated according to the actual execution time and the actual resource utilization to obtain the execution dependency strength.

[0132] Specifically, the task execution efficiency described in the embodiment of the present invention=1 / (the actual execution time×the actual resource utilization rate×(1-the error rate)).

[0133] Specifically, the step of optimizing and adjusting the adjustment allocation result according to the analysis result in the embodiment of the present invention includes:

[0134] Calculate the average of several execution efficiencies to obtain the average efficiency;

[0135] The mean efficiency is compared with the preset efficiency. When the mean efficiency is less than the preset efficiency, the priority of the task instance execution is determined according to the execution dependency intensity, and the adjusted allocation result is optimized according to the priority to obtain the optimized allocation result.

[0136] Specifically, the preset efficiency described in the embodiment of the present invention is the average of historical execution efficiencies.

[0137] Specifically, the embodiment of the present invention determines the priority of task instance execution according to the execution dependency strength, such that a task instance with a high execution dependency strength has a high priority.

[0138] Specifically, the embodiment of the present invention can optimize the adjustment allocation result according to the priority by:

[0139] Analyze the current task instance allocation results, determine the task execution efficiency of each node, and mark the nodes with efficiency less than the preset efficiency as nodes to be optimized;

[0140] Identifying a task instance on the node to be optimized as the task instance to be optimized;

[0141] Determining an optimization order based on the priority of the task instance to be optimized;

[0142] The reallocation is performed based on the optimization order and the execution efficiency of the remaining nodes except the node to be optimized, so that the execution efficiency of the node after the allocation is maximized and the execution efficiency is greater than the preset efficiency.

[0143] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

[0144] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A scheduling system performance optimization method based on task instance dependency, It is characterized in that include: Analyze the historical execution data corresponding to several task instances, and determine the actual dependency relationship and actual dependency strength between the several task instances based on the analysis results; The step of determining the actual dependency relationship and the actual dependency strength between the plurality of task instances according to the analysis result comprises: Obtaining historical execution data corresponding to a number of the task instances; Constructing a dependency graph between the plurality of task instances according to the plurality of historical execution data; Analyze the dependency graph, and obtain the actual dependency and the actual dependency strength according to the graph analysis result; The historical execution data includes historical execution order, historical execution time and historical resource utilization; The step of obtaining the actual dependency relationship and the actual dependency strength according to the graphic analysis result comprises: Determine the actual dependency relationship according to the connection arrows of the dependency graph; Calculate the dependency strength of any of the task instances according to the historical execution time and the historical resource utilization rate to obtain the actual dependency strength; Determine actual groups of the task instances according to the actual dependency relationship, determine priorities of the task instances in the actual groups according to the actual dependency strength, allocate total computing resources based on the actual groups and priorities, and obtain an initial allocation result; The step of determining the actual grouping of the plurality of task instances according to the actual dependency relationship comprises: Determine a direct dependency relationship based on arrows directly connecting any two task instances in the dependency graph; Traversing a plurality of the task instances in the dependency graph, and combining the task instances with direct dependencies as an initial group; Deleting the repeated task instances in the initial grouping to obtain an actual grouping; Execute the initial allocation result, monitor the status data of the allocated computing resources in real time during the execution, analyze the real-time status data, obtain the status analysis result, adjust the initial allocation result according to the status analysis result, and obtain the adjusted allocation result; Execute the adjusted allocation result to obtain several actual execution results, determine the execution dependency strength between the several task instances in the process of executing the adjusted allocation result, analyze the actual execution results and the execution dependency strength, optimize the adjusted allocation result according to the analysis result, and obtain the optimized allocation result.

2. The method for optimizing the performance of a scheduling system based on task instance dependencies according to claim 1, It is characterized in that The step of constructing a dependency graph between the plurality of task instances according to the plurality of historical execution data comprises: Establish a rectangular coordinate system with execution time as the horizontal axis and resource utilization as the vertical axis; Drawing a number of task instances in the rectangular coordinate system in the form of nodes according to the historical time and historical resource utilization rates corresponding to the number of task instances; According to the historical execution order, the execution relationship between the plurality of task instances is determined, and the execution relationship is drawn in the rectangular coordinate system in the form of arrows to obtain the dependency graph.

3. The method for optimizing the performance of a scheduling system based on task instance dependencies according to claim 2, It is characterized in that The step of allocating total computing resources based on a number of actual groupings and priorities comprises: determining an amount of grouping resources required for any of said actual groupings; Sort the actual groups according to the group resource amounts from large to small, calculate the ratio of the group resource amounts to the total computing resources, divide the total computing resources according to the ratio, and obtain the actual group computing resources; The actual group computing resources are allocated according to the priority level to obtain the initial allocation result.

4. The method for optimizing the performance of a scheduling system based on task instance dependencies according to claim 3, It is characterized in that The step of real-time monitoring of the state data of the allocated computing resources during the execution process comprises: The state data of the computing resources during the operation of the task instances are collected in real time by a monitoring tool, wherein the real-time state data includes real-time memory usage and real-time CPU usage; Calculate an average CPU usage rate based on the real-time CPU usage rates; Extracting the maximum memory proportion among the real-time memory proportions; Compare the average usage rate with a preset usage rate to obtain a usage rate comparison result; The maximum memory ratio is compared with a preset ratio to obtain a ratio comparison result.

5. The method for optimizing the performance of a scheduling system based on task instance dependencies according to claim 4, It is characterized in that The step of adjusting the initial allocation result according to the state analysis result comprises: When the average usage rate is greater than the preset usage rate or the maximum memory share is greater than the preset share, the status of each running node executing the task instance is detected, and the detection result is obtained, the task instance on the overloaded node is split according to the detection result, and the running node is reallocated based on the split result to adjust the initial allocation result; When the average usage rate is less than the preset usage rate or the maximum memory proportion is less than the preset proportion, idle computing resources are identified and reclaimed without adjusting the initial allocation result.

6. The method for optimizing the performance of a scheduling system based on task instance dependencies according to claim 5, It is characterized in that The step of executing the adjustment allocation result to obtain a number of actual execution results comprises: Obtaining the actual execution time through the start timestamp and end timestamp of any of the task instances; Obtaining the actual resource utilization of any of the task instances through a monitoring tool; Obtaining an error rate of any of the task instances through an application error tracking system; The actual execution duration, the actual resource utilization rate and the error rate are taken as the actual execution result.

7. The method for optimizing the performance of a scheduling system based on task instance dependencies according to claim 6, It is characterized in that The step of analyzing the actual execution result and the execution dependency strength comprises: Calculate the task execution efficiency according to the actual execution time, the actual resource utilization rate and the error rate; Determine a task instance corresponding to a maximum execution efficiency among the plurality of execution efficiencies as an observation instance; The actual execution time and actual resource utilization of the observation instance are obtained, and the dependency strength of the observation instance is calculated according to the actual execution time and the actual resource utilization to obtain the execution dependency strength.