A computing power task scheduling method and system based on a multi-cloud heterogeneous management platform

By building a computing power user through a multi-cloud heterogeneous management platform and optimizing resource allocation by combining a weighted sorting algorithm, the problems of insufficient resource utilization and single scheduling method in existing technologies are solved, and flexible resource management and scheduling are realized, thereby improving the utilization rate of computing power resources.

CN117762582BActive Publication Date: 2026-11-27SHENZHEN ZHENGTONG ELECTRONIC CO LTD +3
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311656184.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-04
Publication Date
2026-11-27
Estimated Expiration
2043-12-04

AI Technical Summary

Technical Problem

Existing computing task scheduling methods, which deploy schedulers on physical resources, are not conducive to elastic scaling, resulting in insufficient resource utilization. Furthermore, the resource sources and scheduling methods are limited, making it impossible to simultaneously meet the needs of cloud computing management and computing scheduling.

Method used

By building computing power users through a multi-cloud heterogeneous management platform, data association between the multi-cloud heterogeneous management platform and the computing power scheduling platform is realized. The computing power scheduling platform is used to split and schedule tasks of underlying computing power resources, and resource allocation is optimized by combining a weighted sorting algorithm.

Benefits of technology

It improves the utilization rate of computing resources, realizes flexible resource management and scheduling, solves the problem of combining cloud computing management and computing power scheduling, and enhances resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117762582B_ABST
    Figure CN117762582B_ABST
Patent Text Reader

Abstract

The embodiment of the present application relates to the technical field of cloud computing, and discloses a computing power task scheduling method based on a multi-cloud heterogeneous management platform, comprising: configuring computing power tasks by a computing power user at the multi-cloud heterogeneous management platform; creating a computing power scheduling task; a main service node splits a received computing power scheduling task to obtain each task node after splitting and the dependency relationship between each task node; and calling underlying computing power resources according to the split task requirements and the resource idle condition in combination with a computing power scheduling algorithm. The computing power task scheduling method based on the multi-cloud heterogeneous management platform in the embodiment of the present application realizes the data association between the multi-cloud heterogeneous management platform and the computing power scheduling platform by constructing the computing power user, solves the problem of simultaneously performing cloud computing management and computing power scheduling task management, and enables the user to more flexibly use the resources of different cloud computing manufacturers and improve the resource utilization rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of cloud computing technology, and specifically to a computing power task scheduling method and system based on a multi-cloud heterogeneous management platform. Background Technology

[0002] With the development of cloud computing, artificial intelligence, and big data, computing resources have become necessities for production and daily life. However, simply increasing the total amount of computing resources cannot fully meet the ever-growing demand for computing power. In particular, for scenarios that require both cloud computing management and computing power scheduling, effectively integrating the two to improve the utilization rate and scheduling capabilities of computing resources is of paramount importance.

[0003] Existing computing power task resource scheduling mostly involves deploying schedulers on existing computing resources, such as physical servers with CPUs and GPUs, to achieve computing power scheduling for different upper-layer workflow tasks.

[0004] However, the existing computing task scheduling methods mentioned above have some significant drawbacks: First, the scheduler is deployed directly on physical resources, which hinders the elastic scaling of computing resources based on scheduled tasks; second, the scheduling method of directly deploying the scheduler on physical resources results in long-term fixed occupation of physical resources, which is not conducive to the effective utilization of computing resources and easily leads to waste; third, most existing methods are based on a certain resource type or a default scheduling algorithm, resulting in a single source of computing resources and a single scheduling method; fourth, existing computing task scheduling methods cannot meet the needs of scenarios that require both cloud computing management and computing task scheduling. Therefore, designing a scheme that facilitates computing task scheduling has become a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0005] To address the aforementioned shortcomings, this invention discloses a computing task scheduling method based on a multi-cloud heterogeneous management platform, which can improve the utilization rate of computing resources.

[0006] The first aspect of this invention discloses a computing task scheduling method based on a multi-cloud heterogeneous management platform, comprising:

[0007] The computing power users at the multi-cloud heterogeneous management platform configure computing power tasks and obtain the computing power scheduling information configured by the corresponding computing power users. The computing power scheduling information includes the computing power task type, the required computing power type, and the required computing power size.

[0008] Computing power users select the corresponding computing scenario on the multi-cloud heterogeneous management platform, and call the computing power task scheduling interface of the computing power scheduling platform to create computing power scheduling tasks according to the computing scenario, computing power task type, required computing power type and required computing power size.

[0009] The main service node of the computing power scheduling platform splits the received computing power scheduling tasks into nodes to obtain the split task nodes and the dependencies between them. The computing power scheduling platform calls the underlying computing power resources according to the requirements of the split tasks, the availability of resources, and the computing power scheduling algorithm.

[0010] As an optional implementation, in the first aspect of the present invention, before configuring computing tasks through the computing power user at the multi-cloud heterogeneous management platform, the method further includes:

[0011] When creating a new computing power user on a multi-cloud heterogeneous platform, the user creation interface in the distributed task scheduling system is called to synchronously create a user identical to the newly created computing power user on the computing power task scheduling platform. The newly created computing power user enables the multi-cloud heterogeneous management platform to synchronize and manage tasks on the computing power scheduling platform. The distributed task scheduling system supports computing power scheduling tasks of Shell, MR, Spark, HADOOP, SQL, PYTHON, and FLINK.

[0012] The configuration of computing tasks through computing power users at the multi-cloud heterogeneous management platform includes:

[0013] Users of computing power can configure computing power tasks in a visual manner through the multi-cloud heterogeneous management platform.

