A data processing task scheduling method based on dynamic adjustment strategy

By adopting dynamic adjustment strategies in data processing task scheduling, unified management of resource groups, and dynamic generation of task scheduling results based on historical data, the problem of relationship management between different types of tasks and low resource utilization is solved, and timely task execution and resource utilization are achieved. Optimize utilization.

CN118642831BActive Publication Date: 2024-10-18SICHUAN GUOLAN ZHONGTIAN ENVIRONMENTAL TECH GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411120384.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-10-18
Estimated Expiration
2044-08-15

AI Technical Summary

Technical Problem

Existing data processing task scheduling methods cannot effectively manage the complex relationships and execution sequences between different types of tasks, resulting in low computing resource utilization and task execution failure.

Method used

A method based on dynamic adjustment strategies is used to uniformly manage resource groups. Based on the resource consumption data and available data of historical workflows, the task scheduling results of the workflow to be rerun are dynamically generated to ensure timely execution of tasks and optimize resource utilization.

Benefits of technology

It realizes unified management of different resources in different resource groups, dynamically generates task scheduling results, improves task execution efficiency and resource utilization, and ensures timely execution of tasks and full utilization of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642831B_ABST
    Figure CN118642831B_ABST
Patent Text Reader

Abstract

The present invention discloses a data processing task scheduling method based on a dynamic adjustment strategy, and relates to the field of data processing task scheduling. The method comprises the following steps: obtaining resource group consumption data and resource group available data of historical workflows; screening the resource group consumption data of historical workflows to obtain resource group consumption data of the workflow to be rerun; generating task scheduling results of the workflow to be rerun based on the resource group available data and the resource group consumption data of the workflow to be rerun, based on the dynamic adjustment strategy, so as to schedule data processing tasks for the workflow to be rerun. The present invention manages resource groups in a unified manner, and can dynamically generate and adjust task scheduling results of the workflow to be rerun according to different types of tasks and system resources in the workflow, so as to ensure timely execution of tasks and optimize resource utilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing task scheduling, and in particular to a data processing task scheduling method based on a dynamic adjustment strategy. Background Art

[0002] With the rapid development of information technology, data processing and computing tasks are increasingly used in all walks of life. When processing large amounts of data, the task scheduler plays a vital role in allocating and scheduling computing resources to execute tasks in a timely manner. However, in practical applications, due to the dynamic changes in computing resources and the complexity of computing tasks, low computing resource utilization and task execution failures often occur.

[0003] The existing data processing task scheduling methods can improve the operating efficiency and resource utilization of distributed systems to a certain extent, but their objects are tasks of a single task type, and they do not consider the different types of tasks, the complex relationships and execution order between different types of tasks, and lack unified management of different resource groups. Therefore, it is necessary to design a method to achieve efficient management and scheduling of different types of tasks. Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a data processing task scheduling method based on a dynamic adjustment strategy, which manages resource groups in a unified manner and can dynamically generate and adjust the task scheduling results of the workflow to be rerun according to different types of tasks and system resources in the workflow, so as to ensure timely execution of tasks and optimize resource utilization.

[0005] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:

[0006] A data processing task scheduling method based on a dynamic adjustment strategy comprises the following steps:

[0007] S1. Obtain resource group consumption data and resource group available data of historical workflows;

[0008] S2. Filter the resource group consumption data of the historical workflow in step S1 to obtain the resource group consumption data of the workflow to be rerun;

[0009] S3. According to the resource group available data in step S1 and the resource group consumption data of the workflow to be rerun in step S2, based on the dynamic adjustment strategy, generate the task scheduling result of the workflow to be rerun, so as to schedule the data processing task for the workflow to be rerun.

[0010] Furthermore, in step S1, the workflow includes Spark tasks, Python tasks, and DataX tasks arranged in an execution order.

[0011] Further, in step S1, the resource group includes a first resource group for running Spark tasks, a second resource group for running Python tasks, and a third resource group for running DataX tasks.

