Task scheduling method, device, equipment, system and storage medium

By matching the task number interval in the scheduling device, selecting an appropriate task scheduling mode and allocating tasks, the problem of poor task scheduling in distributed systems is solved and better task scheduling efficiency is achieved.

CN118535291APending Publication Date: 2024-08-23HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310119574.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-15
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In distributed systems, unreasonable task scheduling methods lead to poor task scheduling effects, especially the problem of adaptation between different hardware environments that is difficult to solve.

Method used

The scheduling device obtains a task scheduling mode that matches the application to be executed from a variety of task scheduling modes, selects an appropriate scheduling mode based on the task number range matching, starts the corresponding scheduling mode according to the configuration data, and allocates tasks to improve the scheduling effect.

Benefits of technology

It effectively improves the effect of task scheduling and avoids the adaptation of applications with large workloads to devices with small processing capabilities, thereby improving the scheduling efficiency and effect of multiple tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535291A
    Figure CN118535291A
Patent Text Reader

Abstract

The invention discloses a task scheduling method, device, equipment and system and a storage medium, and relates to the technical field of computers. The scheduling device sets a plurality of different task scheduling modes, and executes different task scheduling modes for the application according to the number of tasks in the application, so that the scheduling of the plurality of tasks in the application is realized. The task scheduling mode of the application can be determined according to the task load included in the application, so that the problem that the application (such as massive tasks) with a relatively large task load is adaptive to a scene with a simple scheduling mode, such as an all-in-one machine or small equipment, is avoided, the task scheduling process of the application is adaptive to a better task scheduling mode according to the task load, and the task scheduling efficiency is improved. And the scheduling effect of the scheduling equipment on the multiple tasks in the application can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a task scheduling method, device, equipment, system and storage medium. Background Art

[0002] Task scheduling refers to the process of a system executing a task at an agreed specific time in order to complete a specific task. Task scheduling technology can be applied to a variety of scenarios: small devices, all-in-one machines, and distributed systems. Applications running in distributed systems may include: big data, artificial intelligence (AI), cloud, etc. When applications are deployed to different hardware environments, the applications will be divided into different numbers of tasks, and the task scheduling methods will be different. However, when the task scheduling method used for a specified hardware environment is applied to other hardware environments, the effect of task scheduling is poor. Therefore, how to provide a more effective task scheduling method has become a problem that needs to be solved urgently. Summary of the invention

[0003] The present application provides a task scheduling method, apparatus, device, system and storage medium for solving the problem of poor task scheduling effect caused by unreasonable task scheduling mode adapted to applications.

[0004] In a first aspect, the present application provides a task scheduling method. The method is executed by a scheduling device, which can be a single computer or a computer cluster consisting of multiple computers connected via a local area network or Ethernet. The task scheduling method includes: the scheduling device obtains a first task scheduling mode that matches the application to be executed from a plurality of set task scheduling modes. Among them, the application to be executed includes multiple tasks, and the number of the multiple tasks matches the task quantity interval corresponding to the first task scheduling mode. And, the scheduling device obtains a scheduling request for the application to be executed, and the scheduling request carries the configuration data of the first task scheduling mode. Thereby, the scheduling device starts the first task scheduling mode according to the configuration data carried by the scheduling request, and allocates multiple tasks in the application to be executed.

[0005] In this embodiment, the scheduling device sets a variety of different task scheduling modes, and executes different task scheduling modes for the application according to the number of tasks in the application, thereby realizing the scheduling of multiple tasks in the application. Since the task scheduling mode of the application can be determined according to the amount of tasks included in the application, the problem of adapting applications with large task volumes (such as massive tasks) to scenarios with simple scheduling methods such as all-in-one machines or small devices is avoided, thereby adapting the task scheduling process of the application to a more optimal task scheduling mode according to the amount of tasks, which is conducive to improving the scheduling effect of the scheduling device on multiple tasks in the application.

[0006] In a possible implementation, the scheduling device obtains multiple task volume intervals corresponding to multiple task scheduling modes, wherein one task scheduling mode corresponds to one task volume interval. The scheduling device determines the task volume interval in which the number of tasks included in the to-be-executed application is located, and obtains a first task scheduling mode that matches the number of the multiple tasks.

[0007] In this implementation, the scheduling device adaptively selects the task volume interval in which the number of tasks is located according to the number of tasks included in the application to be executed, and determines the task scheduling mode corresponding to the task volume interval according to the selected task volume interval, thereby avoiding the application to be executed with a large amount of tasks being adapted to a task scheduling mode with a small amount of processing tasks. Thus, the scheduling device can adapt the task scheduling process of the application to a more optimal task scheduling mode according to the number of tasks included in the application to be executed, which is conducive to improving the scheduling effect of the scheduling device on multiple tasks in the application.

[0008] In a possible implementation, the process of determining the first task scheduling mode by the scheduling device may include: the scheduling device compares the number of multiple tasks included in the application to be executed with multiple task volume intervals corresponding to multiple task scheduling modes, and obtains at least one candidate task scheduling mode corresponding to the task volume interval in which the number of the multiple tasks is located. Thus, the scheduling device obtains the hardware environment corresponding to the at least one candidate task scheduling mode, and selects the first task scheduling mode whose hardware environment is consistent with the hardware environment of the scheduling device from the at least one candidate task scheduling mode.

[0009] In this embodiment, the scheduling device selects a task scheduling mode consistent with the hardware environment of the scheduling device from a plurality of candidate task scheduling modes, so that multiple tasks included in the application to be executed can be adapted to a better task scheduling mode, which is conducive to improving the scheduling effect of the scheduling device on multiple tasks in the application to be executed.

[0010] For example, the hardware environment here is used to indicate the number and type of computers involved in the running process of the application, the connection mode of the computers, etc. For example, the computer can be but is not limited to: a terminal, a server, a network card or other electronic equipment (such as a specific small device or an all-in-one machine), etc. The connection mode of the computer can include but is not limited to: a star connection and a bus connection, etc.

[0011] In a possible implementation, the scheduling device starts the first task scheduling mode according to the configuration data carried by the scheduling request, and the process of allocating multiple tasks in the application to be executed may include: if the number of multiple tasks contained in the application to be executed is greater than or equal to the set threshold, the scheduling device starts the management node, the data persistence node, the scheduling node and multiple execution nodes according to the configuration data carried by the scheduling request. The management node obtains multiple tasks and writes multiple groups of data corresponding to the multiple tasks to the data persistence node. Among them, one task corresponds to a group of data. The data persistence node stores the multiple groups of data. The scheduling node sends the multiple groups of data to multiple execution nodes respectively, and each execution node receives at least one group of data from the multiple groups of data.