[0014] The computing power scheduling platform calls upon underlying computing power resources based on the requirements of the split tasks and resource availability, combined with a computing power scheduling algorithm, including:

[0015] The computing power scheduling platform calls upon the underlying computing power resources of the multi-cloud heterogeneous management platform based on the requirements of the split tasks, the availability of resources, and the computing power scheduling algorithm.

[0016] As an optional implementation, in the first aspect of the present invention, the step of configuring computing power tasks through computing power users at the multi-cloud heterogeneous management platform and obtaining the computing power scheduling information configured for the corresponding computing power users includes:

[0017] In the multi-cloud heterogeneous management platform, computing power users call the project interface of the distributed task scheduling system to create corresponding task projects. The task project is a namespace used to implement permission isolation for each computing power user.

[0018] In the task project, the computing power user configures the names of each work task node in the workflow according to the task type, and specifies the computing power resource work grouping and node task execution content;

[0019] The system calls the resource interface in the distributed task scheduling system to create or upload the data files required for the workflow. Based on the names of each task node in the workflow, the computing power resource work group, the node task execution content, and the data files, the computing power scheduling information configured for the corresponding computing power user is determined.

[0020] As an optional implementation, in the first aspect of the present invention, the main service node of the computing power scheduling platform splits the received computing power scheduling tasks into nodes to obtain the split task nodes and the dependencies between the task nodes. The computing power scheduling platform calls the underlying computing power resources according to the requirements of the split tasks and the resource availability, combined with the computing power scheduling algorithm, including:

[0021] After the main service node of the computing power scheduling platform obtains the computing power scheduling task, it breaks down the entire computing power scheduling task into various task nodes.

[0022] The first task node in the computing power scheduling task is obtained. Based on the node task execution content, computing power resource work group and computing power allocation algorithm configured for the first task node, the basic computing power resources under the computing power resource work group are called to process the first task node. The basic computing power resources under the computing power resource work group come from the physical resources or virtual resources of the multi-cloud heterogeneous management platform.

[0023] The computing resource work group periodically polls the processing status of the computing resources for the first task node, and after the execution result is obtained, uploads the execution result of the first task node to the main service node;

[0024] Store the node task status of the first task node into the database;

[0025] Obtain the dependency relationship between the first task node and all other nodes; if the first task node is also associated with subsequent task nodes, obtain the subsequent task nodes and perform the above steps on the subsequent task nodes until all task nodes have completed the corresponding computing power scheduling and allocation.

[0026] As an optional implementation, in the first aspect of the present invention, the computing power allocation algorithm includes any one of the following: weighted random algorithm, smooth polling algorithm, linear load algorithm, and weighted sorting algorithm.

[0027] As an optional implementation, in a first aspect of the present invention, the weighted sorting algorithm includes:

[0028] Obtain scene information, and determine a second weight associated with physical memory values ​​and a first weight associated with average CPU load based on the scene information;

[0029] Identify worker nodes whose average physical memory and CPU load are below the threshold and that participate in load sharing;

[0030] The computing power resource value of each working node in the working group is calculated based on the first weight, the second weight, and the pre-set load formula; the load formula is: Res=W1*K+W2*R, where Res is the computing power resource value, W1 is the first weight, K is the average CPU load, W2 is the second weight, and R is the physical memory value.

[0031] The computing power resources of each working node are sorted according to a set order, and each time the main service node calls the service, it is assigned to the working node with the largest computing power resource value in the working group.

[0032] As an optional implementation, in the first aspect of the present invention, the main service node and the worker node are both distributed, cross-data center computing resources, network resources and storage resources that are uniformly managed by the multi-cloud heterogeneous management platform.

[0033] The multi-cloud heterogeneous management platform is a platform used to enable the same user to uniformly manage resources of various cloud platforms such as customized private clouds, Alibaba Cloud, and VMware on the same cloud management platform. The underlying infrastructure managed by the multi-cloud heterogeneous management platform is distributed. The underlying infrastructure includes a heterogeneous physical resource pool of X86 architecture, ARM architecture, CPU computing power resources, GPU computing power resources, NUP computing power resources, FPGA computing power resources, and ASIC computing power resources. The network resources include RDMA network, and the storage resources include distributed storage systems HDFS, Ceph, and / or ClusterFS. Regular users and computing power users at the multi-cloud heterogeneous management platform are used to call the underlying infrastructure.

[0034] A second aspect of this invention discloses a computing task scheduling system based on a multi-cloud heterogeneous management platform, comprising:

[0035] Computing power task configuration module: used to configure computing power tasks through computing power users in the multi-cloud heterogeneous management platform, and obtain the computing power scheduling information configured by the corresponding computing power users. The computing power scheduling information includes computing power task type, required computing power type and required computing power size.

[0036] Scheduling request initiation module: The computing power user selects the corresponding computing scenario on the multi-cloud heterogeneous management platform, and calls the computing power task scheduling interface of the computing power scheduling platform to create a computing power scheduling task according to the computing scenario, computing power task type, required computing power type and required computing power size.

[0037] Computing task splitting module: The main service node of the computing power scheduling platform splits the received computing power scheduling tasks into nodes to obtain the split task nodes and the dependencies between the task nodes; it is used by the computing power scheduling platform to call the underlying computing power resources according to the requirements of the split task and the availability of resources, combined with the computing power scheduling algorithm.

[0038] A third aspect of the present invention discloses an electronic device, comprising: a memory storing executable program code; a processor coupled to the memory; the processor calling the executable program code stored in the memory to execute the computing power task scheduling method based on a multi-cloud heterogeneous management platform disclosed in the first aspect of the present invention.