[0012] Furthermore, the first resource group, the second resource group and the third resource group all include CPU core resources and memory resources.

[0013] Further, step S3 includes the following steps:

[0014] S31, constructing an initial scheduling model for the workflow to be rerun based on a dynamic adjustment strategy according to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2;

[0015] S32. Generate a task scheduling result of the workflow to be rerun according to the initial scheduling model of the workflow to be rerun in step S31, so as to schedule data processing tasks for the workflow to be rerun.

[0016] Further, step S31 includes the following steps:

[0017] S311, according to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, based on the dynamic adjustment strategy, construct a first resource group memory model of the workflow to be rerun, expressed as:

[0018]

[0019] in: For the The workflow to be rerun is in The memory consumption value of the first resource group in a period of time, The number of the workflow to be rerun. is the total number of workflows to be rerun, is the time period number, For the The available value of the memory in the first resource group within a time period;

[0020] S312: According to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, a second resource group memory model of the workflow to be rerun is constructed based on a dynamic adjustment strategy, which is expressed as:

[0021]

[0022] in: For the The workflow to be rerun is in The memory consumption value of the second resource group in a period of time, For the The available value of the memory in the second resource group within a time period;

[0023] S313: According to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, a third resource group memory model of the workflow to be rerun is constructed based on a dynamic adjustment strategy, which is expressed as:

[0024]

[0025] in: For the The workflow to be rerun is in The memory consumption value of the third resource group in a period of time, For the The available value of the memory in the third resource group within a time period;

[0026] S314: According to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, a CPU core model of the first resource group of the workflow to be rerun is constructed based on a dynamic adjustment strategy, which is expressed as:

[0027]

[0028] in: For the The workflow to be rerun is in The consumption value of the CPU cores in the first resource group in a period of time, For the The available value of the CPU cores in the first resource group in a time period;

[0029] S315: According to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, a CPU core model of the second resource group of the workflow to be rerun is constructed based on a dynamic adjustment strategy, which is expressed as:

[0030]

[0031] in: For the The workflow to be rerun is in The consumption value of the CPU cores in the second resource group in a period of time, For the The available value of the CPU cores in the second resource group in a time period;

[0032] S316: According to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, a CPU core model of the third resource group of the workflow to be rerun is constructed based on a dynamic adjustment strategy, which is expressed as:

[0033]

[0034] in: For the The workflow to be rerun is in The consumption value of the CPU cores in the third resource group in a period of time, For the The available value of CPU cores in the third resource group in a time period;

[0035] S317. Construct an initial scheduling model for the workflow to be rerun based on the first resource group memory model of the workflow to be rerun in step S311, the second resource group memory model of the workflow to be rerun in step S312, the third resource group memory model of the workflow to be rerun in step S313, the first resource group CPU core model of the workflow to be rerun in step S314, the second resource group CPU core model of the workflow to be rerun in step S315 and the third resource group CPU core model of the workflow to be rerun in step S316.

[0036] Further, step S32 includes the following steps:

[0037] S321, according to the initial scheduling model of the workflow to be rerun in step S31, obtain a set of numbers of the workflows to be rerun of different resources in different resource groups;

[0038] S322, according to the set of numbers of the to-be-rerun workflows of different resources in different resource groups in step S321, obtain a set of numbers of the executable to-be-rerun workflows;

[0039] S323. Generate a task scheduling result for the workflow to be rerun according to the set of executable workflow numbers to be rerun in step S322, so as to schedule data processing tasks for the workflow to be rerun.

[0040] Further, in step S321, according to the initial scheduling model of the workflow to be rerun in step S31, a set of workflow number to be rerun for different resources in different resource groups is obtained, specifically: according to the initial scheduling model of the workflow to be rerun, six sub-models in the initial scheduling model of the workflow to be rerun are calculated respectively, the workflow to be rerun that satisfies each sub-model is numbered, and the number is used as a set element to construct a set, multiple sets in each sub-model are obtained, and the multiple sets in each sub-model are respectively subjected to subset elimination operation to obtain a set of workflow number to be rerun for different resources in different resource groups.