[0012] Exemplarily, the aforementioned multiple execution nodes include a first execution node and a second execution node. The scheduling node sends a first set of data to the first execution node, where the first set of data is data to be calculated by the first execution node among the multiple sets of data. The scheduling node sends a second set of data to the second execution node, where the second set of data is data to be calculated by the second execution node among the multiple sets of data.

[0013] In a possible implementation, the scheduling device starts the first task scheduling mode according to the configuration data carried by the scheduling request, and the process of allocating multiple tasks in the application to be executed may also include: if the number of the multiple tasks is less than a set threshold, the scheduling device starts the management node according to the configuration data carried by the scheduling request. The management node obtains multiple groups of data and executes the tasks corresponding to the multiple groups of data.

[0014] Exemplarily, the multiple groups of data include a first group of data and a second group of data. The first group of data is data to be calculated for a first task among multiple tasks, and the second group of data is data to be calculated for a second task among multiple tasks. The management node stores the first group of data and the expected usage time of the first data, as well as the second group of data and the expected usage time of the second data. When the management node determines that the expected usage time of the first group of data has been reached, the first task corresponding to the first group of data is executed. When the management node determines that the expected usage time of the second group of data has been reached, the second task corresponding to the second group of data is executed.

[0015] In a second aspect, the present application provides a task scheduling device, which includes various units for executing the task scheduling method in the first aspect or any possible implementation of the first aspect.

[0016] In one possible design, the task scheduling device includes: a mode acquisition unit, which is used to acquire a first task scheduling mode that matches the application to be executed from a plurality of set task scheduling modes. The executing application includes multiple tasks, and the number of the multiple tasks matches the task quantity interval corresponding to the first task scheduling mode. A request acquisition unit, which is used to acquire a scheduling request for the application to be executed. The scheduling request carries configuration data of the first task scheduling mode. An allocation unit, which is used to start the first task scheduling mode according to the configuration data carried by the scheduling request and allocate multiple tasks.

[0017] The beneficial effects of this aspect can be found in the description of the first aspect or any possible implementation of the first aspect, and will not be repeated here. The task scheduling device has the function of implementing the first aspect or any possible implementation of the first aspect, which can be implemented by hardware or by hardware executing corresponding software, and this application is not limited to this.

[0018] In a third aspect, the present application provides a scheduling device. The scheduling device includes an interface circuit and a processor. The interface circuit is used to receive a signal from a device other than the scheduling device and transmit it to the processor, or send a signal from the processor to a device other than the scheduling device. The processor implements the operation steps of the task scheduling method in the first aspect or any possible implementation of the first aspect through a logic circuit or execution code instructions.

[0019] In a fourth aspect, the present application provides a task scheduling system. The task scheduling system includes: a memory and a scheduling device provided in the third aspect. The memory is used to store multiple task scheduling modes. The scheduling device is used to implement the operation steps of the task scheduling method in the first aspect or any possible implementation of the first aspect.

[0020] In a fifth aspect, the present application provides a computer-readable storage medium. The storage medium stores a computer program or instruction, and when the computer program or instruction is executed by a scheduling device, the operation steps of the task scheduling method in the first aspect or any possible implementation of the first aspect are implemented.

[0021] Optionally, when the computer program or instruction is executed by the task scheduling system provided by the fourth aspect, the operating steps of the task scheduling method in the first aspect or any possible implementation of the first aspect can also be implemented.

[0022] In a sixth aspect, the present application provides a computer program product. When the computer program product is run on a computing device, the computing device is caused to perform the operation steps of the task scheduling method in the first aspect or any possible implementation of the first aspect. The computing device here may refer to the scheduling device provided in the third aspect, or refer to a task scheduling system including the scheduling device provided in the third aspect.

[0023] Regarding the beneficial effects that can be achieved in the second to sixth aspects above, reference can be made to the description of the first aspect or any possible implementation of the first aspect, and no further description is given here. Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A schematic diagram of a task scheduling system provided for this application;

[0025] Figure 2a Schematic diagram of the task scheduling system software architecture provided for this application Figure 1 ;

[0026] Figure 2b Schematic diagram 2 of the task scheduling system software architecture provided for this application;

[0027] Figure 2c Schematic diagram of the task scheduling system software architecture provided for this application Figure 3 ;

[0028] Figure 2d Schematic diagram of the task scheduling system software architecture provided for this application Figure 4 ;

[0029] Figure 3 A flowchart of a task scheduling method provided in this application;

[0030] Figure 4 A configuration diagram of configuration data provided for this application;

[0031] Figure 5 A flowchart of the matching candidate task scheduling mode provided by this application;

[0032] Figure 6 A structural diagram of a task scheduling device provided in this application;

[0033] Figure 7 A schematic diagram of the structure of a scheduling device provided for this application. DETAILED DESCRIPTION

[0034] In order to make the description of the following embodiments clear and concise, a brief introduction to the related technology is first given.

[0035] Figure 1 A schematic diagram of a task scheduling system provided in the present application is shown. The task scheduling system 100 includes a processing device 110 .

[0036] In a first possible example, the processing device 110 may refer to a computer 111. For example, when the processing device 110 is a computer 111, the processing device 110 may include a processor and one or more interfaces.

[0037] The processor implements the scheduling of multiple tasks in the application to be executed according to the scheduling request of the application to be executed received. The processor may include one or more processor cores. The processor may be a very large-scale integrated circuit. An operating system and other software programs are installed in the processor, so that the processor can access the memory and various peripheral component interconnect (Peripheral Component Interconnect express, PCIe) devices. It can be understood that in this embodiment, the core in the processor may be a central processing unit (CPU) or other specific integrated circuits (application specific integrated circuit, ASIC). The processor may also be other general-purpose processors, digital signal processors (digital signal processing, DSP), application-specific integrated circuits (application-specific integrated circuit, ASIC), field programmable gate arrays (fieldprogrammable gate array, FPGA), graphics processors (graphics processing unit, GPU), AI chips, systems on chip (system-on-a-chip, SoC) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. In practical applications, the processing device 110 may also include multiple processors.

