Task arrangement method and device under distributed computing framework

Real-time acquisition and processing of task status information through message middleware and automated task orchestration solve the problems of low efficiency and poor consistency caused by human intervention in the task orchestration process in the distributed computing framework, achieving efficient and stable task execution and system performance. promote.

CN118733264APending Publication Date: 2024-10-01INSPUR SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410832602.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

There is a lot of human intervention in the task orchestration process in the existing distributed computing framework, which leads to high error risk, low efficiency, uneven resource allocation, poor consistency and poor scalability. It is difficult to quickly adapt to changes in business scale and load, affecting System performance and responsiveness.

Method used

Message middleware is used to obtain task status information in real time, and status conversion and filtering are performed through task status receivers and dispatchers to automate task orchestration and achieve orderly execution and orchestration of tasks.

Benefits of technology

It improves the efficiency of task orchestration and system stability, reduces operation and maintenance costs, enhances the scalability and flexibility of the system, reduces human operating errors, and ensures the standardization and consistency of task execution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733264A_ABST
    Figure CN118733264A_ABST
Patent Text Reader

Abstract

The invention particularly relates to a task arrangement method and device under a distributed computing framework. The task arrangement method under the distributed computing framework comprises the following steps: acquiring task state information of a current task in real time by adopting message middleware, and returning the acquired task state information to a task state receiver in real time; the task dispatcher obtains a task list to be executed from the task state receiver according to the unique identifier of the currently executed task, and the tasks meeting conditions in the task list are screened according to the task state of the current task; and the task dispatcher assembles and triggers the filtered tasks, so that task arrangement is realized. According to the task arrangement method and device under the distributed computing framework, the tasks of the distributed computing framework can be orderly executed according to the task configuration and the task state through reasonable coding and configuration, the task arrangement efficiency is greatly improved, the operation and maintenance cost is reduced, and the system stability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of distributed computing technology, and in particular to a task scheduling method and device under a distributed computing framework. Background Art

[0002] A distributed computing framework is a software framework used to manage computing resources in a distributed cluster, allowing developers to develop distributed applications more efficiently. These frameworks usually provide functions such as task scheduling, fault recovery, and data management, making distributed computing easier. The design goal of these frameworks is to enable programmers to complete distributed computing tasks at a higher level of abstraction without having to pay attention to the details of the underlying system.

[0003] In a distributed computing environment, the process of managing and coordinating multiple tasks performed in a complex system or environment is called task orchestration. It is a key part of automation and technology integration, especially in distributed systems, cloud computing, microservice architecture, and automated workflows. When processing large-scale data or complex business logic, task orchestration ensures that data flow and control flow are executed correctly according to the predetermined order and dependencies.

[0004] Although task scheduling in the distributed computing framework has significantly improved the efficiency of large-scale task processing, it also has many problems. In particular, the current task scheduling process requires a lot of human intervention, which has problems such as high error risk, reduced efficiency, uneven resource allocation, poor consistency and poor scalability. Especially in large-scale data processing and multi-task environments, the inefficiency of human intervention is more obvious. At the same time, it is often difficult to achieve the optimal state for manual resource allocation, which may cause some tasks to occupy too many resources, while other important tasks lack the necessary computing resources. Due to the lack of a comprehensive system perspective, it is difficult for manual scheduling to achieve good load balancing, which will affect the overall performance and response speed of the system. Moreover, compared with automated tools, human intervention usually lacks a real-time inspection mechanism, making it difficult to immediately detect and correct errors, increasing the risk of system operation. Different operators may have different configuration methods, which will make it difficult to ensure the standardization and consistency of task execution. This may lead to differences in the execution results of different batches of tasks, which is fatal for business processes that require high consistency.

[0005] When the business scale expands or the demand changes, manual task scheduling is difficult to quickly adapt to new situations, limiting the scalability and flexibility of the system. When faced with complex task dependencies and large-scale parallel computing, human intervention is often powerless and difficult to effectively manage and schedule.

[0006] In order to improve the flexibility and efficiency of task scheduling, the present invention proposes a task scheduling method and device under a distributed computing framework. Summary of the invention

[0007] In order to overcome the deficiencies of the prior art, the present invention provides a simple and efficient task scheduling method and device under a distributed computing framework.

[0008] The present invention is achieved through the following technical solutions:

[0009] A task scheduling method under a distributed computing framework includes the following steps:

[0010] Step S1: Use the message middleware to obtain the task status information of the current task in real time, and return the obtained task status information to the task status receiver in real time;