[0041] Further, step S322 includes the following steps:

[0042] S3221. According to the set of numbers of the to-be-rerun workflows of different resources in different resource groups, select, arrange, combine, calculate intersections, and eliminate subsets of the sets of different resources in the same resource group to obtain a set of numbers of the to-be-rerun workflows that satisfies both the memory resources and the CPU core resources in the resource group.

[0043] S3222. According to the set of workflow numbers to be rerun that simultaneously satisfy the memory resources and CPU core resources in the resource group in step S3221, select, arrange, combine and calculate the intersection of the sets in different resource groups to obtain a set of executable workflow numbers to be rerun.

[0044] Further, in step S323, based on the set of executable workflow numbers to be rerun in step S322, a task scheduling result for the workflow to be rerun is generated. The specific process is: based on the set of executable workflow numbers to be rerun in step S322, a set of executable workflow numbers to be rerun with the largest number of elements in the set is selected, and it is generated as the task scheduling result for the workflow to be rerun.

[0045] The present invention has the following beneficial effects:

[0046] (1) The present invention obtains the resource group consumption data of the workflow to be rerun by screening the resource group consumption data of the historical workflow, and generates the task scheduling result of the workflow to be rerun based on the dynamic adjustment strategy according to the resource group available data and the resource group consumption data of the workflow to be rerun. This process realizes the unified management of different resources in different resource groups, and can dynamically generate the task scheduling result of the workflow to be rerun according to different types of tasks and system resources in the workflow, so as to ensure the timely execution of tasks and optimize resource utilization;

[0047] (2) When generating the task scheduling result of the workflow to be rerun based on the set of executable workflow numbers to be rerun, the present invention selects the set of executable workflow numbers to be rerun with the largest number of elements in the set and generates it as the task scheduling result of the workflow to be rerun. When the task scheduling result of the workflow to be rerun is executed, more workflows can be executed within the time period. This not only improves the execution efficiency, but also makes full use of computing resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 The figure is a flowchart of a data processing task scheduling method based on a dynamic adjustment strategy. DETAILED DESCRIPTION

[0049] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0050] like Figure 1 As shown, a data processing task scheduling method based on a dynamic adjustment strategy includes steps S1-S3, which are as follows:

[0051] S1. Obtain resource group consumption data and resource group available data of historical workflows.

[0052] In an optional embodiment of the present invention, the workflow includes Spark tasks, Python tasks, and DataX tasks arranged in an execution order.

[0053] The resource groups include a first resource group for running a Spark task, a second resource group for running a Python task, and a third resource group for running a DataX task.

[0054] The first resource group, the second resource group and the third resource group all include CPU core resources and memory resources.

[0055] The present invention divides the resource group data of the historical workflow according to the granularity of 1 hour to obtain the resource group consumption data and resource group available data of the historical workflow. The resource group consumption data of the historical workflow includes The workflow to be rerun is in The memory consumption value of the first resource group in a period of time , No. The workflow to be rerun is in The memory consumption value of the second resource group in a period of time , No. The workflow to be rerun is in The memory consumption value of the third resource group in a period of time , No. The workflow to be rerun is in The consumption value of the CPU cores in the first resource group in a period of time , No. The workflow to be rerun is in The consumption value of the CPU cores in the second resource group and the The workflow to be rerun is in The consumption value of the CPU cores in the third resource group in a period of time The available data for resource groups includes The available value of memory in the first resource group during the period , No. The available value of memory in the second resource group during the period , No. The available value of memory in the third resource group during the period , No. The available value of CPU cores in the first resource group in a period , No. The available value of CPU cores in the second resource group in the period and The available value of CPU cores in the third resource group in a period .

