An intelligent scheduling system for big data tasks

Through the real-time and offline task engine of the intelligent scheduling system, task grouping and resource pools are dynamically adjusted to solve the problem of low resource utilization of big data clusters in multi-tenant SaaS scenarios and achieve more efficient resource management and system stability.

CN118349335BActive Publication Date: 2024-10-18NANJING SINOVATIO TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In a multi-tenant SaaS scenario, big data cluster resource utilization is low and real-time and offline task scheduling is complex, resulting in high system maintenance costs, resource waste and load imbalance.

Method used

Adopt an intelligent scheduling system, use real-time and offline task scheduling engines, use short-cycle monitoring and historical data modeling to dynamically adjust task grouping and distributed scheduling to achieve dynamic expansion and contraction of resource pools, quickly recover abnormal tasks, and improve resource utilization. and system stability.

Benefits of technology

It improves the resource utilization of big data clusters, reduces operation and maintenance costs, improves the overall performance and robustness of the system, and achieves more efficient resource management and task scheduling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118349335B_ABST
    Figure CN118349335B_ABST
Patent Text Reader

Abstract

The present invention relates to an intelligent scheduling system for big data tasks, including a scheduled real-time task scheduling engine and an offline task scheduling engine. The real-time task scheduling engine is responsible for intelligently scheduling multi-tenant big data real-time computing tasks, and can quickly discover and recover abnormal real-time tasks through short-cycle real-time task timing monitoring. A real-time task operation model is established through long-cycle historical operation data, and grouping is dynamically adjusted based on the real-time task operation model, and distributed scheduling is performed; the offline task scheduling engine is responsible for intelligently scheduling multi-tenant big data offline computing tasks, and can monitor the feedback information of offline grouping task operation in real time, and quickly schedule offline grouping tasks. The technical solution effectively improves the resource utilization rate of the big data cluster through intelligent grouping technology, thereby improving the tenant carrying capacity of the entire cluster, effectively improving the robustness of the system, and further reducing the system operation and maintenance costs through a dynamic expansion and contraction mechanism, thereby reducing costs and increasing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a scheduling system, in particular to an intelligent scheduling system for big data tasks, which is applicable to the scheduling field of big data real-time and offline computing tasks and belongs to the technical field of big data analysis and computing. Background Art

[0002] Against the backdrop of explosive growth in global data, big data technology has developed rapidly. More and more companies are using big data technology to clean and process data and conduct statistical analysis. At the same time, with the rapid development of cloud computing technology, there are more and more big data tasks for SaaS services. For multi-tenant SaaS scenarios, the number of big data tasks continues to increase, and the scheduling and maintenance of multi-tenant and multi-task big data tasks has become increasingly complex, making it increasingly difficult to efficiently utilize big data cluster resources. Intelligent scheduling technology for big data tasks can dynamically adjust the grouping of each task based on historical operating conditions, intelligently monitor and schedule big data tasks, without the need for manual scheduling, and reduce the complexity of system maintenance. At the same time, intelligent scheduling technology for big data tasks can make full use of big data cluster resources, distribute peak-shifting scheduling tasks, reduce costs and increase efficiency, and improve system stability.

[0003] Big data task scheduling

[0004] Big data task scheduling refers to the use of scheduling tools, scheduling systems, etc. to submit and schedule big data tasks in order to run big data tasks. Common big data task scheduling includes timer scheduling, big data scheduling platform scheduling, and self-developed scheduling system scheduling. Big data task scheduling can be divided into real-time task scheduling and offline task scheduling according to the nature of the task.

[0005] Real-time task scheduling

[0006] Real-time task scheduling is mainly used to schedule big data tasks for real-time computing. Real-time tasks are usually used to process unbounded data. They are a type of task that resides in the big data cluster and will occupy cluster resources after being started. In a multi-tenant SaaS scenario, each tenant usually enables a separate task to run real-time computing. However, the log traffic accessed by each tenant is very different, and the SaaS services opened are also different. As a result, the following problems arise: some tenants are still idle when running tasks with the minimum resources, while some tenants need to increase resources to run tasks normally, which makes the overall resource utilization of the big data cluster low.