[0011] Step S2: The task status receiver performs state conversion on the task status information acquired in real time so as to prepare for reading by the task dispatcher;

[0012] Step S3: The task dispatcher obtains a list of tasks to be executed from the task status receiver according to the unique identifier of the currently executed task, and filters tasks that meet the conditions in the task list according to the task status of the current task;

[0013] Step S4: The task dispatcher assembles and triggers the filtered tasks, thereby realizing the scheduling of tasks.

[0014] The message middleware is an independent software system used to coordinate the communication between different applications or components. It can deliver messages in an asynchronous manner through a set of APIs and protocols, and ensure that the messages can be delivered and processed reliably.

[0015] In step S1, the message middleware includes but is not limited to Apache Kafka message queue system, RabbitMQ message queue system, RocketMQ message queue system, ActiveMQ message queue system and ZeroMQ message queue system.

[0016] In step S1, the message middleware obtains the task status information of the current task, including the task subject and the message middleware connection information;

[0017] The task topic is used to configure and enable consumers.

[0018] The task scheduling device under the distributed computing framework includes a message middleware, a task status receiver and a task dispatcher;

[0019] The message middleware is used to obtain the task status information of the current task in real time, and return the obtained task status information to the task status receiver in real time;

[0020] The task status receiver is used to receive the task status information of the current task and perform state conversion on the task status information acquired in real time so as to prepare for reading by the task dispatcher;

[0021] The task dispatcher is responsible for obtaining a list of tasks to be executed from a task status receiver according to the unique identifier of the currently executed task, filtering tasks that meet the conditions in the task list according to the task status of the current task, and then assembling and triggering the filtered tasks to achieve task scheduling.

[0022] The message middleware includes but is not limited to Apache Kafka message queue system, RabbitMQ message queue system, RocketMQ message queue system, ActiveMQ message queue system and ZeroMQ message queue system.

[0023] The task status information of the current task, including the task subject and message middleware connection information;

[0024] The task topic is used to configure and enable consumers.

[0025] A task scheduling device under a distributed computing framework, characterized in that it includes a memory and a processor; the memory is used to store a computer program, and the processor is used to implement the above-mentioned method steps when executing the computer program.

[0026] A readable storage medium, characterized in that: a computer program is stored on the readable storage medium, and the computer program implements the above method steps when executed by a processor.

[0027] The beneficial effects of the present invention are as follows: the task scheduling method and device under the distributed computing framework enable the tasks of the distributed computing framework to be executed in an orderly manner according to the task configuration and task status through reasonable coding and configuration, which greatly improves the efficiency of task scheduling, reduces operation and maintenance costs, and improves the stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0029] Attached Figure 1 Schematic diagram of the task scheduling method under the distributed computing framework of the present invention. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0031] The task scheduling method under the distributed computing framework includes the following steps:

[0032] Step S1: Use the message middleware to obtain the task status information of the current task in real time, and return the obtained task status information to the task status receiver in real time;

[0033] Step S2: The task status receiver performs state conversion on the task status information acquired in real time so as to prepare for reading by the task dispatcher;

[0034] Step S3: The task dispatcher obtains a list of tasks to be executed from the task status receiver according to the unique identifier of the currently executed task, and filters tasks that meet the conditions in the task list according to the task status of the current task;

[0035] Step S4: The task dispatcher assembles and triggers the filtered tasks, thereby realizing the scheduling of tasks.

[0036] The message middleware is an independent software system used to coordinate the communication between different applications or components. It can deliver messages in an asynchronous manner through a set of APIs and protocols, and ensure that the messages can be delivered and processed reliably.

[0037] In step S1, the message middleware includes but is not limited to Apache Kafka message queue system, RabbitMQ message queue system, RocketMQ message queue system, ActiveMQ message queue system and ZeroMQ message queue system.

[0038] In step S1, the message middleware obtains the task status information of the current task, including the task subject and the message middleware connection information;

[0039] The task topic is used to configure and enable consumers.

[0040] Taking Kafka as the message middleware, the task status is obtained in real time. The following is the configuration information:

[0041] #The Topic to which the log is sent

[0042] task.kafka.topic=flink_job_status

[0043] #Kafka connection information

[0044] task.kafka.kafkaBroker=ip:port

[0045] The task scheduling device under the distributed computing framework includes a message middleware, a task status receiver and a task dispatcher;

[0046] The message middleware is used to obtain the task status information of the current task in real time, and return the obtained task status information to the task status receiver in real time;