[0056] S2. Filter the resource group consumption data of the historical workflow in step S1 to obtain the resource group consumption data of the workflow to be rerun.

[0057] In an optional embodiment of the present invention, the present invention screens the resource group consumption data of the historical workflow to screen out the workflow to be rerun, and determines the corresponding resource group consumption data, and then obtains the resource group consumption data of the workflow to be rerun.

[0058] S3. According to the resource group available data in step S1 and the resource group consumption data of the workflow to be rerun in step S2, based on the dynamic adjustment strategy, generate the task scheduling result of the workflow to be rerun, so as to schedule the data processing task for the workflow to be rerun.

[0059] In an optional embodiment of the present invention, the present invention constructs an initial scheduling model of the workflow to be rerun based on the available data of the resource group and the resource consumption data of the workflow to be rerun in step S2, based on a dynamic adjustment strategy, and generates a task scheduling result of the workflow to be rerun based on the initial scheduling model of the workflow to be rerun, so as to perform data processing task scheduling on the workflow to be rerun.

[0060] Step S3 includes the following steps:

[0061] S31. According to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, an initial scheduling model of the workflow to be rerun is constructed based on a dynamic adjustment strategy.

[0062] Step S31 includes the following steps:

[0063] S311, according to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, based on the dynamic adjustment strategy, construct a first resource group memory model of the workflow to be rerun, expressed as:

[0064]

[0065] in: For the The workflow to be rerun is in The memory consumption value of the first resource group in a period of time, The number of the workflow to be rerun. is the total number of workflows to be rerun, is the time period number, For the The available value of the memory in the first resource group during a period.

[0066] S312: According to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, a second resource group memory model of the workflow to be rerun is constructed based on a dynamic adjustment strategy, which is expressed as:

[0067]

[0068] in: For the The workflow to be rerun is in The memory consumption value of the second resource group in a period of time, For the The available value of the memory in the second resource group during the period.

[0069] S313: According to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, a third resource group memory model of the workflow to be rerun is constructed based on a dynamic adjustment strategy, which is expressed as:

[0070]

[0071] in: For the The workflow to be rerun is in The memory consumption value of the third resource group in a period of time, For the The available value of the memory in the third resource group during the period.

[0072] S314: According to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, a CPU core model of the first resource group of the workflow to be rerun is constructed based on a dynamic adjustment strategy, which is expressed as:

[0073]

[0074] in: For the The workflow to be rerun is in The consumption value of the CPU cores in the first resource group in a period of time, For the The available value of the CPU cores in the first resource group within a time period.

[0075] S315: According to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, a CPU core model of the second resource group of the workflow to be rerun is constructed based on a dynamic adjustment strategy, which is expressed as:

[0076]

[0077] in: For the The workflow to be rerun is in The consumption value of the CPU cores in the second resource group in a period of time, For the The available value of the CPU cores in the second resource group during a period of time.

[0078] S316: According to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, a CPU core model of the third resource group of the workflow to be rerun is constructed based on a dynamic adjustment strategy, which is expressed as:

[0079]

[0080] in: For the The workflow to be rerun is in The consumption value of the CPU cores in the third resource group in a period of time, For the The available value of the CPU cores in the third resource group during a period of time.

[0081] S317. Construct an initial scheduling model for the workflow to be rerun based on the first resource group memory model of the workflow to be rerun in step S311, the second resource group memory model of the workflow to be rerun in step S312, the third resource group memory model of the workflow to be rerun in step S313, the first resource group CPU core model of the workflow to be rerun in step S314, the second resource group CPU core model of the workflow to be rerun in step S315 and the third resource group CPU core model of the workflow to be rerun in step S316.

[0082] Specifically, the present invention uses the first resource group memory model of the workflow to be rerun, the second resource group memory model of the workflow to be rerun, the third resource group memory model of the workflow to be rerun, the first resource group CPU core model of the workflow to be rerun, the second resource group CPU core model of the workflow to be rerun and the third resource group CPU core model of the workflow to be rerun as six sub-models of the initial scheduling model of the workflow to be rerun, so as to construct the initial scheduling model of the workflow to be rerun.