[0007] Offline task scheduling

[0008] Offline task scheduling is mainly used to schedule big data tasks for offline computing. Offline tasks are usually used to process bounded data. After running, they will stop and release resources. Offline tasks are usually run periodically, so the scheduling time needs to be configured according to the running cycle. In a multi-tenant SaaS scenario, the log traffic accessed by each tenant is very different, and the SaaS services opened are also different. How to effectively configure the scheduling time of each tenant and each task will become cumbersome and difficult. Improper configuration will lead to periodic instantaneous load surges and low resource utilization in the big data cluster.

[0009] Therefore, a new solution is urgently needed to solve the above technical problems. Summary of the invention

[0010] The present invention aims at the problems existing in the prior art and provides an intelligent scheduling system for big data tasks. This technical solution effectively improves the resource utilization of the big data cluster through intelligent grouping technology, thereby improving the tenant carrying capacity of the entire cluster, and quickly discovers and recovers abnormal tasks through an active monitoring mechanism, effectively improving the robustness of the system, and further reduces the system operation and maintenance costs through a dynamic expansion and contraction mechanism, thereby reducing costs and increasing efficiency.

[0011] In order to achieve the above object, the technical solution of the present invention is as follows: an intelligent scheduling system for big data tasks, the scheduling system includes two types of scheduling engines: real-time and offline tasks.

[0012] Real-time task scheduling engine: This scheduling system is responsible for intelligent scheduling of big data real-time computing tasks. It monitors the task status regularly in a short period of time, quickly discovers abnormal tasks and recovers them, establishes a task operation model based on long-term historical operation data, dynamically adjusts groups based on the task operation model, and performs distributed scheduling operations.

[0013] Offline task scheduling engine: This scheduling system is responsible for intelligently scheduling big data offline computing tasks. It dynamically expands and shrinks the resource pool based on historical resource pool usage and current task running conditions. It predicts task duration based on the trained prediction model, dynamically adjusts group tasks based on the predicted task duration, and puts them into the resource pool queue for distributed submission and execution. It also monitors feedback information on offline group task execution in real time to quickly schedule offline group tasks.

[0014] Wherein, the real-time task scheduling engine includes:

[0015] The timing scheduling module uses the custom time configuration of the xxl_job scheduling engine to regularly call up the real-time task monitoring module and the real-time task management module;

[0016] The real-time task one-click stop module detects the applicationId of all real-time tasks on the yarn cluster and uses commands to quickly stop all real-time tasks;

[0017] The real-time task one-click start module estimates the batch running time by analyzing the historical running time data of each batch of all Spark Streaming real-time tasks, and intelligently and dynamically groups all Spark Streaming real-time tasks for distributed submission and execution.

[0018] The real-time task monitoring module detects the real-time tasks actually running on the YARN cluster through short-cycle scheduled tasks, and quickly discovers and recovers real-time tasks that exit or start abnormally;

[0019] The real-time task management module periodically detects the running status of real-time grouping tasks, and dynamically regroups and adjusts the real-time grouping tasks with short running batch time or timeout, and then submits them for distributed operation;

[0020] The distributed submission module submits real-time tasks to the big data cluster for execution by means of distributed execution submission commands.

[0021] Among them, the offline task scheduling engine includes:

[0022] The timing scheduling module uses the custom time configuration of the xxl_job scheduling engine to regularly call up the offline task prediction model training module, offline task management module, offline task resource pool training module, and offline task resource pool management module;

[0023] The offline task prediction model training module analyzes the historical running data of each offline task and trains the prediction model of each offline task based on the running time, data volume, and used resources.

[0024] The offline task management module estimates the running time of offline tasks through each offline task prediction model, dynamically adjusts the grouping based on the running time, and forms a list of offline grouping tasks to be scheduled;

[0025] The offline task resource pool training module analyzes the historical usage data of the offline task resource pool, approximates the baseline capacity of the resource pool based on the idea of ​​integration, and dynamically expands and shrinks the resource pool;