[0039] The fourth aspect of this invention discloses a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute the computing power task scheduling method based on a multi-cloud heterogeneous management platform disclosed in the first aspect of this invention.

[0040] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0041] The computing power task scheduling method based on a multi-cloud heterogeneous management platform in this embodiment of the invention realizes the data association between the multi-cloud heterogeneous management platform and the computing power scheduling platform by constructing computing power users. It solves the problem of simultaneously performing cloud computing management and computing power scheduling task management, enabling users to make more flexible use of resources from different cloud computing vendors and improve resource utilization. Attached Figure Description

[0042] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 This is a flowchart illustrating the computing power task scheduling method based on a multi-cloud heterogeneous management platform disclosed in an embodiment of the present invention.

[0044] Figure 2 This is a schematic diagram of the computing power scheduling information configuration process disclosed in an embodiment of the present invention;

[0045] Figure 3 This is a schematic diagram of the task node splitting and computing power allocation process disclosed in an embodiment of the present invention;

[0046] Figure 4 This is a flowchart illustrating the weighted sorting algorithm disclosed in an embodiment of the present invention;

[0047] Figure 5 This is a schematic diagram illustrating the specific process of configuring computing power scheduling information disclosed in an embodiment of the present invention;

[0048] Figure 6 This is an interactive schematic diagram of computing power task scheduling disclosed in an embodiment of the present invention;

[0049] Figure 7 This is a schematic diagram of the structure of a computing power task scheduling system based on a multi-cloud heterogeneous management platform provided in an embodiment of the present invention;

[0050] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0051] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0052] It should be noted that the terms "first," "second," "third," "fourth," etc., in the specification and claims of this invention are used to distinguish different objects, not to describe a specific order. The terms "comprising" and "having," and any variations thereof, in the embodiments of this invention are intended to cover non-exclusive inclusion. Exemplarily, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or devices.

[0053] Existing computing power task resource scheduling methods mostly deploy schedulers on existing computing resources, such as physical servers with CPUs and GPUs, to schedule computing power requirements for different upper-layer workflow tasks. However, these existing computing power task scheduling methods have some significant drawbacks: First, deploying the scheduler directly on physical resources hinders the elastic scaling of computing resources based on scheduled tasks; second, the method of directly deploying the scheduler on physical resources results in long-term fixed occupation of physical resources, which is not conducive to the effective utilization of computing power resources and easily leads to waste; third, existing methods are mostly based on a certain resource type or a default scheduling algorithm, resulting in a single source of computing power resources and scheduling method; fourth, existing computing power task scheduling methods cannot meet the needs of scenarios that require both cloud computing management and computing power scheduling. Based on this, this invention discloses a computing power task scheduling method, system, electronic device, and storage medium based on a multi-cloud heterogeneous management platform. By constructing computing power users, it achieves data association between the multi-cloud heterogeneous management platform and the computing power scheduling platform, solving the problem of simultaneously managing cloud computing and computing power scheduling tasks. This allows users to more flexibly utilize resources from different cloud computing vendors and improve resource utilization.

[0054] Example 1

[0055] Please see Figure 1 , Figure 1 This is a flowchart illustrating the computing power task scheduling method based on a multi-cloud heterogeneous management platform disclosed in this invention. The execution entity of the method described in this embodiment is an execution entity composed of software and / or hardware. This execution entity can receive relevant information and send certain instructions via wired and / or wireless means. It may also have certain processing and storage functions. This execution entity can control multiple devices, such as remote physical servers or cloud servers and related software, or local hosts or servers and related software that perform related operations on devices located in a certain location. In some scenarios, it can also control multiple storage devices, which may be placed in the same location as the devices or in different locations. Figure 1 As shown, the computing task scheduling method based on a multi-cloud heterogeneous management platform includes the following steps:

[0056] S101: Configure computing power tasks through the computing power users at the multi-cloud heterogeneous management platform, and obtain the computing power scheduling information configured by the corresponding computing power users. The computing power scheduling information includes the computing power task type, the required computing power type, and the required computing power size.

[0057] Specifically, such as Figure 6As shown, the multi-cloud heterogeneous management platform in this step refers to a platform that enables the same user to uniformly manage resources from various cloud platforms such as customized private clouds, Alibaba Cloud, and VMware on the same cloud management platform. Furthermore, the underlying infrastructure managed by the multi-cloud heterogeneous management platform is distributed, containing heterogeneous physical resource pools with different architectures such as x86 and ARM architectures, and different computing power types such as CPUs, GPUs, NPUs, FPGAs, and ASICs. With the development of cloud computing technology, multi-cloud heterogeneous management platforms have been widely used in the industry due to their advantages in providing resource integration, unified monitoring, and unified services.

[0058] like Figure 6 As shown, computing power users are a special type of user on the multi-cloud heterogeneous management platform, primarily to distinguish them from other user types on the platform. Only computing power users have the authority to initiate computing power task scheduling and configuration. Furthermore, computing power users need to be automatically created synchronously on the computing power task scheduling platform.

[0059] More preferably, before configuring computing tasks through the computing power user at the multi-cloud heterogeneous management platform, the method further includes:

[0060] When creating a new computing power user on a multi-cloud heterogeneous platform, the user creation interface in the distributed task scheduling system is called to synchronously create a user identical to the newly created computing power user on the computing power task scheduling platform. The newly created computing power user enables the multi-cloud heterogeneous management platform to synchronize and manage tasks on the computing power scheduling platform. The distributed task scheduling system supports computing power scheduling tasks of Shell, MR, Spark, HADOOP, SQL, PYTHON, and FLINK.

[0061] The configuration of computing tasks through computing power users at the multi-cloud heterogeneous management platform includes:

[0062] Users of computing power can configure computing power tasks in a visual manner through the multi-cloud heterogeneous management platform.

[0063] The computing power scheduling platform calls upon underlying computing power resources based on the requirements of the split tasks and resource availability, combined with a computing power scheduling algorithm, including:

[0064] The computing power scheduling platform calls upon the underlying computing power resources of the multi-cloud heterogeneous management platform based on the requirements of the split tasks, the availability of resources, and the computing power scheduling algorithm.

[0065] The computing power task scheduling platform in this embodiment of the invention is a distributed, decentralized, and easily scalable DAG workflow task scheduling platform based on DolphinScheduler (DS). It supports running various types of computing power scheduling tasks in the cluster, including Shell, MapReduce, Spark, Hadoop, SQL, Python, and Flink. When a user creates a computing power user on the multi-cloud heterogeneous management platform, the DS createUser interface is called to synchronously create an identical user on the computing power task scheduling platform. This computing power user enables the multi-cloud heterogeneous management platform to synchronize and manage tasks on the computing power scheduling platform.

[0066] S102: The computing power user selects the corresponding computing scenario on the multi-cloud heterogeneous management platform, and calls the computing power task scheduling interface of the computing power scheduling platform to create a computing power scheduling task according to the computing scenario, computing power task type, required computing power type and required computing power size.

[0067] More preferably, Figure 2 This is a schematic diagram of the computing power scheduling information configuration process disclosed in an embodiment of the present invention, such as... Figure 2 As shown, the process of configuring computing tasks through computing power users at the multi-cloud heterogeneous management platform and obtaining the corresponding computing power scheduling information configured by the computing power users includes:

[0068] S1011: The computing power user at the multi-cloud heterogeneous management platform calls the project interface of the distributed task scheduling system to create a corresponding task project. The task project is a namespace; it is used to implement permission isolation for each computing power user.

[0069] S1012: In the task project, the computing power user configures the names of each work task node in the workflow according to the task type, and specifies the computing power resource work group and the node task execution content;

[0070] S1013: Call the resource interface in the distributed task scheduling system to create or upload the data files required for the workflow, and determine the computing power scheduling information configured for the corresponding computing power user based on the names of each work task node, the computing power resource work group, the node task execution content, and the data files in the workflow.

[0071] In this embodiment of the invention, computing power users configure computing power tasks visually at the UI layer (front-end interface) of the multi-cloud heterogeneous management platform. Users first call the DS's projects interface to create personal or public projects. Each project is a namespace and also serves as a permission isolation unit for each computing power user. Under each project, users configure the names of each work task node in the workflow, the specified computing power resource Worker group, and the execution content of the node tasks, based on the task type. Finally, they call the DS's process-definition interface to create the task workflow. Simultaneously, they also need to call the DS's resources interface to create or upload the data files required for the workflow. In this embodiment, a namespace is a declarative area that provides a scope for identifiers (names of types, functions, and variables, etc.) within it. Namespaces are used to organize code into logical groups and can also be used to avoid name conflicts, especially when the base code includes multiple libraries. All identifiers within a namespace are visible to each other without restriction. Identifiers outside the namespace can access members by using the fully qualified name of each identifier, or by using a single identifier's using declaration or by using directives for all identifiers in the namespace. Code in header files should always use fully qualified namespace names.

[0072] Specifically, after completing the configuration in step S101, the computing power user selects the computing scenario, the project, data file, and workflow to be scheduled for computing power on the multi-cloud heterogeneous management platform, and calls the DS start-process-instance interface to create a computing power scheduling task.

[0073] Furthermore, the computing scenarios are divided into big data computing scenarios for government affairs and smart cities; scientific computing scenarios for engineering simulation, finite element analysis, etc.; and intelligent computing scenarios for machine learning training, large models, etc.

[0074] In its implementation, it requires access to different underlying computing resources. The data file and workflow are configured in step S101, and the database engines supported by the data source include HIVE, Spark, MySQL, Oracle, DB2, and Presto.

[0075] The advantage of steps S101 and S102 is that the implementation of these two steps is of great significance for some scenarios that require both cloud computing management and computing power scheduling. There is no need to deploy multiple platforms or switch back and forth between multiple platforms. Users can achieve unified management of cloud computing resources on a multi-cloud heterogeneous management platform, and configure and schedule computing power tasks according to different workflow tasks and the required computing power size, simplifying deployment and operation and maintenance operations and improving operation and maintenance efficiency.

[0076] S103: The main service node of the computing power scheduling platform splits the received computing power scheduling tasks into nodes to obtain the split task nodes and the dependencies between them; the computing power scheduling platform calls the underlying computing power resources according to the requirements of the split tasks and the availability of resources, combined with the computing power scheduling algorithm.

[0077] Specifically, after the DS computing power scheduling platform receives a scheduling request from a computing power user on the multi-cloud heterogeneous management platform, because DS is a distributed, decentralized, and easily scalable computing power scheduling platform, the scheduling task request will first be distributed to the node where the Master service resides. The Master node first splits the entire scheduling task into individual task nodes, and determines the task distribution method based on whether the dependencies between the task nodes are set in the workflow configuration in step S101. If no runtime dependencies are set for each node, all nodes will run in parallel and distributed according to the configured Worker groups; otherwise, they will run according to the set dependencies between the nodes. Here, the Master node refers to the main service node, and the Worker group refers to the work group.