[0083] S32. Generate a task scheduling result of the workflow to be rerun according to the initial scheduling model of the workflow to be rerun in step S31, so as to schedule data processing tasks for the workflow to be rerun.

[0084] Step S32 includes the following steps:

[0085] S321. According to the initial scheduling model of the workflow to be rerun in step S31, a set of numbers of the workflows to be rerun of different resources in different resource groups is obtained.

[0086] The present invention obtains a set of numbers of workflows to be rerun for different resources in different resource groups according to the initial scheduling model of the workflows to be rerun in step S31, specifically: according to the initial scheduling model of the workflows to be rerun, six sub-models in the initial scheduling model of the workflows to be rerun are calculated respectively, the workflows to be rerun that meet each sub-model are numbered, and the numbers are used as set elements to construct a set, multiple sets in each sub-model are obtained, and multiple sets in each sub-model are respectively subjected to subset elimination processing to obtain a set of numbers of workflows to be rerun for different resources in different resource groups.

[0087] Specifically, the set of workflow numbers to be rerun for different resources in different resource groups includes a set of workflow numbers to be rerun that satisfies memory resources in the first resource group, a set of workflow numbers to be rerun that satisfies memory resources in the second resource group, a set of workflow numbers to be rerun that satisfies memory resources in the third resource group, a set of workflow numbers to be rerun that satisfies CPU core resources in the first resource group, a set of workflow numbers to be rerun that satisfies CPU core resources in the second resource group, and a set of workflow numbers to be rerun that satisfies CPU core resources in the third resource group.

[0088] S322. Obtain a set of executable workflow numbers to be rerun according to the set of workflow numbers to be rerun of different resources in different resource groups in step S321.

[0089] Step S322 includes the following steps:

[0090] S3221. According to the set of workflow numbers to be rerun of different resources in different resource groups, select, arrange, combine, calculate intersection and eliminate subsets of the sets of different resources in the same resource group to obtain the set of workflow numbers to be rerun that satisfies both the memory resources and the CPU core resources in the resource group.

[0091] Specifically, the present invention selects a set from the set of workflow numbers to be rerun that satisfies the memory resources in the first resource group and the set of workflow numbers to be rerun that satisfies the CPU core resources in the first resource group, respectively, arranges and combines the two selected sets as a group, performs intersection calculation on the sets in each group, and eliminates the subsets existing in the set obtained after the intersection calculation, to obtain a set of workflow numbers to be rerun that satisfies both the memory resources and the CPU core resources in the first resource group; selects a set from the set of workflow numbers to be rerun that satisfies the memory resources in the second resource group and the set of workflow numbers to be rerun that satisfies the CPU core resources in the second resource group, respectively, and arranges and combines the two selected sets as a group, performs intersection calculation on the sets in each group, and eliminates the subsets existing in the set obtained after the intersection calculation, to obtain a set of workflow numbers to be rerun that satisfies both the memory resources and the CPU core resources in the first resource group. The groups are arranged and combined, the intersection calculation is performed on the sets in each group, and the subsets in the sets obtained after the intersection calculation are eliminated to obtain a set of workflow numbers to be rerun that simultaneously meets the memory resources and the CPU core resources in the second resource group; a set is selected from the set of workflow numbers to be rerun that meets the memory resources in the third resource group and the set of workflow numbers to be rerun that meets the CPU core resources in the third resource group, respectively, and the two selected sets are arranged and combined as a group, the intersection calculation is performed on the sets in each group, and the subsets in the sets obtained after the intersection calculation are eliminated to obtain a set of workflow numbers to be rerun that simultaneously meets the memory resources and the CPU core resources in the third resource group.