[0026] The offline task resource pool management module dynamically expands and shrinks the actual capacity of the resource pool based on the baseline capacity of the offline task resource pool and the delay and advance of the current offline task operation, schedules offline grouping tasks based on the actual capacity of the resource pool, and submits and runs them in a distributed manner;

[0027] The offline task monitoring module monitors the running feedback information of each offline group task in real time, quickly notifies the offline task resource pool management module, and schedules the running of new offline group tasks;

[0028] The distributed submission module submits offline tasks to the big data cluster for execution by means of distributed execution submission commands.

[0029] The real-time task scheduling engine process is as follows:

[0030] Step 101, the timing scheduling module regularly calls the real-time task monitoring module, and the monitoring module starts to perform real-time task status detection (step 102);

[0031] Step 102, the real-time task monitoring module detects whether there is a valid tenant task that is not running, and if so, it needs to be pulled up and run; detects whether there is an invalid tenant task that is still running, and if so, it needs to stop the invalid tenant task; detects whether there is a zombie real-time grouping task, and if so, it needs to restart the grouping task;

[0032] Step 103, the timing scheduling module regularly calls the real-time task management module, and the management module starts to perform real-time task regrouping detection (step 104);

[0033] Step 104, the real-time task management module detects whether there are abnormal real-time groups of batch running timeout and batch running shortage, and if so, it is necessary to perform regrouping adjustment on these abnormal tasks (step 105);

[0034] Step 105, building a model based on the historical record data of the batch running time of the real-time tasks, estimating the batch running time of each real-time task, and dynamically grouping them using a greedy algorithm;

[0035] Step 106: Distributed submission of the grouped tasks to be scheduled to the big data cluster for execution;

[0036] Step 107, the real-time task one-key start module obtains a list of all real-time tasks, performs dynamic grouping (step 105), and then submits and runs them in a distributed manner;

[0037] Step 108: The real-time task one-key stop module obtains all real-time tasks on the big data cluster and quickly stops all real-time tasks with one key through commands.

[0038] Among them, the offline task scheduling engine process is as follows:

[0039] Step 201: The timing scheduling module regularly calls up the offline task prediction model training module, and based on the historical operation records of each tenant's offline tasks, trains and updates the prediction model of each tenant's offline tasks after removing abnormal data using a box plot;

[0040] Step 202: The timing scheduling module regularly calls up the offline task resource pool training module, and based on the historical record data of the resource pool, uses the idea of ​​integration to approximately calculate the actual used resources and calibrate the benchmark capacity of the resource pool;

[0041] Step 203, the timing scheduling module regularly calls up the offline task resource pool management module, and dynamically expands or shrinks the resource pool capacity based on the current offline task running status and the resource pool baseline capacity;

[0042] Step 204: The scheduled scheduling module regularly calls the offline task management module to first obtain offline tasks of all tenants, and remove the running offline tasks to prevent duplicate scheduling. Then, the task running time is predicted based on the trained offline task prediction models, and then the greedy algorithm is used to dynamically group the tasks.

[0043] Step 205: put the offline grouping tasks after dynamic grouping into the resource pool queue, check whether the resource pool has enough capacity to run the grouping tasks, if yes, submit the corresponding number of grouping tasks to the big data cluster for running, if not, wait for the resource pool to release resources;

[0044] Step 206, the offline task monitoring module continuously monitors the running feedback information of each offline grouping task. When receiving the task completion message, it releases the corresponding resources in the resource pool and checks whether the resource pool has sufficient capacity to run the grouping tasks. If so, it submits the corresponding number of grouping tasks to the big data cluster for running in a distributed manner. If not, it waits for the resource pool to release resources.

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

[0046] 1. Using intelligent dynamic grouping technology, multiple tasks with low resource utilization can be dynamically grouped and combined to reduce occupied resources, thereby effectively improving resource utilization, reducing costs and increasing efficiency.

[0047] 2. Model training can be used to continuously optimize and improve prediction accuracy based on actual data, further improve the accuracy of dynamic grouping, and thus improve resource utilization.