[0038] The processing device 110 includes one or more interfaces for receiving a scheduling request for an application to be executed sent by an external device.

[0039] In a possible scenario, the task scheduling system 100 may also include a storage device and a network. The network may implement the function of data transmission between the processing device 110 and the storage device. The network may be the Internet, or other networks (such as Ethernet). The network may include one or more network devices, which may be routers or switches, etc.

[0040] The storage device can store multiple task scheduling modes that are set. The storage device can be a cache, solid state drives (SSD), hard disk drives (HDD), storage class memory (SCM), memory or other storage media, exemplarily, storage particles that store a specific number of bits: single level cell (SLC), double-level cell (MLC), triple-level cell (TLC) or quad level cell (QLC), etc.

[0041] In one possible scenario, the processing device 110 and the storage device are set in the same physical device. In other words, when the processing device 110 and the storage device are set in the same physical device, the task scheduling system 100 refers to the physical device. For example, the physical device is a server, and the processing device 110 and the storage device are connected via a universal serial bus (USB) or PCIe. Figure 1 As shown, the connection (mode 1) between the processing device 110 and the storage device is PCIe.

[0042] In another possible scenario, the processing device 110 and the storage device are set in different physical devices. In other words, when the processing device 110 and the storage device are set in different physical devices, the task scheduling system 100 refers to a system including multiple physical devices. For example, the processing device 110 is a server, and the storage device is a memory external to the server. The processing device 110 and the storage device can be wirelessly connected through a network such as the Internet, and the processing device 110 and the storage device can also be wired through Ethernet. Figure 1 As shown, the connection between the processing device 110 and the storage device (mode 2) is Ethernet, and the connection between the processing device 110 and the storage device (mode 3) is a wireless connection.

[0043] In a second possible example, the processing device 110 may refer to a computer cluster 112 in which multiple computers are deployed. The computer cluster 112 refers to a collection of computers connected via a local area network or the Internet. Exemplarily, the computer cluster 112 may have a rack, and the rack may establish communication for multiple computers contained in the computer cluster 112 via a wired connection, such as a universal serial bus (USB) or a PCIe high-speed bus. The computer cluster 112 is generally used to perform large tasks (also referred to as jobs), where jobs are generally large jobs that require more resources to be processed in parallel, and the present embodiment does not limit the nature and number of jobs. A job may contain multiple scheduling tasks, which may be assigned to multiple scheduling resources for execution. Most tasks are executed concurrently or in parallel, while some tasks need to rely on data generated by other tasks. Each computing device in the computer cluster uses the same hardware and the same operating system; different hardware and different operating systems may also be used in the computers in the computer cluster according to business needs.

[0044] like Figure 1 As shown, the computer cluster 112 includes multiple computers, such as computer 1121 to computer 1124, each of which can be used to implement the scheduling of multiple tasks in the application to be executed. For a computer, it can include multiple processors or processor cores, each of which can be a scheduling resource or execution node. Therefore, a physical computer can provide multiple scheduling resources or execution nodes.

[0045] The computer cluster 112 can process multiple types and multiple numbers of jobs. For example, the above-mentioned job refers to the scheduling of multiple tasks in the application to be executed, such as the scheduling of scheduled tasks and the scheduling of tasks to be executed in sequence.

[0046] Taking the job as a scheduling request as an example, Figure 1 In the embodiment, the scheduling request can be submitted from an external device to the computer 1121 through the network to the computer cluster 112. In the case where the scheduling request is submitted from the computer 1121 to the computer cluster 112, the computer 1121 can be used to manage all computers in the computer cluster 112 to complete one or more tasks included in the scheduling request, such as scheduling computing resources or storage resources of other computers. In another possible implementation, the location where the scheduling request is submitted can also be other computers in the computer cluster 112. This embodiment does not limit the location where the scheduling request is submitted.

[0047] like Figure 1As shown, one or more virtual machines may be running in the computer cluster 112. A virtual machine refers to a virtual device obtained by virtualizing physical computing resources, storage resources, and network resources through virtualization technology.

[0048] In a possible example, one or more virtual machines (VMs) are running on a host, such as two VMs are running on computer 1121 and one VM is running on computer 1124 .

[0049] In another possible example, a VM runs on multiple computers, such as a VM utilizing processing resources of computer 1121 and storage resources of computer 1124 .

[0050] It is worth noting that the above processing device 110 may refer to a single computing device with task processing capabilities, such as a desktop computer, a laptop computer, a mobile phone or a tablet computer.

[0051] Combination of the above Figure 1 The task scheduling system of this application is described below. Figure 1 , Figure 2a-2d The software architecture of the task scheduling system of the present application is described. The number of multiple tasks in the application to be executed has different relationships with the set threshold, resulting in different task scheduling modes adopted by the task scheduling system of the present application. Different task scheduling modes start different working nodes, so that the task scheduling system of the present application has different software architectures. The working nodes here may include, but are not limited to: management nodes, data persistence nodes, scheduling nodes, and multiple execution nodes, etc.

[0052] In a feasible scenario, the working node refers to a software node that completes a specific task. For example, the working node is a software node that completes tasks such as receiving a scheduling request and executing a task to be scheduled. The working node can be deployed on one or more physical devices. For example, a management node, a data persistence node, a scheduling node, and an execution node can be deployed on one or more computers 111.

[0053] In another feasible scenario, the working node refers to a hardware device for implementing different functions. For example, a working node refers to a processing device, such as Figure 1 Any of the processing devices 110 described.

[0054] In a first possible implementation, the software architecture 200a of the task scheduling system includes a management node 220, a data persistence node 210, a scheduling node 230 and a plurality of execution nodes 240. Figure 2a As shown, Figure 2a Schematic diagram of the task scheduling system software architecture provided for this application Figure 1. In view of the functions of the above various working nodes, the following Figure 2a Provide detailed explanation.

[0055] The management node 220 obtains multiple tasks in the application to be executed, and writes multiple groups of data corresponding to the multiple tasks to the data persistence node 210. One task corresponds to one group of data. Each group of data in the multiple groups of data may include: input data of each task included in the application to be executed, and a function (or function identifier, etc.) required to be called by each task. Exemplarily, the management node 220 obtains the first task and the second task in the application to be executed, and writes the first group of data corresponding to the first task and the second group of data corresponding to the second task to the data persistence node 210 respectively.