[0092] S3222. According to the set of workflow numbers to be rerun that simultaneously satisfy the memory resources and CPU core resources in the resource group in step S3221, select, arrange, combine and calculate the intersection of the sets in different resource groups to obtain a set of executable workflow numbers to be rerun.

[0093] Specifically, the present invention selects a set from the set of workflow numbers to be rerun that simultaneously satisfies the memory resources and CPU core resources in the first resource group, the set of workflow numbers to be rerun that simultaneously satisfies the memory resources and CPU core resources in the second resource group, and the set of workflow numbers to be rerun that simultaneously satisfies the memory resources and CPU core resources in the third resource group, arranges and combines the selected three sets as a group, and performs intersection calculation on the three sets in each group to obtain a set of executable workflow numbers to be rerun.

[0094] S323. Generate a task scheduling result for the workflow to be rerun according to the set of executable workflow numbers to be rerun in step S322, so as to schedule data processing tasks for the workflow to be rerun.

[0095] The present invention generates a task scheduling result for the workflow to be rerun based on the set of executable workflow numbers to be rerun in step S322. The specific process is: based on the set of executable workflow numbers to be rerun in step S322, a set of executable workflow numbers to be rerun with the largest number of elements in the set is selected, and it is generated as the task scheduling result for the workflow to be rerun.

[0096] The present invention selects a set of executable workflow numbers to be rerun with the largest number of elements in the set, and generates it as a task scheduling result for the workflow to be rerun, so that when the task scheduling result of the workflow to be rerun is executed, more workflows can be executed within the time period, which not only improves the execution efficiency but also makes full use of computing resources.

[0097] 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.

[0098] 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.

[0099] 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.

[0100] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

[0101] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.

Claims

1. A data processing task scheduling method based on a dynamic adjustment strategy, characterized in that: The following steps are involved: S1. Obtain resource group consumption data and resource group available data of historical workflows; The resource groups include a first resource group for running a Spark task, a second resource group for running a Python task, and a third resource group for running a DataX task; S2. Filter the resource group consumption data of the historical workflow in step S1 to obtain the resource group consumption data of the workflow to be rerun; S3, according to the resource group available data in step S1 and the resource group consumption data of the workflow to be rerun in step S2, based on the dynamic adjustment strategy, generate the task scheduling result of the workflow to be rerun, so as to schedule the data processing task for the workflow to be rerun; Step S3 includes the following steps: S31, constructing an initial scheduling model for the workflow to be rerun based on a dynamic adjustment strategy according to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2; Step S31 includes the following steps: S311, according to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, based on the dynamic adjustment strategy, construct a first resource group memory model of the workflow to be rerun, expressed as: in: For the The workflow to be rerun is in The memory consumption value of the first resource group in a period of time, The number of the workflow to be rerun. is the total number of workflows to be rerun, is the time period number, For the The available value of the memory in the first resource group within a time period; S312: According to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, a second resource group memory model of the workflow to be rerun is constructed based on a dynamic adjustment strategy, which is expressed as: in: For the The workflow to be rerun is in The memory consumption value of the second resource group in a period of time, For the The available value of the memory in the second resource group within a time period; S313: According to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, a third resource group memory model of the workflow to be rerun is constructed based on a dynamic adjustment strategy, which is expressed as: in: For the The workflow to be rerun is in The memory consumption value of the third resource group in a period of time, For the The available value of the memory in the third resource group within a time period; S314: According to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, a CPU core model of the first resource group of the workflow to be rerun is constructed based on a dynamic adjustment strategy, which is expressed as: in: For the The workflow to be rerun is in The consumption value of the CPU cores in the first resource group in a period of time, For the The available value of the CPU cores in the first resource group in a time period; S315: According to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, a CPU core model of the second resource group of the workflow to be rerun is constructed based on a dynamic adjustment strategy, which is expressed as: in: For the The workflow to be rerun is in The consumption value of the CPU cores in the second resource group in a period of time, For the The available value of the CPU cores in the second resource group in a time period; S316: According to the available data of the resource group in step S1 and the resource consumption data of the workflow to be rerun in step S2, a CPU core model of the third resource group of the workflow to be rerun is constructed based on a dynamic adjustment strategy, which is expressed as: in: For the The workflow to be rerun is in The consumption value of the CPU cores in the third resource group in a period of time, For the The available value of CPU cores in the third resource group in a time period; S317, constructing an initial scheduling model for the workflow to be rerun according to the first resource group memory model of the workflow to be rerun in step S311, the second resource group memory model of the workflow to be rerun in step S312, the third resource group memory model of the workflow to be rerun in step S313, the first resource group CPU core model of the workflow to be rerun in step S314, the second resource group CPU core model of the workflow to be rerun in step S315, and the third resource group CPU core model of the workflow to be rerun in step S316; S32, generating a task scheduling result of the workflow to be rerun according to the initial scheduling model of the workflow to be rerun in step S31, so as to schedule data processing tasks for the workflow to be rerun; Step S32 includes the following steps: S321, according to the initial scheduling model of the workflow to be rerun in step S31, obtain a set of numbers of the workflows to be rerun of different resources in different resource groups; S322, according to the set of numbers of the to-be-rerun workflows of different resources in different resource groups in step S321, obtain a set of numbers of the executable to-be-rerun workflows; S323. Generate a task scheduling result for the workflow to be rerun according to the set of executable workflow numbers to be rerun in step S322, so as to schedule data processing tasks for the workflow to be rerun.