[0048] 3. The one-key stop and one-key start modules for real-time tasks can improve the product automation upgrade process, increase product upgrade efficiency, and reduce operation and maintenance costs.

[0049] 4. Using the short-cycle real-time task monitoring module, abnormal tasks can be quickly discovered and restored, improving system robustness and reducing operation and maintenance costs.

[0050] 5. Through the dynamic expansion and contraction mechanism of the offline task resource pool, we can effectively cope with the changes in the number of tasks caused by account opening and closing, and reduce the system operation and maintenance costs.

[0051] 6. Using the distributed submission module to submit tasks in parallel can reduce the load pressure of the single-node system, improve the overall concurrency performance of the system, and improve the robustness of the system.

[0052] 7. The real-time and offline task scheduling engines in the present invention have no coupling relationship, and the real-time task scheduling engine or the offline task scheduling engine can be flexibly selected according to the task type. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 It is the overall system architecture diagram of the present invention;

[0054] Figure 2 It is a flow chart of the real-time task scheduling engine of the present invention;

[0055] Figure 3 This is a flow chart of the offline task scheduling engine of the present invention. DETAILED DESCRIPTION

[0056] In order to deepen the understanding of the present invention, the present embodiment is described in detail below with reference to the accompanying drawings.

[0057] Example 1: See Figure 1 , an intelligent scheduling system for big data tasks, including a timed scheduling module, a real-time task one-key stop module, a real-time task one-key start module, a real-time task monitoring module, a real-time task management module, an offline task management module, an offline task prediction model training module, an offline task resource pool training module, an offline task resource pool management module, an offline task monitoring module and a distributed submission module.

[0058] The timing scheduling module, through the custom time configuration of the xxl_job scheduling engine, regularly calls up the real-time task monitoring module, real-time task management module, offline task prediction model training module, offline task management module, offline task resource pool management module, and offline task resource pool training module to run;

[0059] The real-time task one-click stop module detects the applicationId of all real-time tasks on the yarn cluster and uses commands to quickly stop all real-time tasks;

[0060] The real-time task one-click start module analyzes the historical running time data of each batch of spark streaming real-time tasks, estimates the batch running time, and intelligently and dynamically groups all spark streaming real-time tasks for distributed submission and execution.

[0061] The real-time task monitoring module detects the real-time tasks actually running on the YARN cluster through short-cycle scheduled tasks, and quickly discovers and recovers real-time tasks that exit or start abnormally;

[0062] The real-time task management module periodically detects the running status of real-time grouping tasks, and dynamically regroups and adjusts the real-time grouping tasks with short running batch time or timeout, and then submits them for distributed operation;

[0063] The offline task prediction model training module analyzes the historical running data of each offline task and trains the prediction model of each offline task based on the running time, data volume, and used resources.

[0064] The offline task management module estimates the running time of offline tasks through each offline task prediction model, dynamically adjusts the grouping based on the running time, and forms a list of offline grouping tasks to be scheduled;

[0065] The offline task resource pool training module analyzes the historical usage data of the offline task resource pool, approximates the baseline capacity of the resource pool based on the idea of ​​integration, and dynamically expands and shrinks the resource pool;

[0066] The offline task resource pool management module dynamically expands and shrinks the actual capacity of the resource pool based on the baseline capacity of the offline task resource pool and the delay and advance of the current offline task operation, schedules offline grouping tasks based on the actual capacity of the resource pool, and submits and runs them in a distributed manner;

[0067] The offline task monitoring module monitors the running feedback information of each offline group task in real time, quickly notifies the offline task resource pool management module, and schedules the running of new offline group tasks;

[0068] The distributed submission module submits real-time and offline tasks to the big data cluster for execution by means of distributed execution submission commands.

[0069] Among them, the timing scheduling module uses the custom time configuration of the xxl_job scheduling engine to regularly call up the real-time task monitoring module, real-time task management module, offline task prediction model training module, offline task management module, offline task resource pool management module, and offline task resource pool training module to run.