[0078] More preferably, Figure 3 This is a schematic diagram illustrating the process of task node splitting and computing power allocation disclosed in an embodiment of the present invention. Figure 5 This is a schematic diagram illustrating the specific process of configuring computing power scheduling information disclosed in an embodiment of the present invention, such as... Figure 3 and Figure 5 As shown, the main service node of the computing power scheduling platform splits the received computing power scheduling tasks into nodes to obtain the split task nodes and the dependencies between them. The computing power scheduling platform then calls upon underlying computing power resources based on the requirements of the split tasks, resource availability, and the computing power scheduling algorithm, including:

[0079] S1031: After the main service node of the computing power scheduling platform obtains the computing power scheduling task, it breaks down the entire computing power scheduling task into various task nodes.

[0080] S1032: Obtain the first task node in the computing power scheduling task, and call the basic computing power resources under the computing power resource work group to process the first task node according to the node task execution content, computing power resource work group and computing power allocation algorithm configured for the first task node; wherein, the basic computing power resources under the computing power resource work group come from the physical resources or virtual resources of the multi-cloud heterogeneous management platform;

[0081] S1033: The computing power resource working group periodically polls the processing status of the computing power resources for the first task node, and after the running results are obtained, uploads the running results of the first task node to the main service node.

[0082] S1034: Store the node task status of the first task node into the database;

[0083] S1035: Obtain the dependency relationship between the first task node and the other nodes; if the first task node is also associated with subsequent task nodes, obtain the subsequent task nodes and perform the above steps on the subsequent task nodes until all task nodes have completed the corresponding computing power scheduling and allocation.

[0084] The computing power scheduling platform of this invention calls upon underlying computing power resources based on the requirements of the split tasks and the availability of resources, combined with an improved computing power scheduling algorithm;

[0085] Specifically, such as Figure 5 As shown, for each task node split by the Master node, a runtime dependency relationship is generally set between the nodes. The specific execution process includes the following sub-steps: The Master node first obtains the scheduled task and starts by obtaining the first task node in the DAG; according to the task execution content and Worker grouping information configured for the task node, it calls the basic computing resources under the Worker to process the task node. The basic computing resources under the Worker come from the physical or virtual resources of the multi-cloud heterogeneous management platform; the Worker periodically polls the computing resources to check the processing status of the task, and after the task is completed, it reports the running result of the task node to the Master node; the Master node stores the task status of the node in the database. If the node task runs successfully and there are subsequent nodes for the scheduled task, it continues to obtain the information of the subsequent nodes and repeats the above steps; otherwise, it proceeds to the next step; the entire DAG task scheduling ends. More specifically, calling the basic computing resources under the Worker to process the task node in the above steps means calling the underlying computing resources according to the requirements of the split task node and the resource idle status under the corresponding Worker, combined with the computing power allocation algorithm.

[0086] More preferably, the computing power allocation algorithm includes any one of the following: weighted random algorithm, smooth round-robin algorithm, linear load algorithm, and weighted sorting algorithm.

[0087] The random allocation algorithm mentioned in this embodiment of the invention is the simplest computing power allocation algorithm, which randomly assigns tasks to different computing nodes. The advantage of this algorithm is its simplicity and suitability for small-scale distributed systems. However, the problem with the random allocation algorithm is that it cannot guarantee the fairness and efficiency of task allocation, potentially leading to some computing nodes being overloaded while others are underloaded.

[0088] Round-robin assignment algorithms distribute tasks to different computing nodes in a fixed order. The advantage of this algorithm is that it can distribute the task load relatively evenly, avoiding overloading some nodes. However, round-robin assignment algorithms cannot dynamically adjust according to the actual load of the nodes, which may result in some nodes' computing power not being fully utilized.

[0089] Weighted task allocation algorithms distribute tasks based on the actual computing power of the nodes. By assigning different weights to different computing nodes, nodes with stronger computing power can undertake more tasks. The advantage of weighted task allocation algorithms is that they can allocate tasks according to the actual capabilities of the nodes, improving the computational efficiency of distributed systems. However, weighted task allocation algorithms require prior knowledge of the computing power of each node and the appropriate weighting, which places certain demands on system administrators.

[0090] Computational power allocation algorithms play a crucial role in distributed computing environments. Appropriate selection and design of these algorithms can improve the performance and efficiency of distributed systems, ensuring full utilization of computing resources. Different algorithms are suitable for distributed systems of varying scales and needs. System administrators should select the appropriate algorithm based on the specific circumstances. Furthermore, research and improvement of computational power allocation algorithms also contribute to enhancing the performance and efficiency of distributed computing systems.

[0091] More preferably, Figure 4 This is a flowchart illustrating the weighted sorting algorithm disclosed in an embodiment of the present invention, as shown below. Figure 4 As shown, the weighted sorting algorithm includes:

[0092] S103a: Obtain scene information, and determine a second weight associated with physical memory values ​​and a first weight associated with average CPU load based on the scene information;

[0093] S103b: Identify worker nodes whose average physical memory and CPU load are less than a threshold and who participate in load sharing;

[0094] S103c: Calculate the computing power resource value of each working node in the working group according to the first weight, the second weight and the pre-set load formula; the load formula is: Res=W1*K+W2*R, where Res is the computing power resource value, W1 is the first weight, K is the average CPU load, W2 is the second weight and R is the physical memory value.

[0095] S103d: Sort the computing power resources of each working node according to the set order, and allocate it to the working node with the largest computing power resource value in the working group each time it is called by the main service node.

[0096] To improve the utilization of computing resources, the default linear scheduling algorithm described above is improved in this invention. First, the `Master.host.selector` setting in the Master service configuration file `Master.properties` is set to `lowerweight`, so that the linear load balancing algorithm is selected. The original linear load balancing algorithm determines whether a worker participates in load balancing based on the average CPU load of each worker (various types of virtual or physical resources on a multi-cloud heterogeneous management platform) in the worker group and a threshold set for available physical memory. These two factors are not weighted, and no selection order is set for workers participating in load balancing whose CPU load is below the set threshold.