2. A data processing task scheduling method based on a dynamic adjustment strategy according to claim 1, characterized in that: In step S1, the workflow includes Spark tasks, Python tasks, and DataX tasks arranged in an execution order.

3. The data processing task scheduling method based on dynamic adjustment strategy according to claim 1 is characterized in that: The first resource group, the second resource group and the third resource group all include CPU core resources and memory resources.

4. The data processing task scheduling method based on dynamic adjustment strategy according to claim 1 is characterized in that: In step S321, according to the initial scheduling model of the workflow to be rerun in step S31, a set of numbers of the workflow to be rerun for different resources in different resource groups is obtained, specifically: according to the initial scheduling model of the workflow to be rerun, six sub-models in the initial scheduling model of the workflow to be rerun are calculated respectively, the workflow to be rerun that satisfies each sub-model is numbered, and the number is used as a set element to construct a set, multiple sets in each sub-model are obtained, and the multiple sets in each sub-model are respectively subjected to subset elimination operation to obtain the set of numbers of the workflow to be rerun for different resources in different resource groups.

5. The data processing task scheduling method based on dynamic adjustment strategy according to claim 1 is characterized in that: Step S322 includes the following steps: S3221. According to the set of numbers of the to-be-rerun workflows of different resources in different resource groups, select, arrange, combine, calculate intersections, and eliminate subsets of the sets of different resources in the same resource group to obtain a set of numbers of the to-be-rerun workflows that satisfies both the memory resources and the CPU core resources in the resource group. S3222. According to the set of workflow numbers to be rerun that simultaneously satisfy the memory resources and CPU core resources in the resource group in step S3221, select, arrange, combine and calculate the intersection of the sets in different resource groups to obtain a set of executable workflow numbers to be rerun.

6. The data processing task scheduling method based on dynamic adjustment strategy according to claim 1 is characterized in that: In step S323, based on the set of executable workflow numbers to be rerun in step S322, a task scheduling result for the workflow to be rerun is generated. The specific process is: based on the set of executable workflow numbers to be rerun in step S322, a set of executable workflow numbers to be rerun with the largest number of elements in the set is selected, and it is generated as the task scheduling result for the workflow to be rerun.

Citation Information

Patent Citations

  • A multidimensional resource isolation system for improving isolation between tasks of different priorities

    CN109542603A

  • Computing power resource scheduling method and device, electronic equipment and storage medium

    CN117827456A