[0070] The real-time task one-key stop module detects the applicationId of all real-time tasks on the yarn cluster and uses commands to quickly stop all real-time tasks.

[0071] The real-time task one-key start module estimates the batch running time by analyzing the historical running time data of each batch of spark streaming real-time tasks, and intelligently and dynamically groups all spark streaming real-time tasks for distributed submission and execution.

[0072] The real-time task monitoring module detects the real-time tasks actually running on the YARN cluster through short-cycle scheduled tasks, and quickly discovers and recovers real-time tasks that exit or start abnormally.

[0073] The real-time task management module periodically detects the running status of the real-time grouping tasks, and dynamically regroups and adjusts the real-time grouping tasks with short running batch time or timeout, and then submits them for running in a distributed manner.

[0074] The offline task prediction model training module analyzes the historical running data of each offline task and trains the prediction model of each offline task based on the running time, data volume, used resources, etc.

[0075] The offline task management module estimates the running time of offline tasks through each offline task prediction model, dynamically adjusts the grouping based on the running time, and forms a list of offline grouping tasks to be scheduled.

[0076] The offline task resource pool training module analyzes the historical usage data of the offline task resource pool, approximately calculates the baseline capacity of the resource pool based on the idea of ​​integration, and dynamically expands and contracts the resource pool.

[0077] The offline task resource pool management module dynamically expands and contracts the actual capacity of the resource pool based on the baseline capacity of the offline task resource pool and the delay and advance of the current offline task operation, schedules offline grouping tasks based on the actual capacity of the resource pool, and submits them for operation in a distributed manner.

[0078] The offline task monitoring module monitors the running feedback information of each offline grouping task in real time, quickly notifies the offline task resource pool management module, and schedules the running of new offline grouping tasks.

[0079] The distributed submission module submits real-time and offline tasks to the big data cluster for execution by means of distributed execution submission commands.

[0080] See also Figure 2 , a real-time task scheduling engine based on the above big data task intelligent scheduling system, including the following contents:

[0081] Step 101, the timing scheduling module regularly calls the real-time task monitoring module, and the monitoring module starts to perform real-time task status detection (step 102);

[0082] Step 102, the real-time task monitoring module detects whether there is a valid tenant task that is not running, and if so, it needs to be pulled up and run; detects whether there is an invalid tenant task that is still running, and if so, it needs to stop the invalid tenant task; detects whether there is a zombie real-time grouping task, and if so, it needs to restart the grouping task;

[0083] Step 103, the timing scheduling module regularly calls the real-time task management module, and the management module starts to perform real-time task regrouping detection (step 104);

[0084] Step 104, the real-time task management module detects whether there are abnormal real-time groups of batch running timeout and batch running shortage, and if so, it is necessary to perform regrouping adjustment on these abnormal tasks (step 105);

[0085] Step 105, building a model based on the historical record data of the batch running time of the real-time tasks, estimating the batch running time of each real-time task, and dynamically grouping them using a greedy algorithm;

[0086] Step 106: Distributed submission of the grouped tasks to be scheduled to the big data cluster for execution;

[0087] Step 107, the real-time task one-key start module obtains a list of all real-time tasks, performs dynamic grouping (step 105), and then submits and runs them in a distributed manner;

[0088] Step 108: The real-time task one-key stop module obtains all real-time tasks on the big data cluster and quickly stops all real-time tasks with one key through commands.

[0089] See also Figure 3 , an offline task scheduling engine based on the above big data task intelligent scheduling system, including the following contents:

[0090] Step 201: The timing scheduling module regularly calls up the offline task prediction model training module, and based on the historical operation records of each tenant's offline tasks, trains and updates the prediction model of each tenant's offline tasks after removing abnormal data using a box plot;

[0091] Step 202: The timing scheduling module regularly calls up the offline task resource pool training module, and based on the historical record data of the resource pool, uses the idea of ​​integration to approximately calculate the actual used resources and calibrate the benchmark capacity of the resource pool;

[0092] Step 203, the timing scheduling module regularly calls up the offline task resource pool management module, and dynamically expands or shrinks the resource pool capacity based on the current offline task running status and the resource pool baseline capacity;