[0097] Therefore, this invention further improves the scheduling algorithm described above. First, different weight values ​​are set for the average CPU load and available physical memory according to the requirements of different scenarios. This is because, considering that in most application scenarios, excess physical memory will cause the Worker to crash directly, in this invention, the weight value of available physical memory Worker.reserved.memory is set to 0.6, and the weight value of average CPU load Worker.max.cpuload.avg is set to 0.4, which can be dynamically adjusted according to the actual situation. This improvement makes the linear load computing power scheduling more reflective of the needs of actual application scenarios and improves the utilization rate of computing power resources.

[0098] In this embodiment of the invention, W1 is set to 0.4 and W2 is set to 0.6. The Res values ​​of all Workers with values ​​less than the threshold are calculated and sorted from largest to smallest. Each time the Master makes a call, the Worker with the largest Res value in the corresponding Worker group is assigned to it. This invention improves upon the original linear load balancing algorithm in two ways: it not only increases the utilization rate of computing resources and balances the load of each Worker within a Worker group, but also better reflects the needs of real-world application scenarios.

[0099] More preferably, the main service node and the worker nodes are distributed, cross-data center computing power, network and storage resources that are uniformly managed by the multi-cloud heterogeneous management platform.

[0100] In this embodiment of the invention, the underlying computing resources are provided by the infrastructure layer, which consists of distributed, cross-data center computing, network, and storage resources uniformly managed by a multi-cloud heterogeneous management platform.

[0101] Specifically, such as Figure 6As shown, in S103 of this embodiment, after the Master splits the computing power scheduling task, it assigns the task nodes to a Worker in the worker group. Both the Master and Worker nodes are distributed, cross-datacenter computing, network, and storage resources uniformly managed by a multi-cloud heterogeneous management platform. These resources may originate from various distributed resource pools managed by customized private clouds, Alibaba Cloud, VMware, etc., and are uniformly managed and monitored by the multi-cloud heterogeneous management platform. The infrastructure managed by various cloud platforms may be heterogeneous physical resource pools based on different architectures such as x86 and ARM architectures, and different computing power types such as CPUs, GPUs, NPUs, FPGAs, and ASICs. The network resources include RDMA networks, and the storage resources include distributed storage systems HDFS, Ceph, and / or ClusterFS. Both regular users and computing power users on the multi-cloud heterogeneous management platform are used to access the underlying infrastructure. In this embodiment, regular users and computing power users have different permission settings. Regular cloud management users cannot view the usage of computing power users, while computing power users can achieve more advanced management and configuration. In specific implementation, computing power users can configure computing power on a visual interface to achieve cross-data center resource configuration. After completing the optimal configuration, the weighted sorting algorithm of this embodiment is used for the final computing power resource configuration.

[0102] The advantage of step S103 above is that, since computing power, network, and storage resources are all managed uniformly by the multi-cloud heterogeneous management platform, rather than being directly invoked physical resources, the multi-cloud heterogeneous management platform provides elastic scaling capabilities for resources, has unified resource monitoring capabilities, and provides a comprehensive data security system. Users can utilize resources from different cloud computing vendors more flexibly. The multi-cloud heterogeneous management capability also integrates various distributed resources and provides unified services, solving the technical problems of single and limited computing power resources.

[0103] This embodiment provides a computing power task scheduling method based on a multi-cloud heterogeneous management platform. This method can realize the scheduling of computing power tasks on a multi-cloud heterogeneous management platform. Users can make more flexible use of resources from different cloud computing vendors, improve resource utilization, solve the problems of limited computing power and single source of computing power, and solve the technical problem of not being able to realize cloud computing management and computing power scheduling tasks at the same time.

[0104] The computing power task scheduling method based on a multi-cloud heterogeneous management platform in this embodiment of the invention realizes the data association between the multi-cloud heterogeneous management platform and the computing power scheduling platform by constructing computing power users. It solves the problem of simultaneously performing cloud computing management and computing power scheduling task management, enabling users to make more flexible use of resources from different cloud computing vendors and improve resource utilization.

[0105] Example 2

[0106] Please see Figure 7 , Figure 7 This is a schematic diagram of the computing power task scheduling system based on a multi-cloud heterogeneous management platform disclosed in an embodiment of the present invention. Figure 7 As shown, the computing task scheduling system based on a multi-cloud heterogeneous management platform may include:

[0107] The computing power task configuration module 21 is used to configure computing power tasks through computing power users at the multi-cloud heterogeneous management platform and obtain the computing power scheduling information configured by the corresponding computing power users. The computing power scheduling information includes the computing power task type, the required computing power type, and the required computing power size. This module enables computing power users to configure computing power tasks visually at the UI layer of the multi-cloud heterogeneous management platform, including the configuration of projects, the names of each task node under the workflow model, the specified computing power resource group, the task execution content, etc.

[0108] Scheduling Request Initiation Module 22: Computing power users select the corresponding computing scenario on the multi-cloud heterogeneous management platform, and call the computing power task scheduling interface of the computing power scheduling platform to create a computing power scheduling task based on the computing scenario, computing power task type, required computing power type, and required computing power size. This module initiates a scheduling request by calling the computing power task scheduling platform interface according to the configured computing power task type, required computing power type, and size. Computing Power Task Splitting Module 23: The main service node of the computing power scheduling platform splits the received computing power scheduling task into nodes to obtain the split task nodes and the dependencies between them. This is used by the computing power scheduling platform to call the underlying computing power resources based on the split task requirements, resource availability, and the computing power scheduling algorithm. The computing power scheduling platform of this module distributes tasks to the Master node. The Master node first splits the entire scheduling task into individual task nodes and determines the task distribution method based on whether the processing order of each task node is set in the workflow configuration. If no execution order is set for each node, all nodes run in parallel distributed manner according to the configured Worker group; otherwise, they run according to the set order of each node.