[0056] In a possible scenario, the task may be a scheduled task or a task executed in sequence. Exemplarily, the management node 220 obtains multiple scheduled tasks contained in the application to be executed, and writes multiple sets of data corresponding to the multiple scheduled tasks (such as the expected usage time of the scheduled tasks) into the data persistence node 210.

[0057] The management node 220 determines the correspondence between the received multiple tasks and the scheduling node 230. Exemplarily, the management node 220 divides the multiple tasks in the application to be executed into at least one task block, and the number of tasks contained in each task block may be the same or different. For example, the management node 220 divides the multiple tasks into task blocks 0 to task blocks m. Among them, the number of tasks contained in task block 0 is i, the number of tasks contained in task block 1 is j, and the number of tasks contained in task block m is k. i, j and k may be the same or different, and m, i, j and k are positive integers. The management node 220 determines the correspondence between task blocks 0 to task blocks m and the scheduling node 230.

[0058] The scheduling node 230 determines whether each task in the task block meets the execution condition according to the correspondence between the task block determined by the management node 220 and the scheduling node 230. Exemplarily, at least one timer is provided in the scheduling node 230. Timer 1 and timer 2 are provided in the scheduling node 230. The scheduling node 230 determines whether each task included in task block 0 and task block 1 has reached the usage time according to the correspondence between task block 0 and timer 1 and the correspondence between task block 1 and timer 2 specified by the management node 220.

[0059] The scheduling node 230 sends multiple sets of data corresponding to multiple tasks that meet the execution conditions to multiple execution nodes 240 respectively, and each execution node 240 receives at least one set of data from the multiple sets of data. Exemplarily, the multiple execution nodes 240 include a first execution node and a second execution node. The scheduling node 230 sends the first set of data corresponding to the first task in the task block 0 that has reached the expected use time to the first execution node. The scheduling node 230 sends the second set of data corresponding to the second task in the task block 1 that has reached the expected use time to the second execution node.

[0060] The scheduling node 230 receives the execution result of the task sent by the execution node 240, and sends the execution result to the data persistence node 210. Exemplarily, the scheduling node receives the execution result of the first task returned by the first execution node, and sends the execution result of the first task to the data persistence node 210.

[0061] The execution node 240 receives at least one set of data sent by the scheduling node 230, and calls the resources of the execution node 240 to execute at least one task corresponding to the at least one set of data. One task corresponds to a set of data. The execution node 240 sends the execution result of the at least one task to the scheduling node 230.

[0062] The data persistence node 210 receives multiple sets of data corresponding to multiple tasks sent by the management node 220, and stores the multiple sets of data.

[0063] Exemplarily, the data persistence node 210 receives a first set of data corresponding to the first task and a second set of data corresponding to the second task sent by the management node 220, and stores the first set of data and the second set of data.

[0064] The data persistence node 210 receives the execution results of the multiple tasks sent by the scheduling node 230 and stores the execution results.

[0065] In a second possible implementation, the software architecture 200b of the task scheduling system includes a management node 220. Figure 2b As shown, Figure 2b The task scheduling system software architecture diagram provided in this application is shown in Figure 2. Figure 2b Provide detailed explanation.

[0066] The management node 220 obtains multiple sets of data corresponding to multiple tasks in the application to be executed, and executes the multiple tasks corresponding to the multiple sets of data. Exemplarily, the management node 220 obtains a first set of data and a second set of data. The first set of data is the data to be calculated corresponding to the first task among the multiple tasks included in the application to be executed, and the second set of data is the data to be calculated corresponding to the second task among the multiple tasks included in the application to be executed.

[0067] In a possible scenario, the management node 220 stores multiple sets of data and the expected usage time of each set of data in the multiple sets of data. The management node 220 determines whether each set of the stored multiple sets of data has reached the expected usage time. For the set of data that has reached the expected usage time, the management node 220 executes the task corresponding to the set of data.

[0068] Exemplarily, the management node 220 stores the first set of data and the expected usage time of the first set of data. A timer 1 is provided in the management node 220. After the management node 220 determines the correspondence between the first set of data and the timer 1, it determines whether the first task corresponding to the first set of data has reached the expected usage time according to the timer 1. If the first task corresponding to the first set of data has reached the expected usage time, the management node 220 executes the first task.

[0069] For example, if the clock input signal of timer 1 is 32.768kHz, the expected usage time of the first task is 5 seconds later. The management node 220 counts the pulse signals generated by timer 1. When the number of pulse signals generated by timer 1 is 32768*5, the management node 220 determines that the first task has reached the expected usage time and executes the first task. If the number of pulse signals generated by timer 1 is less than 32768*5, the management node 220 continues to wait until the number of pulse signals generated by timer 1 is equal to 32768*5, and then the management node 220 executes the first task.

[0070] In another possible scenario, the management node 220 stores multiple sets of data and the expected execution order of each set of data in the multiple sets of data. The management node 220 determines whether the tasks corresponding to each set of data in the stored multiple sets of data have reached the expected execution order. For the set of data that has reached the expected execution order, the management node 220 executes the tasks corresponding to the set of data.

[0071] Exemplarily, the management node 220 stores the first group of data and the second group of data, and the expected usage order of the first group of data and the second group of data. The management node 220 determines whether the first group of data and the second group of data meet the expected usage order, and if so, executes the first task corresponding to the first group of data and the second task corresponding to the second group of data according to the expected execution order.

[0072] For example, if the second task corresponding to the second set of data needs to be started after the first task corresponding to the first set of data is completed, in this case, the management node 220 determines whether the first task corresponding to the first set of data is completed. If it is completed, the management node 220 starts the execution process of the second task corresponding to the second set of data.

[0073] As an optional scenario, the management node 220 stores the execution results of multiple tasks corresponding to the multiple groups of data. Exemplarily, the management node 220 stores the execution result of the first task corresponding to the first group of data, and the execution result of the second task corresponding to the second group of data.

[0074] In a third possible implementation, the software architecture 200c of the task scheduling system includes a management node 220, a scheduling node 230, and a plurality of execution nodes 240. Figure 2c As shown, Figure 2c Schematic diagram of the task scheduling system software architecture provided for this application Figure 3 . In view of the functions of various working nodes, the following Figure 2c Provide detailed explanation.