[0047] The task status receiver is used to receive the task status information of the current task and perform state conversion on the task status information acquired in real time so as to prepare for reading by the task dispatcher;

[0048] The task dispatcher is responsible for obtaining a list of tasks to be executed from a task status receiver according to the unique identifier of the currently executed task, filtering tasks that meet the conditions in the task list according to the task status of the current task, and then assembling and triggering the filtered tasks to achieve task scheduling.

[0049] The message middleware includes but is not limited to Apache Kafka message queue system, RabbitMQ message queue system, RocketMQ message queue system, ActiveMQ message queue system and ZeroMQ message queue system.

[0050] The task status information of the current task, including the task subject and message middleware connection information;

[0051] The task topic is used to configure and enable consumers.

[0052] The task scheduling device under the distributed computing framework includes a memory and a processor; the memory is used to store a computer program, and the processor is used to implement the above method steps when executing the computer program.

[0053] The readable storage medium stores a computer program, and when the computer program is executed by a processor, the above method steps are implemented.

[0054] Compared with the prior art, the task scheduling method and device under the distributed computing framework not only reduces the need for manual operation through automated task scheduling, but also speeds up the completion of tasks, thereby greatly improving the overall work efficiency. It also reduces the problems caused by human operation errors and improves the accuracy and reliability of the overall work.

[0055] At the same time, scalability and elasticity are improved, making it easier for the system to adapt to load changes, cope with peak demands, and recover quickly from failures.

[0056] In addition, in software development, task orchestration is the key to implementing CI / CD. This method and device supports continuous integration and continuous deployment, which helps to speed up the development cycle and improve the quality and speed of software delivery.

[0057] In summary, the task scheduling method and device under the distributed computing framework can improve work efficiency and system performance, and help reduce costs, improve user satisfaction, and promote innovation. It is a key tool for modern enterprises and organizations to achieve agile operations and sustainable growth.

[0058] The above is a detailed introduction to a method and device for scheduling tasks in a distributed computing framework in an example of the present invention. This section uses specific examples to illustrate the principles and implementation methods of the invention. The above examples are only used to help understand the core ideas of the present invention. Without departing from the principles of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

Claims

1. A task scheduling method under a distributed computing framework, Features: The following steps are involved: Step S1: Use the message middleware to obtain the task status information of the current task in real time, and return the obtained task status information to the task status receiver in real time; Step S2: The task status receiver performs state conversion on the task status information acquired in real time so as to prepare for reading by the task dispatcher; Step S3: The task dispatcher obtains a list of tasks to be executed from the task status receiver according to the unique identifier of the currently executed task, and filters tasks that meet the conditions in the task list according to the task status of the current task; Step S4: The task dispatcher assembles and triggers the filtered tasks, thereby realizing the scheduling of tasks.

2. The task scheduling method under the distributed computing framework according to claim 1, Features: In step S1, the message middleware includes but is not limited to Apache Kafka message queue system, RabbitMQ message queue system, RocketMQ message queue system, ActiveMQ message queue system and ZeroMQ message queue system.

3. The task scheduling method under the distributed computing framework according to claim 2, Features: In step S1, the message middleware obtains the task status information of the current task, including the task subject and the message middleware connection information; The task topic is used to configure and enable consumers.

4. A task scheduling device under a distributed computing framework, Features: Includes message middleware, task status receiver and task dispatcher; The message middleware is used to obtain the task status information of the current task in real time, and return the obtained task status information to the task status receiver in real time; The task status receiver is used to receive the task status information of the current task and perform state conversion on the task status information acquired in real time so as to prepare for reading by the task dispatcher; The task dispatcher is responsible for obtaining a list of tasks to be executed from a task status receiver according to the unique identifier of the currently executed task, filtering tasks that meet the conditions in the task list according to the task status of the current task, and then assembling and triggering the filtered tasks to achieve task scheduling.

5. The task scheduling device under the distributed computing framework according to claim 4, Features: The message middleware includes but is not limited to Apache Kafka message queue system, RabbitMQ message queue system, RocketMQ message queue system, ActiveMQ message queue system and ZeroMQ message queue system.

6. The task scheduling device under the distributed computing framework according to claim 4, Features: The task status information of the current task, including the task subject and message middleware connection information; The task topic is used to configure and enable consumers.

7. A task scheduling device under a distributed computing framework, Features: The method comprises a memory and a processor; the memory is used to store a computer program, and the processor is used to implement the method steps as claimed in any one of claims 1 to 3 when executing the computer program.

8. A readable storage medium, Features: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps according to any one of claims 1 to 3 are implemented.