[0109] The computing power scheduling platform allocates underlying computing resources based on the requirements of the split tasks and resource availability, combined with a computing power allocation algorithm. The linear load scheduling algorithm has been improved, including setting weights for the average CPU load and available physical memory, and sorting the results of a weighted sum of the evaluation factors for each worker. The underlying computing resources are physical or virtual computing, network, and storage resources based on a multi-cloud heterogeneous management platform, provided by the underlying infrastructure. These resources may come from various distributed resource pools managed by customized private clouds, Alibaba Cloud, VMware, etc., and are uniformly managed and monitored by the multi-cloud heterogeneous management platform. The infrastructure managed by various cloud platforms may be heterogeneous physical resource pools based on different architectures such as x86 and ARM, and different computing power types such as CPU, GPU, NPU, FPGA, and ASICs. Network resources include RDMA networks, and storage resources include distributed storage systems such as HDFS, Ceph, and / or ClusterFS.

[0110] The computing power task scheduling method based on a multi-cloud heterogeneous management platform in this embodiment of the invention realizes the data association between the multi-cloud heterogeneous management platform and the computing power scheduling platform by constructing computing power users. It solves the problem of simultaneously performing cloud computing management and computing power scheduling task management, enabling users to make more flexible use of resources from different cloud computing vendors and improve resource utilization.

[0111] Example 3

[0112] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention. The electronic device can be a computer, a server, etc. Of course, in certain cases, it can also be a mobile phone, tablet computer, monitoring terminal, or other smart device, as well as an image acquisition device with processing capabilities. Figure 8 As shown, the electronic device may include:

[0113] Memory 510 storing executable program code;

[0114] Processor 520 coupled to memory 510;

[0115] In this process, the processor 520 calls the executable program code stored in the memory 510 to execute some or all of the steps in the computing power task scheduling method based on a multi-cloud heterogeneous management platform in Embodiment 1.

[0116] This invention discloses a computer-readable storage medium storing a computer program that causes a computer to perform some or all of the steps in the computing power task scheduling method based on a multi-cloud heterogeneous management platform in Embodiment 1.

[0117] This invention also discloses a computer program product, wherein when the computer program product is run on a computer, the computer performs some or all of the steps in the computing power task scheduling method based on a multi-cloud heterogeneous management platform in Embodiment 1.

[0118] This invention also discloses an application publishing platform, which is used to publish computer program products. When the computer program products are run on a computer, the computer executes some or all of the steps in the computing power task scheduling method based on a multi-cloud heterogeneous management platform in Embodiment 1.

[0119] In various embodiments of the present invention, it should be understood that the sequence number of each process does not necessarily imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0120] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they can be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0121] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0122] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several requests to cause a computer device (which can be a personal computer, server, or network device, specifically a processor in the computer device) to execute some or all of the steps of the methods described in the various embodiments of the present invention.

[0123] In the embodiments provided by this invention, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined based on A. However, it should also be understood that determining B based on A does not mean determining B solely based on A; B can also be determined based on A and / or other information.

[0124] Those skilled in the art will understand that some or all of the steps in the various methods of the embodiments described can be implemented by a program instructing related hardware. This program can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.

[0125] The foregoing has provided a detailed description of the computing power task scheduling method, system, electronic device, and storage medium based on a multi-cloud heterogeneous management platform disclosed in the embodiments of the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A computing task scheduling method based on a multi-cloud heterogeneous management platform, characterized in that, include: The computing power users at the multi-cloud heterogeneous management platform configure computing power tasks and obtain the computing power scheduling information configured by the corresponding computing power users. The computing power scheduling information includes the computing power task type, the required computing power type, and the required computing power size. The multi-cloud heterogeneous management platform includes computing power users and regular users, and only computing power users have the authority to initiate computing power task scheduling and configuration. Computing power users select the corresponding computing scenario on the multi-cloud heterogeneous management platform, and call the computing power task scheduling interface of the computing power scheduling platform to create computing power scheduling tasks according to the computing scenario, computing power task type, required computing power type and required computing power size. The main service node of the computing power scheduling platform splits the received computing power scheduling tasks into nodes to obtain the split task nodes and the dependencies between the task nodes. The computing power scheduling platform calls upon underlying computing power resources based on the requirements of the divided tasks, the availability of resources, and the computing power scheduling algorithm.

2. The computing task scheduling method based on a multi-cloud heterogeneous management platform as described in claim 1, characterized in that, Before configuring computing tasks through the computing power user at the multi-cloud heterogeneous management platform, the following is also included: When creating a computing power user on a multi-cloud heterogeneous platform, the user creation interface in the distributed task scheduling system is called to synchronously create a user identical to the newly created computing power user on the computing power scheduling platform. The newly created computing power user enables the multi-cloud heterogeneous management platform to synchronize and manage tasks on the computing power scheduling platform. The distributed task scheduling system supports computing power scheduling tasks of Shell, MR, Spark, HADOOP, SQL, PYTHON and / or FLINK. The configuration of computing tasks through computing power users at the multi-cloud heterogeneous management platform includes: Users of computing power can configure computing power tasks in a visual manner through the multi-cloud heterogeneous management platform. The computing power scheduling platform calls upon underlying computing power resources based on the requirements of the split tasks and resource availability, combined with a computing power scheduling algorithm, including: The computing power scheduling platform calls upon the underlying computing power resources of the multi-cloud heterogeneous management platform based on the requirements of the split tasks, the availability of resources, and the computing power scheduling algorithm.