[0075] Figure 2c and Figure 2a The difference is: Figure 2c The management node 220 can be used to implement Figure 2a The role of the management node 220 and the data persistence node 210. Figure 2c The specific implementation of the scheduling node 230 and the execution node 240 can be referred to Figure 2a The description is not repeated here.

[0076] In a fourth possible implementation, the software architecture 200d of the task scheduling system includes a management node 220 and a plurality of execution nodes 240. Figure 2d As shown, Figure 2d Schematic diagram of the task scheduling system software architecture provided for this application Figure 4 . In view of the functions of various working nodes, the following Figure 2d Provide detailed explanation.

[0077] Figure 2d and Figure 2a The difference is: Figure 2d The management node 220 can be used to implement Figure 2a The functions of the management node 220 and the data persistence node 210. Figure 2d The execution node 240 can be used to implement Figure 2a The functions of the scheduling node 230 and the execution node 240 are described in detail in Figure 2a , which will not be elaborated here.

[0078] It is worth noting that different hardware environments of the same task scheduling system software architecture can constitute different task scheduling modes.

[0079] For example, Figure 2aThe described task scheduling architecture with a data persistence node 210, a management node 220, a scheduling node 230 and multiple execution nodes 240 can form a task scheduling mode when a star connection is adopted, and can form another task scheduling mode when a bus connection is adopted.

[0080] Combination of the above Figure 1 , Figure 2a-2d The task scheduling system of this application is described below. Figure 3 The task scheduling method provided in this application is described. Figure 3 The following is a flow chart of a task scheduling method provided by the present application. The task scheduling method can be executed by a scheduling device. For example, the scheduling device can be Figure 1 The processing device 110 shown in FIG.

[0081] Exemplarily, the scheduling device stores multiple task scheduling modes including mode 1. Each task scheduling mode corresponds to scheduling to-be-executed applications in different task quantity intervals. For example, the following Table 1 shows the correspondence between different types of task scheduling modes, software architectures, and task quantity intervals.

[0082] Table 1

[0083] Serial number Task scheduling mode type Software Architecture Task volume range 1 Mode 1 200a Interval 1 (greater than or equal to 100,000) 2 Mode 2 200b Interval 2 (less than or equal to 1000) 3 Mode 3 200c Interval 3 (less than or equal to 100,000) 4 Mode 4 200d Range 4 (1,000 to 10,000)

[0084] In the present application, the above mode 1 may be referred to as the first task scheduling mode, mode 2 may be referred to as the second task scheduling mode, mode 3 may be referred to as the third task scheduling mode, and mode 4 may be referred to as the fourth task scheduling mode, without limitation.

[0085] It is worth noting that what is given in Table 1 is only an example provided in this embodiment, and should not be understood as a limitation of the task volume intervals corresponding to different task scheduling modes in this application. In the task scheduling process, the task volume intervals corresponding to different task scheduling modes can be preset or set by the user according to needs.

[0086] The task scheduling method of the present application is specifically described below by taking a scheduling device to execute the task scheduling method of the present application. The task scheduling method includes the following steps S310 to S330.

[0087] Step S310: The scheduling device obtains mode 1 that matches the application to be executed from the set multiple task scheduling modes.

[0088] The application to be executed includes multiple tasks. For example, the application to be executed may be, but is not limited to: AI application, big data application, HPC application, cloud computing application, Internet of Things application, etc.

[0089] In one possible scenario, the scheduling device obtains multiple task volume intervals of multiple task scheduling modes. One task scheduling mode corresponds to one task volume interval. The scheduling device compares the number of multiple tasks in the to-be-executed application with the multiple task volume intervals corresponding to the multiple task scheduling modes, and obtains a task scheduling mode that matches the number of tasks in the to-be-executed application.

[0090] For example, if the number of tasks included in the application to be executed is in the task volume interval corresponding to sequence number 1 in Table 1, the scheduling device selects mode 1 to implement scheduling of multiple tasks in the application to be executed.

[0091] In this implementation, the scheduling device selects the task volume interval in which the number of tasks is located according to the number of tasks included in the to-be-executed application, and determines the task scheduling mode corresponding to the task volume interval according to the selected task volume interval. This avoids the to-be-executed application with a large amount of tasks being adapted to a task scheduling mode with a small amount of processing tasks, thereby adapting the task scheduling process of the application to a more optimal task scheduling mode according to the number of tasks included in the to-be-executed application, which is conducive to improving the scheduling effect of the scheduling device on multiple tasks in the application.

[0092] This embodiment is described by taking mode 1 in Table 1 as an example, but the task scheduling method provided in this application can also be applied to other modes in Table 1. In some optional implementations, the task scheduling mode determined by the scheduling device from multiple task scheduling modes can be any one, and the number of tasks of the application to be executed matches the task amount interval of the determined task scheduling mode.

[0093] Step S320: The scheduling device obtains a scheduling request of the application to be executed.

[0094] The scheduling request carries configuration data of mode one.

[0095] The configuration data carried by the scheduling request may refer to whether to provide data supported by services such as external data sources, external registration centers, hardware resource libraries, and data on which working nodes to start. For example, the configuration data includes: the number of tasks that can be executed in parallel at the same time, the calling relationship between different types of tasks, and the maximum executable time of each task, etc.

[0096] The following four cases respectively describe different data sources for configuration data. Figure 4 As shown, Figure 4 A configuration diagram of configuration data provided for this application.

[0097] Case 1: When the configuration data is provided by an external data source, the source of the external data source can be databases such as etcd, zk, sqlite, PostgreSQL, mysql, etc.

[0098] For example, Figure 4 To configure an external data source in , you can use the following instructions to do so.

[0099] "db.external = true (whether to enable external data source, yes);

[0100] db.driver = com.mysql.jdbc.Driver (start the database);

[0101] db.username = xxx1 (set the database user name to 'xxx1');

[0102] db.password = xxx2 (set the database password to 'xxx2');

[0103] db.url=jdbc:mysql: / / ip:3306 / xxxxx3 (determine the database address)".

[0104] The scheduling device enables different external data sources to adapt to applications containing different numbers of tasks, so that the optimal data source support can be obtained when the tasks in the to-be-executed application are rescheduled.

[0105] Case 2: When the configuration data is provided by an external registry, the external registry can be supported by etcd.

[0106] For example, Figure 4 To configure an external registry, you can use the following instructions.