[0093] Step 204: The scheduled scheduling module regularly calls the offline task management module to first obtain offline tasks of all tenants, and remove the running offline tasks to prevent duplicate scheduling. Then, the task running time is predicted based on the trained offline task prediction models, and then the greedy algorithm is used to dynamically group the tasks.

[0094] Step 205: put the offline grouping tasks after dynamic grouping into the resource pool queue, check whether the resource pool has enough capacity to run the grouping tasks, if yes, submit the corresponding number of grouping tasks to the big data cluster for running, if not, wait for the resource pool to release resources;

[0095] Step 206, the offline task monitoring module continuously monitors the running feedback information of each offline grouping task. When receiving the task completion message, it releases the corresponding resources in the resource pool and checks whether the resource pool has sufficient capacity to run the grouping tasks. If so, it submits the corresponding number of grouping tasks to the big data cluster for running in a distributed manner. If not, it waits for the resource pool to release resources.

[0096] It should be noted that the above embodiments are not intended to limit the protection scope of the present invention, and equivalent changes or substitutions made on the basis of the above technical solutions all fall within the protection scope of the claims of the present invention.

Claims

1. An intelligent scheduling system for big data tasks, characterized in that: The scheduling system includes a timing scheduling module, a real-time task one-key stop module, a real-time task one-key start module, a real-time task monitoring module, a real-time task management module, an offline task management module, an offline task prediction model training module, an offline task resource pool training module, an offline task resource pool management module, an offline task monitoring module, and a distributed submission module; A timing scheduling module is used to regularly call up a real-time task monitoring module, a real-time task management module, an offline task prediction model training module, an offline task management module, an offline task resource pool management module, and an offline task resource pool training module; The real-time task one-key stop module is used to stop all real-time group tasks with one key; The real-time task one-key start module is used to intelligently and dynamically group all real-time tasks with one click and submit them for operation in a distributed manner; Real-time task monitoring module, quickly discovering and recovering abnormal real-time grouping tasks; The real-time task management module dynamically regroups and distributes the real-time grouping tasks that do not meet the requirements. Offline task prediction model training module, which trains offline task prediction models based on historical offline task operation data; The offline task management module estimates the running time of offline tasks to be scheduled based on the prediction model, dynamically adjusts the grouping based on the running time, and forms a list of offline grouped tasks to be scheduled; The offline task resource pool training module dynamically expands and shrinks the baseline capacity of the resource pool based on the historical offline task resource pool usage data; The offline task resource pool management module dynamically expands and shrinks the actual capacity of the resource pool based on the baseline capacity of the offline task resource pool and the running status of the current offline tasks. At the same time, it schedules offline grouping tasks based on the actual capacity of the resource pool and submits them for operation in a distributed manner. The offline task monitoring module monitors the running feedback information of each offline grouping task in real time and notifies the offline task resource pool management module to quickly schedule the running of new offline grouping tasks; Distributed submission module, which submits real-time and offline tasks to the big data cluster for execution; The timing scheduling module uses the custom time configuration of the xxl_job scheduling engine to regularly call up the real-time task monitoring module, real-time task management module, offline task prediction model training module, offline task management module, offline task resource pool management module, and offline task resource pool training module to run; The real-time task one-key stop module detects the applicationId of all real-time tasks on the yarn cluster and uses commands to quickly stop all real-time tasks; The real-time task one-click start module estimates the batch running time by analyzing the historical running time data of each batch of spark streaming real-time tasks, and intelligently and dynamically groups all spark streaming real-time tasks for distributed submission and execution. The real-time task monitoring module detects the real-time tasks actually running on the YARN cluster through short-cycle scheduled tasks, and quickly discovers and recovers real-time tasks that exit or start abnormally; The real-time task management module periodically detects the running status of the real-time grouping tasks, and dynamically regroups and adjusts the real-time grouping tasks with short running batch time or timeout, and then submits them for running in a distributed manner; The offline task prediction model training module trains the prediction model of each offline task based on the running time, data volume and used resources by analyzing the historical running data of each offline task; The offline task management module estimates the running time of offline tasks through each offline task prediction model, dynamically adjusts the grouping based on the running time, and forms a list of offline grouping tasks to be scheduled; The offline task resource pool training module analyzes the historical usage data of the offline task resource pool, approximately calculates the baseline capacity of the resource pool based on the idea of ​​integration, and dynamically expands and shrinks the resource pool; The offline task resource pool management module dynamically expands and contracts the actual capacity of the resource pool based on the baseline capacity of the offline task resource pool and the delay and advance of the current offline task operation, schedules offline grouping tasks based on the actual capacity of the resource pool, and submits them for operation in a distributed manner; The offline task monitoring module monitors the running feedback information of each offline grouping task in real time, quickly notifies the offline task resource pool management module, and schedules the running of new offline grouping tasks; The distributed submission module submits real-time and offline tasks to the big data cluster for execution by means of distributed execution submission commands; The entire scheduling system includes two types of scheduling engines: real-time and offline. The real-time task scheduling engine process is as follows: Step 101, the timing scheduling module regularly calls the real-time task monitoring module, and the real-time task monitoring module starts to perform real-time task status detection; Step 102, the real-time task monitoring module detects whether there are any valid tenant tasks that are not running, and if so, needs to be started and run; detects whether there are any invalid tenant tasks that are still running, and if so, needs to stop the invalid tenant tasks; Check whether there is a dead real-time grouping task. If so, restart the grouping task. Step 103, the timing scheduling module regularly calls the real-time task management module, and the real-time task management module starts to perform real-time task regrouping detection; Step 104, the real-time task management module detects whether there are abnormal real-time groups of batch running timeout and batch running shortage, and if so, it is necessary to perform regrouping adjustment on these abnormal tasks; Step 105, building a model based on the historical record data of the batch running time of the real-time tasks, estimating the batch running time of each real-time task, and dynamically grouping them using a greedy algorithm; Step 106: Distributed submission of the grouped tasks to be scheduled to the big data cluster for execution; Step 107, the real-time task one-key start module obtains a list of all real-time tasks, executes the dynamic grouping step 105, and then submits and runs them in a distributed manner; Step 108: The real-time task one-key stop module obtains all real-time tasks on the big data cluster and quickly stops all real-time tasks with one key through commands; The offline task scheduling engine process is as follows: Step 201: The timing scheduling module regularly calls up the offline task prediction model training module, and based on the historical operation records of each tenant's offline tasks, trains and updates the prediction model of each tenant's offline tasks after removing abnormal data using a box plot; Step 202: The timing scheduling module regularly calls up the offline task resource pool training module, and based on the historical record data of the resource pool, uses the idea of ​​integration to approximately calculate the actual used resources and calibrate the benchmark capacity of the resource pool; Step 203, the timing scheduling module regularly calls up the offline task resource pool management module, and dynamically expands or shrinks the resource pool capacity based on the current offline task running status and the resource pool baseline capacity; Step 204: The scheduled scheduling module regularly calls the offline task management module to first obtain offline tasks of all tenants, and remove the running offline tasks to prevent duplicate scheduling. Then, the task running time is predicted based on the trained offline task prediction models, and then the greedy algorithm is used to dynamically group the tasks. Step 205: put the offline grouping tasks after dynamic grouping into the resource pool queue, check whether the resource pool has enough capacity to run the grouping tasks, if yes, submit the corresponding number of grouping tasks to the big data cluster for running, if not, wait for the resource pool to release resources; Step 206, the offline task monitoring module continuously monitors the running feedback information of each offline grouping task. When receiving the task completion message, it releases the corresponding resources in the resource pool and checks whether the resource pool has sufficient capacity to run the grouping tasks. If so, it submits the corresponding number of grouping tasks to the big data cluster for running in a distributed manner. If not, it waits for the resource pool to release resources.

Citation Information

Patent Citations

  • Big data task scheduling management system and method based on quartz framework

    CN115421898A

  • Deep learning training task scheduling system facing GPU cluster

    CN115904666A