3. The computing task scheduling method based on a multi-cloud heterogeneous management platform as described in claim 1, characterized in that, The process of configuring computing tasks through computing power users at the multi-cloud heterogeneous management platform and obtaining the corresponding computing power scheduling information for those users includes: In the multi-cloud heterogeneous management platform, computing power users call the project interface of the distributed task scheduling system to create corresponding task projects. The task project is a namespace used to implement permission isolation for each computing power user. In the task project, the computing power user configures the names of each work task node in the workflow according to the task type, and specifies the computing power resource work grouping and node task execution content; The system calls the resource interface in the distributed task scheduling system to create or upload the data files required for the workflow. Based on the names of each task node in the workflow, the computing power resource work group, the node task execution content, and the data files, the computing power scheduling information configured for the corresponding computing power user is determined.

4. The computing task scheduling method based on a multi-cloud heterogeneous management platform as described in claim 3, characterized in that, The main service node of the computing power scheduling platform splits the received computing power scheduling tasks into nodes to obtain the individual task nodes and the dependencies between them. The computing power scheduling platform then calls upon underlying computing resources based on the requirements of the split tasks, resource availability, and the computing power scheduling algorithm, including: After the main service node of the computing power scheduling platform obtains the computing power scheduling task, it breaks down the entire computing power scheduling task into various task nodes. The first task node in the computing power scheduling task is obtained. Based on the node task execution content, computing power resource work group and computing power scheduling algorithm configured for the first task node, the basic computing power resources under the computing power resource work group are called to process the first task node. The basic computing power resources under the computing power resource work group come from the physical resources or virtual resources of the multi-cloud heterogeneous management platform. The computing resource work group periodically polls the processing status of the computing resources for the first task node, and after the execution result is obtained, uploads the execution result of the first task node to the main service node; Store the node task status of the first task node into the database; Obtain the dependency relationship between the first task node and all other nodes; if the first task node is also associated with subsequent task nodes, obtain the subsequent task nodes and perform the above steps on the subsequent task nodes until all task nodes have completed the corresponding computing power scheduling and allocation.

5. The computing task scheduling method based on a multi-cloud heterogeneous management platform as described in claim 4, characterized in that, The computing power scheduling algorithm includes any one of the following: weighted random algorithm, smooth round-robin algorithm, linear load algorithm, and weighted sorting algorithm.

6. The computing task scheduling method based on a multi-cloud heterogeneous management platform as described in claim 5, characterized in that, The weighted sorting algorithm includes: Obtain scene information, and determine a second weight associated with physical memory values ​​and a first weight associated with average CPU load based on the scene information; Identify worker nodes whose average physical memory and CPU load are below the threshold and that participate in load sharing; The computing power resource value of each working node in the working group is calculated based on the first weight, the second weight, and a pre-set load formula; the load formula is: Where Res is the computing power resource value, W1 is the first weight, K is the average CPU load, W2 is the second weight, and R is the physical memory value; The computing power resources of each working node are sorted according to a set order, and each time the main service node calls the service, it is assigned to the working node with the largest computing power resource value in the working group.

7. The computing task scheduling method based on a multi-cloud heterogeneous management platform as described in claim 1, characterized in that, The main service node and worker nodes are all distributed, cross-data center computing, network and storage resources that are uniformly managed by the multi-cloud heterogeneous management platform. The multi-cloud heterogeneous management platform is a platform for enabling the same user to uniformly manage customized private clouds, Alibaba Cloud, and / or VMware on the same cloud management platform. The underlying infrastructure managed by the multi-cloud heterogeneous management platform is distributed. The underlying infrastructure includes a heterogeneous physical resource pool of X86 architecture, ARM architecture, CPU computing resources, GPU computing resources, NUP computing resources, FPGA computing resources, and / or ASIC computing resources. The network resources include RDMA networks, and the storage resources include distributed storage systems HDFS, Ceph, and / or ClusterFS. Regular users and computing power users at the multi-cloud heterogeneous management platform are used to call the underlying infrastructure.

8. A computing task scheduling system based on a multi-cloud heterogeneous management platform, characterized in that, include: The computing power task configuration module is used to configure computing power tasks through computing power users on the multi-cloud heterogeneous management platform and obtain the computing power scheduling information configured by the corresponding computing power users. The computing power scheduling information includes the computing power task type, the required computing power type, and the required computing power size. The multi-cloud heterogeneous management platform includes computing power users and regular users. Only computing power users have the authority to initiate computing power task scheduling and configuration. Scheduling request initiation module: The computing power user selects the corresponding computing scenario on the multi-cloud heterogeneous management platform, and calls the computing power task scheduling interface of the computing power scheduling platform to create a computing power scheduling task according to the computing scenario, computing power task type, required computing power type and required computing power size. Computing task splitting module: The main service node of the computing power scheduling platform splits the received computing power scheduling tasks into nodes to obtain the split task nodes and the dependencies between the task nodes; The computing power scheduling platform uses the requirements of the split tasks and the availability of resources, combined with the computing power scheduling algorithm, to call upon the underlying computing power resources.

9. An electronic device, characterized in that, include: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the computing power task scheduling method based on a multi-cloud heterogeneous management platform as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program causes the computer to execute the computing power task scheduling method based on a multi-cloud heterogeneous management platform as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Hybrid cloud resource creation method and system

    CN114780228A

  • Dynamically validating hosts using ai before scheduling a workload in a hybrid cloud environment

    US20220291953A1