[0107] "register.external = true (whether to enable external registration center, yes);

[0108] register.etcd.endpoints = yyy1 (etcd node list is 'yyy1');

[0109] register.etcd.cafile=yyy2 (etcd certificate cafile is configured as 'yyy2');

[0110] register.etcd.certfile=yyy3 (etcd certificate certfile is configured as 'yyy3');

[0111] register.etcd.keyfile=yyy4 (etcd certificate keyfile is configured as 'yyy4')".

[0112] The dispatching device enables an external registration center for account management and can store used configuration data. The dispatching device can select from the used configuration data as needed, or reconfigure as needed.

[0113] Case 3: When the configuration data is provided by a hardware resource library, the hardware resource library can be managed by a k8s cluster or a mesos cluster.

[0114] Case 4: When the configuration data is the data for starting the working node, it can be implemented through the following instructions.

[0115] For example, managing the configuration of nodes.

[0116] scheduler.role = manager (set the scheduling service role to 'manager');

[0117] scheduler.http.port = 443 (set the scheduling layer's external exposure service configuration to '443');

[0118] scheduler.http.cafile = zzz1 (set cafile to 'zzz1');

[0119] scheduler.http.certfile = zzz2 (set certfile to 'zzz2');

[0120] scheduler.http.keyfile = zzz3 (set keyfile to 'zzz3').

[0121] Another example is the configuration of the scheduling node.

[0122] scheduler.role = scheduler (set the scheduling service role to 'scheduler').

[0123] Another example is the configuration of the running node.

[0124] scheduler.role = executor (set the scheduling service role to 'executor');

[0125] scheduler.use_k8s = true (whether to use k8s, yes);

[0126] scheduler.k8s.kubeconfig=www1 (set kubeconfig to 'www1').

[0127] The scheduling device enables different working nodes to schedule the multiple tasks according to the number of the multiple tasks in the application to be executed, so that the multiple tasks in the application to be executed have a better scheduling effect.

[0128] It is worth noting that the above is only an example of the organization form and source of the configuration data provided in this embodiment, and should not be understood as a limitation of the present application. The scheduling device can configure one or more of situations 1 to 4 as needed. When the configuration data is used to start different task scheduling modes, or when the scheduling request carries a configuration identifier (or pointer), etc., the scheduling request should be considered to carry the above configuration data.

[0129] Step S330: The scheduling device starts mode 1 according to the configuration data carried in the scheduling request, and allocates multiple tasks included in the application to be executed.

[0130] In this implementation, the scheduling device sets a variety of different task scheduling modes, and executes different task scheduling modes for the application according to the number of tasks in the application, thereby realizing the scheduling of multiple tasks in the application. Since the task scheduling mode of the application can be determined according to the amount of tasks included in the application, the problem of adapting applications with large amounts of tasks (such as massive tasks) to scenarios with simple scheduling methods such as all-in-one machines or small devices is avoided, thereby adapting the application's task scheduling process to a more optimal task scheduling mode according to the amount of tasks, which is conducive to improving the scheduling effect of the scheduling device on multiple tasks in the application.

[0131] Combination of the above Figure 1 , Figure 2a-2d , Figure 3 , Figure 4 The task scheduling method of the present application is described, in which the corresponding task scheduling mode is matched according to the number of multiple tasks in the application to be executed. In this process, there may be a situation where a task amount interval corresponds to at least one candidate task scheduling mode. Figure 5 The flowchart of the matching candidate task scheduling mode provided in this application is as follows: Figure 5 A method for matching candidate task scheduling patterns is described. The method includes the following steps S510 to S530.

[0132] S510, the scheduling device compares the number of tasks in the to-be-executed application with multiple task volume intervals corresponding to multiple task scheduling modes, and obtains at least one candidate task scheduling mode corresponding to the task volume interval in which the number of tasks in the to-be-executed application is located according to Table 1. One task volume interval corresponds to at least one candidate task scheduling mode. The software architecture of the at least one candidate task scheduling mode is the same, but the connection method of the working nodes of the software architecture is different.

[0133] For example, if the number of tasks in the application to be executed is 1500, it corresponds to mode 4 in Table 1. Different hardware connection methods of mode 4 in Table 1 constitute different candidate modes 1 and 2. If a star connection is adopted, candidate mode 2 adopts a bus connection. Step S520, the scheduling device obtains the hardware environment corresponding to the at least one candidate task scheduling mode. Exemplarily, the scheduling device obtains the hardware environment corresponding to candidate mode 1 and candidate mode 2.

[0134] For example, the hardware environment corresponding to the candidate mode 1 is: the management node 220 of the candidate mode 1 is deployed on a single computer 111, and the scheduling node 230 of the candidate mode 1 is deployed on five computers 111 connected in a bus-type connection manner.

[0135] For another example, the hardware environment corresponding to the candidate mode 2 is: the management node 220 of the candidate mode 2 is deployed on a single computer 111, and the scheduling node 230 of the candidate mode 2 is deployed on three computers 111 connected in a star connection manner.

[0136] Step S530: The scheduling device selects a task scheduling mode whose hardware environment is consistent with the hardware environment of the scheduling device from the at least one candidate task scheduling mode.

[0137] Exemplarily, the scheduling device selects candidate mode 2 whose hardware environment is consistent with the hardware environment of the scheduling device from candidate mode 1 and candidate mode 2 as the task scheduling mode for multiple tasks in the application to be executed.

[0138] In this embodiment, the scheduling device selects a task scheduling mode consistent with the hardware environment of the scheduling device from at least one candidate task scheduling mode, so that multiple tasks included in the application to be executed can be adapted to a better task scheduling mode, which is conducive to improving the scheduling effect of the scheduling device on multiple tasks in the application to be executed.

[0139] Combination of the above Figure 1 , Figure 2a-2d , Figure 3-Figure 5 , describes in detail the task scheduling method provided by this application, and the following is combined with Figure 6 The task scheduling device of the present application is described.

[0140] Figure 6 A schematic diagram of the structure of a task scheduling device provided in this application, the task scheduling device 600 is used to implement the above Figure 3 The function of the scheduling device in the method embodiment shown in FIG. 1 can also achieve the beneficial effects of the above method embodiment. In the embodiment of the present application, the task scheduling device can be as follows: Figure 1 Shown are a computer 111 and a computer cluster 112 .

[0141] like Figure 6 As shown, the task scheduling device 600 includes a mode acquisition unit 610, a request acquisition unit 620 and an allocation unit 630. The task scheduling device 600 is used to implement the function of the scheduling device in any of the above embodiments.

[0142] The mode acquisition unit 610 is used to acquire a first task scheduling mode that matches the application to be executed from the set multiple task scheduling modes, wherein the application to be executed includes multiple tasks, and the number of the multiple tasks matches the task amount interval corresponding to the first task scheduling mode.

[0143] The request acquisition unit 620 is used to acquire a scheduling request of the application to be executed. The scheduling request carries configuration data of the first task scheduling mode.

[0144] The allocating unit 630 is used to start the first task scheduling mode according to the configuration data carried in the scheduling request, and allocate multiple tasks in the application to be executed.

[0145] In this embodiment, the task scheduling device sets a variety of different task scheduling modes, and executes different task scheduling modes for the application according to the number of tasks in the application to be executed, thereby realizing the scheduling of multiple tasks in the application. Since the task scheduling mode of the application can be determined according to the amount of tasks included in the application, the problem of adapting an application with a large amount of tasks (massive tasks) to a scenario with a simple scheduling method such as an all-in-one machine or a small device is avoided, so that the task scheduling process of the application is adapted to a more optimal task scheduling mode according to the amount of tasks, which is conducive to improving the scheduling effect of the task scheduling device on multiple tasks in the application.

[0146] In a possible scenario, the mode acquisition unit 610 is specifically used to acquire multiple task volume intervals of multiple task scheduling modes. One task scheduling mode corresponds to one task volume interval. The mode acquisition unit 610 is also specifically used to match the number of tasks in the application to be executed with the multiple task volume intervals to acquire the first task scheduling mode.

[0147] In a possible scenario, the mode acquisition unit 610 is specifically used to compare the number of tasks in the application to be executed with multiple task volume intervals corresponding to multiple task scheduling modes, and obtain at least one candidate task scheduling mode corresponding to the task volume interval in which the number of tasks in the application to be executed is located. The mode acquisition unit 610 is specifically used to obtain the hardware environment corresponding to the at least one candidate task scheduling mode. The mode acquisition unit 610 is also specifically used to select a first task scheduling mode whose hardware environment is consistent with the hardware environment of the scheduling device from the at least one candidate task scheduling mode.

[0148] In a possible scenario, if the number of multiple tasks in the application to be executed is greater than or equal to a set threshold, the allocation unit 630 is specifically used to start the management node, the data persistence node, the scheduling node and the multiple execution nodes according to the configuration data carried by the scheduling request. The management node obtains the multiple tasks in the application to be executed, and writes the multiple groups of data corresponding to the multiple tasks into the data persistence node. Among them, one task corresponds to a group of data. The data persistence node stores the multiple groups of data. The scheduling node sends the multiple groups of data to the multiple execution nodes respectively, and each execution node is used to receive at least one group of data in the multiple groups of data.

[0149] In a possible scenario, the multiple execution nodes include a first execution node and a second execution node. The scheduling node sends the multiple sets of data to the multiple execution nodes respectively, including: the scheduling node sends the first set of data to the first execution node, the first set of data is the data in the multiple sets of data to be calculated by the first execution node. The scheduling node sends the second set of data to the second execution node, the second set of data is the data in the multiple sets of data to be calculated by the second execution node.

[0150] In one possible scenario, if the number of the multiple tasks in the application to be executed is less than a set threshold, the allocation unit 630 is specifically configured to start the management node according to the configuration data carried in the scheduling request. The management node obtains multiple sets of data corresponding to the multiple tasks in the application to be executed, and executes the corresponding multiple tasks according to the multiple sets of data.

[0151] In a possible scenario, the management node obtains multiple sets of data and executes multiple tasks corresponding to the multiple sets of data, including: the management node stores the multiple sets of data and the expected usage time of each set of data. One task corresponds to a set of data. When determining that the expected usage time of each set of data has been reached, the management node executes the task corresponding to each set of data.

[0152] Combination of the above Figure 6 The task scheduling device provided by the present application is described in detail. Figure 7 The scheduling device provided in this application is described in detail. Figure 7 This is a schematic diagram of the structure of a scheduling device provided in this application. The scheduling device 700 can be used to implement the above Figure 3 , Figure 5 The function of the scheduling device in any of the method embodiments described above can also achieve the beneficial effects of the above method embodiments. In the embodiment of the present application, the scheduling device 700 can be as follows: Figure 1 Shown are a computer 111 and a computer cluster 112 .

[0153] like Figure 7As shown, the scheduling device 700 includes an interface circuit 710 and a processor 720. The interface circuit 710 is used to receive signals from other devices and transmit them to the processor 720, or send signals from the processor 720 to other devices. The processor 720 implements the Figure 3 , Figure 5 Any of the task scheduling methods described.

[0154] The present application also provides a task scheduling system, which includes a memory and Figure 7 The described scheduling device 700. The memory is used to store multiple task scheduling modes. The scheduling device 700 is used to implement the multiple task scheduling modes stored in the memory. Figure 3 , Figure 5 Any of the task scheduling methods described.

[0155] The present application also provides a chip system, which includes a processor for implementing the function of the scheduling device in the above method. In a possible example, the chip system also includes a memory for storing program instructions and / or data. The chip system can be composed of a chip, or can include a chip and other discrete devices.

[0156] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device. The computer program or instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instruction may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium may be a magnetic medium, for example, a floppy disk, a hard disk, a tape; it may also be an optical medium, for example, a digital video disc (DVD); it may also be a semiconductor medium, for example, a solid state drive (SSD).

[0157] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A task scheduling method, characterized in that: The method is performed by a scheduling device, and the method includes: Acquire a first task scheduling mode that matches the application to be executed from the set multiple task scheduling modes; the application to be executed includes multiple tasks, and the number of the multiple tasks matches the task amount interval corresponding to the first task scheduling mode; Obtaining a scheduling request of the application to be executed, where the scheduling request carries configuration data of the first task scheduling mode; The first task scheduling mode is started according to the configuration data carried in the scheduling request, and the plurality of tasks are allocated.

2. The method according to claim 1, characterized in that The acquiring, from the set multiple task scheduling modes, a first task scheduling mode matching the application to be executed includes: Acquire multiple task volume intervals of the multiple task scheduling modes, where one task scheduling mode corresponds to one task volume interval; The number of tasks in the to-be-executed application is matched with the multiple task amount intervals to obtain the first task scheduling mode.

3. The method according to claim 2, characterized in that The matching the number of tasks in the to-be-executed application with the multiple task amount intervals to obtain the first task scheduling mode includes: Comparing the quantity with the multiple task volume intervals, obtaining at least one candidate task scheduling mode corresponding to the task volume interval in which the quantity is located; Acquire a hardware environment corresponding to the at least one candidate task scheduling mode; A first task scheduling mode whose hardware environment is consistent with the hardware environment of the scheduling device is selected from the at least one candidate task scheduling mode.

4. The method according to any one of claims 1 to 3, characterized in that If the number of the plurality of tasks is greater than or equal to a set threshold, starting the first task scheduling mode according to the configuration data carried in the scheduling request and allocating the plurality of tasks includes: Starting a management node, a data persistence node, a scheduling node and multiple execution nodes according to the configuration data carried in the scheduling request; The management node obtains the multiple tasks, and writes multiple groups of data corresponding to the multiple tasks into the data persistence node; one task corresponds to one group of data; The data persistence node stores the multiple groups of data; The scheduling node sends the multiple groups of data to the multiple execution nodes respectively, and each execution node is used to receive at least one group of data among the multiple groups of data.

5. The method according to claim 4, characterized in that The plurality of execution nodes include a first execution node and a second execution node; The scheduling node sends the multiple groups of data to the multiple execution nodes respectively, including: The scheduling node sends a first set of data to the first execution node, where the first set of data is data among the multiple sets of data to be calculated by the first execution node; The scheduling node sends a second set of data to the second execution node, where the second set of data is data among the multiple sets of data to be calculated by the second execution node.

6. The method according to any one of claims 1 to 3, characterized in that The number of the plurality of tasks is less than a set threshold, and the first task scheduling mode is started according to the configuration data carried in the scheduling request to allocate the plurality of tasks, including: Starting the management node according to the configuration data carried in the scheduling request; The management node obtains multiple groups of data corresponding to the multiple tasks, and executes the multiple tasks according to the multiple groups of data; one task corresponds to one group of data.

7. The method according to claim 6, characterized in that The multiple groups of data include a first group of data and a second group of data, the first group of data is data to be calculated for a first task among the multiple tasks, and the second group of data is data to be calculated for a second task among the multiple tasks; The management node obtains the multiple sets of data and executes the multiple tasks according to the multiple sets of data, including: The management node stores the multiple groups of data and the expected usage time of each group of data in the multiple groups of data; The management node executes the first task when determining that the expected usage time of the first group of data has arrived; The management node executes the second task when determining that the expected usage time of the second set of data has arrived.

8. A task scheduling device, characterized in that: The device comprises: A mode acquisition unit, the mode acquisition unit is used to acquire a first task scheduling mode that matches the application to be executed from the set multiple task scheduling modes; the application to be executed includes multiple tasks, and the number of the multiple tasks matches the task amount interval corresponding to the first task scheduling mode; a request acquisition unit, the request acquisition unit being used to acquire a scheduling request of the application to be executed, the scheduling request carrying configuration data of the first task scheduling mode; An allocating unit, wherein the allocating unit is used to start the first task scheduling mode according to the configuration data carried in the scheduling request, and allocate the multiple tasks.

9. The device according to claim 8, characterized in that The mode acquisition unit is specifically used to acquire multiple task volume intervals of the multiple task scheduling modes, and one task scheduling mode corresponds to one task volume interval; The mode acquisition unit is further configured to match the number of tasks in the to-be-executed application with the multiple task amount intervals to acquire the first task scheduling mode.

10. The device according to claim 9, characterized in that The mode acquisition unit is specifically used to compare the quantity with the multiple task volume intervals, obtain at least one candidate task scheduling mode corresponding to the task volume interval in which the quantity is located; and obtain a hardware environment corresponding to the at least one candidate task scheduling mode; The mode acquisition unit is further specifically configured to select, from the at least one candidate task scheduling mode, a first task scheduling mode whose hardware environment is consistent with the hardware environment of the scheduling device.

11. The device according to any one of claims 8 to 10, characterized in that If the number of the plurality of tasks is greater than or equal to the set threshold, The allocation unit is specifically used to start a management node, a data persistence node, a scheduling node and multiple execution nodes according to the configuration data carried in the scheduling request; The management node obtains the multiple tasks, and writes the multiple groups of data corresponding to the multiple tasks into the data persistence node; One task corresponds to a set of data; The data persistence node stores the multiple groups of data; The scheduling node sends the multiple groups of data to the multiple execution nodes respectively, and each execution node is used to receive at least one group of data among the multiple groups of data.

12. The device according to claim 11, characterized in that The multiple execution nodes include a first execution node and a second execution node, the first execution node is used to calculate a first set of data sent by the scheduling node, and the second execution node is used to calculate a second set of data sent by the scheduling node.

13. The device according to any one of claims 8 to 10, characterized in that If the number of the plurality of tasks is less than a set threshold, The allocation unit is specifically configured to start the management node according to the configuration data carried in the scheduling request; The management node obtains multiple sets of data corresponding to the multiple tasks, and executes the multiple tasks according to the multiple sets of data; A task corresponds to a set of data.

14. The device according to claim 13, characterized in that The management node obtains the multiple sets of data and executes the multiple tasks according to the multiple sets of data, including: The management node stores the multiple groups of data and the expected usage time of each group of data; one task corresponds to one group of data; The management node executes the task corresponding to each group of data when determining that the expected usage time of each group of data has been reached.

15. A scheduling device, characterized in that: include: processor and interface circuits; The interface circuit is used to receive signals from other devices and transmit them to the processor, or to send signals from the processor to other devices; The processor is used to implement the method according to any one of claims 1 to 7 through logic circuits or executing code instructions.

16. A task scheduling system, characterized in that: include: A memory and a scheduling device as claimed in claim 15; The memory is used to store the task scheduling mode; The scheduling device is used to execute the method according to any one of claims 1 to 7 according to the task scheduling mode.

17. A computer-readable storage medium, characterized in that: The storage medium stores a computer program or instruction, and when the computer program or instruction is executed by the scheduling device, the method described in any one of claims 1 to 7 is implemented.