Computing task deployment method, device, electronic device and storage medium

By decomposing the computing tasks into sub-task groups and deploying them reasonably in the computing network, the problem of insufficient resources of a single computing node is solved, and the deployment success rate and resource utilization efficiency of computing tasks are improved.

CN114416329BActive Publication Date: 2024-11-29CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111449936.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2024-11-29
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

In the prior art, the resources of a single computing node cannot meet the needs of complex computing tasks, resulting in the failure of computing task deployment.

Method used

Decompose the computing task into multiple subcomputing task groups, and determine the computing nodes corresponding to each subcomputing task group based on the correlation between the subcomputing tasks and the computing resources in the computing network, and deploy it.

Benefits of technology

By decomposing and rationally deploying subcomputing task groups, task deployment failure caused by insufficient computing node resources is avoided, the demand for computing resources is reduced, and resource waste is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114416329B_ABST
    Figure CN114416329B_ABST
Patent Text Reader

Abstract

The present application provides a computing task deployment method, device, electronic device and storage medium, which relates to the field of software technology and is used to solve the problem in the prior art that the computing resources of a single computing node will not be able to meet the computing requirements of the computing task. The method includes: obtaining a computing task; decomposing the computing task into multiple sub-computing tasks; determining multiple sub-computing task groups according to the multiple sub-computing tasks; each of the multiple sub-computing task groups includes at least one sub-computing task of the same computing type; determining the first computing node corresponding to each sub-computing task group; the first computing node is the first computing node in the computing network; and deploying each sub-computing task group to the corresponding first computing node. The present application is used in the computing task deployment process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software technology, and in particular to a computing task deployment method, device, electronic device and storage medium. Background Art

[0002] In the current computing network, after the computing task reaches the computing network, it is usually calculated by the computing node that receives the computing task. However, the current computing tasks are becoming more and more complex, and only the current node can not meet the computing requirements of the computing task. At this time, the edge computing node can send the computing task to other computing nodes, which will calculate and return the calculation results.

[0003] However, in the related art, a computing task is usually completed by one computing node. As the complexity of computing tasks increases, the resources required for computing tasks increase, and the resources of a single computing node will not be able to meet the computing requirements of the computing tasks, which will lead to the failure of computing task deployment. Summary of the invention

[0004] The present application provides a computing task deployment method, device, electronic device and storage medium, which can solve the problem in the prior art that the computing resources of a single computing node will not be able to meet the computing requirements of the computing task.

[0005] In a first aspect, a computing task deployment method is provided, comprising: obtaining a computing task; decomposing the computing task into multiple sub-computing tasks; determining multiple sub-computing task groups based on the multiple sub-computing tasks; each sub-computing task group in the multiple sub-computing task groups includes at least one sub-computing task of the same computing type; determining a first computing node corresponding to each sub-computing task group; the first computing node is a first computing node in a computing network; and deploying each sub-computing task group to the corresponding first computing node.

[0006] In combination with the above-mentioned first aspect, in a possible implementation method, determining the first computing node corresponding to each sub-computing task group includes: determining the association relationship between multiple sub-computing tasks; the association relationship between the sub-computing tasks is used to characterize the association relationship between sub-computing tasks with computing association; determining the association relationship between multiple sub-computing task groups based on the association relationship between the multiple sub-computing tasks; wherein the association relationship between a sub-computing task group and other sub-computing task groups includes: the association relationship between each sub-computing task in a sub-computing task group and the sub-computing tasks in other sub-computing task groups; determining the first computing node corresponding to each sub-computing task group based on the number of other sub-computing task groups associated with each sub-computing task group, and the computing resources of each first computing node in the computing network.

[0007] In combination with the above-mentioned first aspect, in a possible implementation method, the association relationship between multiple sub-computing task groups is determined according to the association relationship between multiple sub-computing tasks, including: determining a first topology according to the association relationship between multiple sub-computing tasks; wherein each node in the first topology is each sub-computing task in multiple sub-computing tasks; the connection relationship between the nodes in the first topology is used to characterize the association relationship between multiple sub-computing tasks; merging nodes with the same computing type in the first topology to determine a second topology; a node in the second topology corresponds to a sub-computing task in multiple sub-computing task groups; the connection relationship between each node in the second topology includes the connection relationship between each node in the first topology; and determining the association relationship between multiple sub-computing task groups according to the connection relationship between each node in the second topology.

[0008] In combination with the above-mentioned first aspect, in a possible implementation method, the first computing node corresponding to each sub-computing task group is determined according to the number of other sub-computing task groups associated with each sub-computing task group and the computing resources of each first computing node in the computing network, including: step 1, determining at least one first node in the second topology; the first node is the node with the largest number of other nodes connected in the second topology; step 2, determining the second node from at least one first node; the second node is the node with the most required computing resources among at least one first node; step 3, deleting the second node from the second topology, and using the second topology after deleting the second node as the second topology; step 4, sorting each first computing node according to the size of the current available resources of each first computing node; step 5, deploying the sub-computing task group corresponding to the currently deleted second node on the first computing node with the most currently available resources; step 6, repeating steps 1, 2, 3, 4, 5 and 6 until all sub-computing task groups are deployed on the first computing node.

[0009] In combination with the first aspect above, in a possible implementation method, the sub-computing task group corresponding to the currently deleted second node is deployed on the first computing node with the most currently available resources, including: if the deployment of the sub-computing task group corresponding to the currently deleted second node fails, determine the second computing node; the second computing node is a computing node connected to the first computing node with the smallest currently available resources; use the second computing node as a computing node in the first computing node, and repeat steps 4 and 5.

[0010] In a second aspect, a computing task deployment device is provided, including: an acquisition unit and a processing unit; the acquisition unit is used to acquire computing tasks; the processing unit is used to decompose the computing tasks into multiple sub-computing tasks; the processing unit is also used to determine multiple sub-computing task groups based on the multiple sub-computing tasks; each sub-computing task group in the multiple sub-computing task groups includes at least one sub-computing task of the same computing type; the processing unit is also used to determine the first computing node corresponding to each sub-computing task group; the first computing node is the first computing node in the computing network; the processing unit is also used to deploy each sub-computing task group to the corresponding first computing node.

[0011] In combination with the above-mentioned second aspect, in a possible implementation method, the processing unit is specifically used to: determine the association relationship between multiple sub-computing tasks; the association relationship between the sub-computing tasks is used to characterize the association relationship between sub-computing tasks with computing associations; determine the association relationship between multiple sub-computing task groups based on the association relationship between the multiple sub-computing tasks; wherein the association relationship between a sub-computing task group and other sub-computing task groups includes: the association relationship between each sub-computing task in a sub-computing task group and the sub-computing tasks in other sub-computing task groups; determine the first computing node corresponding to each sub-computing task group based on the number of other sub-computing task groups associated with each sub-computing task group, and the computing resources of each first computing node in the computing network.

[0012] In combination with the above-mentioned second aspect, in a possible implementation method, the processing unit is specifically used to: determine a first topology based on the association relationship between multiple sub-computing tasks; wherein each node in the first topology is each sub-computing task in the multiple sub-computing tasks; the connection relationship between the nodes in the first topology is used to characterize the association relationship between the multiple sub-computing tasks; merge the nodes with the same computing type in the first topology to determine the second topology; a node in the second topology corresponds to a sub-computing task in multiple sub-computing task groups; the connection relationship between each node in the second topology includes the connection relationship between each node in the first topology; determine the association relationship between multiple sub-computing task groups based on the connection relationship between each node in the second topology.

[0013] In combination with the above-mentioned second aspect, in a possible implementation method, the processing unit is specifically used to perform the following steps: Step 1, determine at least one first node in the second topology; the first node is the node with the largest number of connections to other nodes in the second topology; Step 2, determine the second node from at least one first node; the second node is the node with the most required computing resources among at least one first node; Step 3, delete the second node from the second topology, and use the second topology after deleting the second node as the second topology; Step 4, sort each first computing node according to the size of the current available resources of each first computing node; Step 5, deploy the sub-computing task group corresponding to the currently deleted second node on the first computing node with the most currently available resources; Step 6, repeat steps 1, 2, 3, 4, 5 and 6 until all sub-computing task groups are deployed on the first computing node.

[0014] In combination with the above-mentioned second aspect, in a possible implementation method, the processing unit is further specifically used to: determine the second computing node when the deployment of the sub-computing task group corresponding to the currently deleted second node fails; the second computing node is a computing node connected to the first computing node with the smallest currently available resources; and use the second computing node as a computing node in the first computing node, and repeat steps 4 and 5.

[0015] In a third aspect, the present application provides an electronic device comprising: a processor and a communication interface; the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the computing task deployment method described in the first aspect and any possible implementation method of the first aspect.

[0016] In a fourth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can perform the computing task deployment method described in the first aspect and any possible implementation of the first aspect.

[0017] In a fifth aspect, the present application provides a computer program product comprising instructions, wherein the computer program product includes computer instructions, which, when executed on an electronic device, enables the electronic device to execute a computing task deployment method as described in the first aspect and any possible implementation of the first aspect.

[0018] In a sixth aspect, the present application provides a chip, the chip comprising a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the computing task deployment method described in the first aspect and any possible implementation method of the first aspect.

[0019] The technical effects brought about by any implementation method of the second to fifth aspects mentioned above can refer to the technical effects brought about by the corresponding design of the first aspect, and will not be repeated here.

[0020] In this application, the name of the above data processing device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of the present invention, they fall within the scope of the claims of the present invention and their equivalent technologies.

[0021] These and other aspects of the present invention will become more apparent from the following description.

[0022] The above solution brings at least the following beneficial effects: after obtaining the computing task, the electronic device divides the computing task into multiple sub-computing task groups, and deploys the sub-computing tasks to different computing nodes. In this way, each sub-computing task group can occupy only a small amount of resources of each computing node, avoiding the problem of computing task deployment failure caused by insufficient computing node resources.

[0023] In addition, in the present application, sub-computing tasks with the same computing type are merged into one sub-computing task group. Since sub-computing tasks with the same computing type usually use the same resources for computing, in the present application, the sub-computing tasks in the sub-computing task group can be calculated by reusing the same resources according to the computing sequence of the sub-computing tasks, thereby further reducing the number of resources required for the computing tasks. Moreover, the present application can also avoid the problem of resource waste caused by deploying the same sub-computing tasks with similar computing on different computing nodes. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0025] Figure 2 A schematic diagram of the network architecture of an edge computing network provided for this application;

[0026] Figure 3 A flowchart of a computing task deployment method provided in an embodiment of the present application;

[0027] Figure 4 A flowchart of another computing task deployment method provided in an embodiment of the present application;

[0028] Figure 5 A flowchart of another computing task deployment method provided in an embodiment of the present application;

[0029] FIG6( a) is a schematic diagram of a topological structure of a first topology provided in an embodiment of the present application;

[0030] FIG6( b) is a schematic diagram of a topological structure of a second topology provided in an embodiment of the present application;

[0031] FIG6( c ) is a schematic diagram of a topological structure of a second topology after deleting the second node provided in an embodiment of the present application;

[0032] FIG. 7( a) is a schematic diagram of a topological structure of a computing network provided in an embodiment of the present application;

[0033] FIG7( b) is a schematic diagram of the topological structure of the first computing node provided in an embodiment of the present application;

[0034] FIG7( c ) is a schematic diagram of a topological structure between spare nodes provided in an embodiment of the present application;

[0035] FIG7( d) is a schematic diagram of a topological structure of a first computing node after the N4 node and the N8 node are used as first computing nodes according to an embodiment of the present application;

[0036] Figure 8 A schematic diagram of a sub-computing task group deployed on a computing node provided in an embodiment of the present application;

[0037] Fig. 9 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0039] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0040] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0041] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0042] In the description of the present application, unless otherwise specified, “plurality” means two or more.

[0043] In order to implement the computing task deployment method provided in the embodiment of the present application, the embodiment of the present application provides an electronic device for executing the computing task deployment method. The electronic device can be the electronic device involved in the present application, or a module in the electronic device; or a chip in the electronic device, or other devices for executing the computing task deployment method, which is not limited in the present application.

[0044] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 1 As shown, the electronic device 100 includes at least one processor 101, a communication line 102, and at least one communication interface 104, and may also include a memory 103. The processor 101, the memory 103 and the communication interface 104 may be connected via the communication line 102.

[0045] The processor 101 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, such as one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA).

[0046] The communication link 102 may include a pathway for transmitting information between the above-mentioned components.

[0047] The communication interface 104 is used to communicate with other devices or communication networks, and can use any transceiver-like device, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.

[0048] The memory 103 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compressed optical disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to include or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0049] In one possible design, the memory 103 can exist independently of the processor 101, that is, the memory 103 can be a memory outside the processor 101. In this case, the memory 103 can be connected to the processor 101 through the communication line 102, and is used to store execution instructions or application code, and the execution is controlled by the processor 101 to implement the computing task deployment method provided in the following embodiment of the present application. In another possible design, the memory 103 can also be integrated with the processor 101, that is, the memory 103 can be the internal memory of the processor 101, for example, the memory 103 is a cache, which can be used to temporarily store some data and instruction information.

[0050] As an implementation method, the processor 101 may include one or more CPUs, for example Figure 1 As another possible implementation, the electronic device 100 may include multiple processors, such as Figure 1 As another implementation, the electronic device 100 may further include an output device 105 and an input device 106.

[0051] Computing network (also known as computing power network) refers to a technology that flexibly schedules computing resources, storage resources and network resources between cloud computing nodes, network nodes, and edge cloud computing nodes to complete the calculation of computing tasks according to the computing requirements of the computing tasks.

[0052] The current computing network mainly includes: computing network coordinated scheduling on the control plane, network fusion perception on the data plane, and computing resource orchestration on the management and service plane. The computing network can coordinate and manage computing resources, storage resources, and network resources in a unified manner, and can measure the above computing resources, storage resources, and network resources with a unified standard. In the computing network, the computing resources, storage resources, and network resources of each node can be expressed in the form of specific parameters. These parameters can be carried in the data packets transmitted between nodes to inform other nodes of their own resource conditions. The current computing network usually also adds the ability to provide intuitive components and services to users; by connecting the service layer with the underlying resources and network interfaces, visualization in orchestration, scheduling, and applications can be achieved.

[0053] Computing networks usually include: mobile edge computing, edge cloud computing and other networks. In the current computing network, computing nodes mainly provide virtual machine resources as computing resources to user devices. When each computing node calculates a task, it usually only calculates according to the task deployed on the node, and there is a lack of coordination between the nodes. The current scheduling of computing tasks in the computing network and the configuration of computing resources are difficult to apply together, and there is a lack of resource constraints on computing nodes. Therefore, it is difficult to apply it directly to the computing network. As the number of current computing tasks increases, the computing network has a problem of insufficient computing resources. And because computing tasks are becoming more and more abstract (for example, containers carrying computing tasks such as function computing), the same computing function may be deployed repeatedly when deploying computing resources, resulting in a waste of computing resources.

[0054] An example, such as Figure 2 As shown, it is a schematic diagram of the network architecture of an edge computing network 20 provided by this application. Figure 2 As shown, the edge computing network includes: multiple edge computing nodes 201, multiple network devices 202, a computing network management system 203, and user devices 204.

[0055] The user equipment 204 is connected to the edge computing node 201 and sends the computing task to the edge computing node 201 .

[0056] The edge computing node 201 is used to receive computing tasks from user devices, deploy computing tasks, calculate the computing tasks, and return the computing results to the user devices. The edge computing node 201 is connected to the network device 202. The edge computing nodes 201 can communicate with each other through the network device. In addition, the edge computing node 201 can also communicate with the computing network management system 203 through the network device.

[0057] The network device 202 is used to implement the communication between the edge computing node 201 and other edge computing nodes, and the communication between the edge computing node 201 and the computing network management system 203.

[0058] The computing network management system 203 includes service abstraction function, computing resource management function, computing-network integration analysis function and network controller control function.

[0059] In the related art, when deploying a computing task, the computing task is usually deployed as a whole to a computing node, and the computing node that deploys the computing task calculates the computing task to obtain a computing result. However, as the complexity of the computing task increases, the computing task becomes more and more abstract, and the resources required for the computing task continue to increase. The resources of the computing node may not be able to meet the needs of the computing task, resulting in the failure of the computing task deployment. In order to solve the problems existing in the prior art, the present application provides a computing task deployment method. The computing task can be decomposed into multiple sub-computing task groups and deployed on different computing nodes respectively. In this way, each sub-computing task group only needs less computing resources to complete the calculation, avoiding the problem that the resources of the computing node cannot meet the needs of the computing task, and improving the success rate of computing task deployment.

[0060] The computing task deployment solution provided in the embodiment of the present application can be applied to Figure 1 The electronic device involved in the embodiment of the present application may be Figure 2 The edge computing node or computing network management system shown in the figure may also be a newly added independent device, which is not limited in this application.

[0061] like Figure 3 As shown, the computing task deployment method provided in the embodiment of the present application can be specifically implemented through the following S301-S305:

[0062] S301: An electronic device obtains a computing task.

[0063] In a possible implementation, the present application is mainly described by taking the electronic device as a computing network management system as an example.

[0064] Specifically, the user device sends a computing task to the computing node it is connected to (referred to as the target computing node); after receiving the computing task, the target computing node sends the computing task to the computing network management system through the network device.

[0065] S302: The electronic device decomposes the computing task into multiple sub-computing tasks.

[0066] In a possible implementation, the electronic device is taken as a computing network management system for example: after receiving the computing task, the computing network management system retrieves the computing task template of the computing task, determines the computing resources, network resources, and storage resources required to calculate the computing task, and determines the computing task logic and constraints of each sub-computing task in the computing task. The computing network management system decomposes the computing task into multiple sub-computing tasks according to the computing task logic and constraints of each sub-computing task.

[0067] The computing task template includes the composition of the sub-computing tasks of the computing task, as well as information such as the task logic and constraints between the sub-computing tasks.

[0068] It should be noted that after the electronic device decomposes the computing task into multiple sub-computing tasks, the electronic device can determine the association relationship between each of the multiple sub-computing tasks. For example, the following example 1:

[0069] Example 1: The electronic device decomposes the computing task into: sub-computing task 1, sub-computing task 2, sub-computing task 3 and sub-computing task 4, a total of 4 sub-computing tasks. Among them, sub-computing task 1 and sub-computing task 2 are parallel sub-computing tasks, and sub-computing task 3 needs to use the calculation results of sub-computing task 1 and sub-computing task 2. Sub-computing task 4 needs to use the calculation result of sub-computing task 3. At this time, the electronic device determines that there is no association between sub-computing task 1 and sub-computing task 2, that there is an association between sub-computing task 1 and sub-computing task 2 and computing task 3 respectively, and that there is an association between sub-computing task 3 and sub-computing task 4.

[0070] S303: The electronic device determines a plurality of sub-computing task groups according to the plurality of sub-computing tasks.

[0071] Each sub-computing task group in the plurality of sub-computing task groups includes at least one sub-computing task of the same computing type.

[0072] In a possible implementation, the computing network management system determines the computing type of each sub-computing task, and merges the sub-computing tasks of the same computing type into one sub-computing task group to obtain multiple sub-computing task groups.

[0073] In combination with the above example 1, the electronic device determines that sub-computing task 1 and sub-computing task 4 are sub-computing tasks of the same type, and sub-computing task 2 and sub-computing task 3 are sub-computing tasks of the same type. At this time, the electronic device merges sub-computing task 1 and sub-computing task 4 into a sub-computing task group 1, and merges sub-computing task 2 and sub-computing task 3 into a sub-computing task group 2.

[0074] S304: The electronic device determines a first computing node corresponding to each sub-computing task group.

[0075] The first computing node is a computing node in the computing network.

[0076] In one example, the electronic device determines the computing resources of each sub-computing task group and the priority of each sub-computing task, and preferentially allocates the sub-computing tasks with high priority and more required computing resources to the first computing node with more available resources.

[0077] In another example, the electronic device preferentially allocates the sub-computing task group with a high priority to the first computing node which is close to the user device and whose available resources can meet the computing requirements of the sub-computing task group.

[0078] The electronic device may also determine the first computing node corresponding to each sub-computing task group in other ways, which is not limited in this application.

[0079] S305: The electronic device deploys each sub-computing task group to the corresponding first computing node.

[0080] Specifically, the electronic device sends the sub-computing task group to the first computing node corresponding to the sub-computing task group determined according to S305. After receiving the sub-computing task group, the first computing node deploys the sub-computing task group, and calls the computing resources to calculate each sub-computing task in the sub-computing task group, and sends the calculation result of the sub-computing task to the corresponding next-hop first computing node according to the calculation logic of the computing task, and the next-hop first computing node calculates the corresponding sub-computing task according to the calculation result. Until the calculation of the computing task is completed, each first computing node releases the resources for calculating the computing task.

[0081] In combination with the above example 1, the electronic device deploys sub-computing task group 1 to the first computing node 1, and the electronic device deploys sub-computing task group 2 to the first computing node 2.

[0082] The first computing node 1 calculates sub-computing task 1, determines the calculation result of sub-computing task 1, and sends the calculation result of sub-computing task 1 to the first computing node 2.

[0083] First computing node 2 first calculates subcomputing task 2 and determines the calculation result of subcomputing task 2. After first computing node 2 receives the calculation result of subcomputing task 1, it calculates subcomputing task 3 based on the calculation result of subcomputing task 1 and the calculation result of subcomputing task 2 and determines the calculation result of subcomputing task 3. First computing node 2 sends the calculation result of subcomputing task 3 to first computing node 1.

[0084] The first computing node 1 calculates the sub-computing task 4 according to the calculation result of the sub-computing task 3, determines the calculation result of the sub-computing task 4, and completes the calculation of the computing task.

[0085] The above solution brings at least the following beneficial effects: after obtaining the computing task, the electronic device divides the computing task into multiple sub-computing task groups, and deploys the sub-computing tasks to different computing nodes. In this way, each sub-computing task group can occupy only a small amount of resources of each computing node, avoiding the problem of computing task deployment failure caused by insufficient computing node resources.

[0086] In addition, in the present application, sub-computing tasks with the same computing type are merged into one sub-computing task group. Since sub-computing tasks with the same computing type usually use the same resources for computing, in the present application, the sub-computing tasks in the sub-computing task group can be calculated by reusing the same resources according to the computing sequence of the sub-computing tasks, thereby further reducing the number of resources required for the computing tasks. Moreover, the present application can also avoid the problem of resource waste caused by deploying the same sub-computing tasks with similar computing on different computing nodes.

[0087] In one possible implementation, combining Figure 3 ,like Figure 4 As shown, the above S304 can be specifically implemented through the following S401-S403:

[0088] S401: The electronic device determines an association relationship between a plurality of sub-computing tasks.

[0089] The association relationship between sub-computing tasks is used to characterize the association relationship between sub-computing tasks with computational association.

[0090] For example, the association relationship between sub-computing tasks is used to characterize the sequence between the sub-computing tasks, or the association between the calculation results of the sub-computing tasks, etc., which is not limited in this application.

[0091] In combination with the above example 1, the association relationship between multiple sub-computing tasks determined by the electronic device is: the association relationship between sub-computing task 1 and sub-computing task 2 and computing task 3 respectively, and the association relationship between sub-computing task 3 and sub-computing task 4.

[0092] S402: The electronic device determines the association relationship between the multiple sub-computing task groups according to the association relationship between the multiple sub-computing tasks.

[0093] The association relationship between a sub-computing task group and other sub-computing task groups includes: the association relationship between each sub-computing task in a sub-computing task group and the sub-computing tasks in other sub-computing task groups.

[0094] Specifically, after the electronic device determines the association relationship between the sub-computing tasks, it merges the sub-computing tasks into a sub-computing task group. The electronic device determines other sub-computing task groups associated with each target sub-computing task in the target sub-computing task group. The electronic device uses the sub-computing task group associated with each target sub-computing task in the target sub-computing task group as the sub-computing task group associated with the target sub-computing task group.

[0095] The sub-computing task group associated with the target sub-computing task refers to a sub-computing task group having a sub-computing task associated with the target sub-computing task.

[0096] In combination with the above example 1, the electronic device determines that there is an association relationship between sub-computing task group 1 and sub-computing task group 2.

[0097] S403: The electronic device determines the first computing node corresponding to each sub-computing task group according to the number of other sub-computing task groups associated with each sub-computing task group and the computing resources of each first computing node in the computing network.

[0098] In a possible implementation, if the number of sub-computing task groups associated with the target sub-computing task group is large, it means that the sub-computing task group is an important sub-computing task group, or the sub-computing task group requires more computing resources. In this case, the electronic device can deploy the sub-computing task group on the first computing node with more available resources to ensure that the sub-computing tasks in the target sub-computing task group can be successfully calculated.

[0099] In one possible implementation, the electronic device deploys a sub-computing task group having a start sub-computing task and an end sub-computing task on a computing node that receives the computing task. In this way, the computing task starts computing at the computing node and completes computing at the node. After the computing is completed, the computing result can be directly returned to the user terminal, thereby improving computing efficiency.

[0100] The above scheme brings at least the following beneficial effects: the electronic device determines the association relationship between the sub-computing task groups according to the association relationship between the sub-computing tasks, and determines the first computing node corresponding to the sub-computing task group according to the number of sub-computing task groups associated with the sub-computing task group. In this way, the electronic device can give priority to allocating more computing resources to the sub-computing task groups with more associations, improve the deployment success rate of these sub-computing tasks, and improve the computing efficiency of computing these sub-computing task groups.

[0101] Combination Figure 4 ,like Figure 5 As shown, in a possible implementation manner, the above S402 can be specifically implemented through the following S501-S503.

[0102] S501: The electronic device determines a first topology according to associations between a plurality of sub-computing tasks.

[0103] Each node in the first topology is a sub-computing task in the plurality of sub-computing tasks; and the connection relationship between the nodes in the first topology is used to characterize the association relationship between the plurality of sub-computing tasks.

[0104] In a possible implementation, the first topology is also used to characterize the computing type of each sub-computing task.

[0105] In one example, the topological structure of the first topology is shown in FIG6(a), and the electronic device decomposes the computing task into: CP1-CP10. The connection relationship between the sub-computing tasks includes: L1-L11. The computing types of the sub-computing tasks include: D1-D6.

[0106] S502: The electronic device merges nodes with the same computing type in the first topology to determine a second topology.

[0107] Among them, one node in the second topology corresponds to one sub-computing task in multiple sub-computing task groups; the connection relationship between each node in the second topology includes the connection relationship between each node in the first topology.

[0108] In a possible implementation, the electronic device merges sub-computing task nodes with the same computing type according to the computing type of each sub-computing task in the first topology to obtain a second topology.

[0109] As an example, the topological structure of the second topology is shown in Figure 6(b). The electronic device merges the sub-computing tasks CP1-CP10 according to the computing types D1-D6 to obtain sub-computing task groups of 6 computing types. The connection relationship between the sub-computing task groups is inherited from the connection relationship between the sub-computing tasks in the first topology.

[0110] S503: The electronic device determines the association relationship between the multiple sub-computing task groups according to the connection relationship between the nodes in the second topology.

[0111] The above solution brings at least one beneficial effect: the electronic device can more clearly and intuitively display the association relationship between sub-computing tasks and sub-computing task groups in a topological form.

[0112] like Figure 5 As shown, the above S403 can be implemented through the following S504-S509.

[0113] S504: The electronic device determines at least one first node in the current second topology.

[0114] The first node is the node connected to the largest number of other nodes in the current second topology.

[0115] S505. The electronic device determines a second node from the at least one first node; the second node is the node requiring the most computing resources among the at least one first node.

[0116] In a possible implementation, the electronic device performs sorting according to the number of sub-computing tasks connected to each sub-computing task group and the computing resources required by the sub-computing task group.

[0117] Afterwards, the electronic device deletes the sub-computing tasks with the highest order from the second topology in sequence according to the order of the sub-computing task groups, until there is a topology that is not directly connected in the second topology.

[0118] Specifically, in combination with the second topology in FIG. 6( b ), the electronic device calculates the normalized number of connections C of each node. i and computing resources R i The calculation type is D i The normalized number of connections and computing resources of the sub-computation task group are expressed as D i (C i , R i ). Then the normalized connection quantity and computing resources of each sub-computing task group determined by the electronic device are: D1 (0.2, 0.4), D2 (0.5, 0.7), D3 (0.5, 0.6), D4 (0.3, 0.5), D5 (0.2, 0.4), D6 (0.3, 0.5).

[0119] The electronic device determines the order according to the normalized connection quantity and computing resources of each sub-computing task group: D2=D3>D4=D6>D1=D5.

[0120] S506: The electronic device deletes the second node from the current second topology, and uses the current second topology after the second node is deleted as the second topology.

[0121] According to the above sorting, the second nodes determined by the electronic device in the first iteration are two nodes D2 and D3. The electronic device deletes the two nodes D2 and D3 from the current second topology.

[0122] After the deletion, four nodes D4, D6, D1 and D5 remain in the current second topology. Among them, D4 and D6 are connected to each other, while D1 and D5 are not connected to other nodes.

[0123] The second topology after deleting the second node after the first iteration in combination with FIG6(b) is shown in FIG6(c).

[0124] S507: The electronic device sorts the first computing nodes according to the sizes of the current available resources of the first computing nodes.

[0125] The available resources of the computing node include computing resources, storage resources, network resources, etc. of the computing node.

[0126] The electronic device sorts the first computing nodes according to the size of the current available resources of the first computing nodes, specifically including: the electronic device sorts the first computing nodes according to the available computing resources, storage resources, and network resources of the first computing nodes.

[0127] In one example, a topology diagram of a computing network is shown in FIG7( a ); and a topology structure between first computing nodes determined by an electronic device is shown in FIG7( b ).

[0128] Among them, the available resources of node N1 are R N1 , the available resources of node N2 are R N2 , the available resources of node N3 are R N3 , the available resources of node N9 are R N9 The relationship between the available resources between nodes is: N2 >R N1 >R N9 >R N3 .

[0129] S508: The electronic device deploys the sub-computing task group corresponding to the currently deleted second node on the first computing node with the most currently available resources.

[0130] 6(b) and 7(b), in the first iteration, the electronic device deletes the sub-computing task groups D2 and D3 in the second topology. At this time, the electronic device deploys the sub-computing task groups D2 and D3 on the N2 node with the most resources.

[0131] In the second iteration, the electronic device deletes the sub-computing task groups D4 and D6 in the second topology, and deploys the sub-computing task groups D4 and D5 on the N1 node with the second most resources.

[0132] At this time, there are two sub-computing task groups D1 and D5 with no connection relationship left in the second topology. The electronic device deploys the sub-computing task group D1 on the N3 node, and the electronic device deploys the sub-computing task D5 on the N9 node.

[0133] It should be noted that before the electronic device deploys the sub-computing task group on each first computing node, it can also determine whether there are sub-computing tasks deployed on the first computing node that cannot be deployed on the same computing node as the sub-computing tasks in the currently deployed sub-computing task group. If there are, the electronic node determines the computing node ranked after the computing node and deploys the sub-computing task group. If not, the electronic device directly deploys the sub-computing task on the node.

[0134] The situations where sub-computing tasks cannot be deployed on the same computing node include, but are not limited to: the resource types required by the sub-computing tasks are different; and the sub-computing tasks are calculated in different ways.

[0135] like Figure 8 As shown, it is a schematic diagram of the sub-computing task groups deployed on each computing node after the computing node deployment is completed.

[0136] S509: The electronic device repeatedly executes the above steps S504-S509 until all sub-computing task groups are deployed on the first computing node.

[0137] Based on the above solution, the present application can combine sub-computing tasks into sub-computing task groups in the form of topology, and deploy the sub-computing task groups to corresponding computing nodes.

[0138] In a possible implementation, the first computing node is a computing node within h hops of the computing node receiving the computing task, where h is a positive integer. In this way, the transmission delay of the sub-computing task and the computing task result between the computing nodes can be reduced.

[0139] In this application, in order to avoid the problem of insufficient computing resources leading to deployment failure when only using the above-mentioned first computing node, the node that is h+i hops away from the computing node receiving the computing task can also be used as a backup node, where i is a positive integer. An exemplary value of i is 1.

[0140] As shown in FIG7( c ), it is a schematic diagram of a backup node determined by an electronic device when the value of i is 1.

[0141] In a possible implementation, the above S508 may be specifically implemented as follows: the electronic device determines whether the sub-computing task group corresponding to the currently deleted second node is deployed successfully.

[0142] If the deployment is successful, the electronic device returns to execute the above S504.

[0143] If the deployment fails, the electronic device determines a second computing node, uses the second computing node as a computing node in the first computing node, and repeatedly executes S507 and S508, wherein the second computing node is a computing node connected to the first computing node with the smallest currently available resources.

[0144] That is, the electronic device uses the second computing nodes as the first computing nodes, and sorts the first computing nodes according to the available resources of each of the first computing nodes after the computing nodes are added.

[0145] In one example, in conjunction with FIG. 7(b), the first computing node with the smallest available resources is N3, and in conjunction with FIG. 7(c), it can be seen that the computing nodes connected to N3 are N4 and N8. The electronic device determines that N4 and N8 are the second computing nodes.

[0146] An example, as shown in FIG7( d ), is a schematic diagram of the topology of the first computing node after the N4 node and the N8 node in FIG7( d ) are used as the first computing node.

[0147] For example, after the computing device deploys the sub-computing task group D2 to the N2 node, the remaining available resources of the N2 node cannot meet the deployment of the sub-computing task group D3. At this time, the electronic device adds the N4 node and the N8 node in the standby node to the first computing node. The electronic device re-sorts the available resources of the current N1 node, N2 node, N3 node, N4 node, N8 node and N9 node, and deploys the sub-computing task group D3 to the node with the highest sorting.

[0148] In a possible implementation, when a deployed sub-computing task needs to be migrated, the electronic device sorts the available resources of the current first computing node and deploys the sub-computing task to be migrated on the first computing node with the highest sorting.

[0149] If the available resources of the current first computing node cannot meet the computing requirements of the sub-computing task to be migrated, the electronic device executes the above S902 to select a computing node from the backup node and add it to the first computing node. The electronic device sorts the available resources of the current first computing node and deploys the sub-computing task to be migrated on the first computing node with the highest sorting.

[0150] The reasons for sub-computing task migration include, but are not limited to: computing node maintenance and computing node failure.

[0151] It should be noted that after all sub-computing task groups are deployed, the electronic device configures the network connection relationship between the first computing nodes, as well as the calculation sequence and the forwarding process of the calculation results according to the association relationship between the sub-computing tasks, to ensure that the computing tasks can be completed normally. After the computing task is completed, each first computing node releases the resources used to calculate the computing task.

[0152] It should be pointed out that the above mainly takes the electronic device as a computing network management system as an example to illustrate the computing task deployment scheme in this application. In the actual process, the electronic device can also be a computing node. In this case, the computing node does not need to send the computing task to the computing network management system, which reduces the transmission delay of the computing task. When the electronic device is also a computing node, the computing node needs to have the ability to obtain the network topology of the computing network, select adjacent nodes, and determine the computing resources of the adjacent nodes.

[0153] It can be seen that the technical solution provided by the embodiment of the present application is introduced above mainly from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should be easily aware that, in combination with the modules and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0154] The embodiment of the present application can divide the functional modules of the electronic device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0155] like Fig. 9 , which is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device includes: an acquisition unit 901 and a processing unit 902.

[0156] The acquisition unit 901 is used to acquire a computing task; the processing unit 902 is used to decompose the computing task into multiple sub-computing tasks; the processing unit 902 is also used to determine multiple sub-computing task groups based on the multiple sub-computing tasks; each sub-computing task group in the multiple sub-computing task groups includes at least one sub-computing task of the same computing type; the processing unit 902 is also used to determine the first computing node corresponding to each sub-computing task group; the first computing node is the first computing node in the computing network; the processing unit 902 is also used to deploy each sub-computing task group to the corresponding first computing node.

[0157] Optionally, processing unit 902 is specifically used to: determine the association relationship between multiple sub-computing tasks; the association relationship between sub-computing tasks is used to characterize the association relationship between sub-computing tasks with computing association; determine the association relationship between multiple sub-computing task groups based on the association relationship between multiple sub-computing tasks; wherein the association relationship between a sub-computing task group and other sub-computing task groups includes: the association relationship between each sub-computing task in a sub-computing task group and the sub-computing tasks in other sub-computing task groups; determine the first computing node corresponding to each sub-computing task group based on the number of other sub-computing task groups associated with each sub-computing task group, and the computing resources of each first computing node in the computing network.

[0158] Optionally, processing unit 902 is specifically used to: determine a first topology based on the association relationship between multiple sub-computing tasks; wherein each node in the first topology is each sub-computing task in the multiple sub-computing tasks; the connection relationship between the nodes in the first topology is used to characterize the association relationship between the multiple sub-computing tasks; merge nodes with the same computing type in the first topology to determine a second topology; a node in the second topology corresponds to a sub-computing task in multiple sub-computing task groups; the connection relationship between each node in the second topology includes the connection relationship between each node in the first topology; determine the association relationship between multiple sub-computing task groups based on the connection relationship between each node in the second topology.

[0159] Optionally, the processing unit 902 is specifically used to perform the following steps: Step 1, determine at least one first node in the second topology; the first node is the node with the largest number of connections to other nodes in the second topology; Step 2, determine the second node from at least one first node; the second node is the node with the most required computing resources among at least one first node; Step 3, delete the second node from the second topology, and use the second topology after deleting the second node as the second topology; Step 4, sort each first computing node according to the size of the current available resources of each first computing node; Step 5, deploy the sub-computing task group corresponding to the currently deleted second node on the first computing node with the most currently available resources; Step 6, repeat Step 1, Step 2, Step 3, Step 4, Step 5 and Step 6 until all sub-computing task groups are deployed on the first computing node.

[0160] Optionally, processing unit 902 is further specifically used to: determine a second computing node when the deployment of the sub-computing task group corresponding to the currently deleted second node fails; the second computing node is a computing node connected to the first computing node with the smallest currently available resources; and use the second computing node as a computing node in the first computing node, and repeat steps 4 and 5.

[0161] Optionally, the electronic device may further include a storage module for storing program code and / or data of the electronic device.

[0162] The processing unit 902 may be a processor or a controller. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the contents disclosed in this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc. The acquisition unit 901 may be a transceiver circuit or a communication interface, etc. The storage unit may be a memory. When the processing unit 902 is a processor, the acquisition unit 901 is a communication interface, and the storage unit is a memory, the electronic device involved in the embodiments of this application may be Figure 1 Electronic equipment shown.

[0163] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the network node is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, module and network node described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0164] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes each step in the method flow shown in the above method embodiment.

[0165] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the computing task deployment method in the above method embodiment.

[0166] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), registers, hard disks, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any other form of computer-readable storage medium in a suitable combination of the above, or numerical values ​​in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an Application Specific Integrated Circuit (ASIC). In embodiments of the present invention, computer-readable storage media may be any tangible media that contains or stores a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0167] Since the apparatus, device, computer-readable storage medium, and computer program product in the embodiments of the present invention can be applied to the above-mentioned method, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present application will not be repeated here.

[0168] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A computing task deployment method, characterized in that: include: Get computing tasks; Decomposing the computing task into a plurality of sub-computing tasks; Determine a plurality of sub-computing task groups according to the plurality of sub-computing tasks; each of the plurality of sub-computing task groups includes at least one sub-computing task of the same computing type; Determine a first computing node corresponding to each sub-computing task group; the first computing node is a first computing node in a computing network; Deploy each of the sub-computing task groups to the corresponding first computing node; The step of determining the first computing node corresponding to each sub-computing task group includes: Determine the association relationship between the plurality of sub-computing tasks; the association relationship between the sub-computing tasks is used to characterize the association relationship between the sub-computing tasks having computational association; Determine the association relationship between the multiple sub-computing task groups according to the association relationship between the multiple sub-computing tasks; wherein the association relationship between a sub-computing task group and other sub-computing task groups includes: the association relationship between each sub-computing task in the one sub-computing task group and the sub-computing tasks in other sub-computing task groups; Determine the first computing node corresponding to each sub-computing task group according to the number of other sub-computing task groups associated with each sub-computing task group and the computing resources of each first computing node in the computing network; The determining, according to the association relationship between the plurality of sub-computing tasks, the association relationship between the plurality of sub-computing task groups includes: Determine a first topology according to the association relationship between the multiple sub-computing tasks; wherein each node in the first topology is each sub-computing task in the multiple sub-computing tasks; and the connection relationship between the nodes in the first topology is used to characterize the association relationship between the multiple sub-computing tasks; Merging nodes of the same computing type in the first topology to determine a second topology; a node in the second topology corresponds to a sub-computing task group in the multiple sub-computing task groups; the connection relationship between each node in the second topology includes the connection relationship between each node in the first topology; Determining the association relationship between the plurality of sub-computing task groups according to the connection relationship between the nodes in the second topology; The determining of the first computing node corresponding to each sub-computing task group according to the number of other sub-computing task groups associated with each sub-computing task group and the computing resources of each first computing node in the computing network includes: Step 1: Determine at least one first node in the current second topology; the first node is the node connected to the largest number of other nodes in the current second topology; Step 2: determining a second node from the at least one first node; the second node is the node requiring the most computing resources among the at least one first node; Step 3: deleting the second node from the current second topology, and using the current second topology after deleting the second node as the current second topology; Step 4: Sort the first computing nodes according to the sizes of the currently available resources of the first computing nodes; Step 5: deploy the sub-computing task group corresponding to the currently deleted second node on the first computing node with the most currently available resources; Step 6: Repeat step 1, step 2, step 3, step 4, and step 5 until all the sub-computing task groups are deployed on the first computing node.

2. The method according to claim 1, characterized in that The deploying the sub-computing task group corresponding to the currently deleted second node on the first computing node with the most currently available resources includes: If the sub-computing task group corresponding to the currently deleted second node fails to be deployed, determine a second computing node; the second computing node is a computing node connected to the first computing node with the smallest currently available resources; The second computing node is used as a computing node in the first computing node, and step 4 and step 5 are repeatedly performed.

3. A computing task deployment device, characterized in that: include: Acquisition unit and processing unit; The acquisition unit is used to acquire the computing task; The processing unit is used to decompose the computing task into a plurality of sub-computing tasks; The processing unit is further configured to determine a plurality of sub-computing task groups according to the plurality of sub-computing tasks; each of the plurality of sub-computing task groups includes at least one sub-computing task of the same computing type; The processing unit is further used to determine the first computing node corresponding to each sub-computing task group; the first computing node is the first computing node in the computing network; The processing unit is further used to deploy each of the sub-computing task groups to the corresponding first computing node; Wherein, the processing unit is specifically used for: Determine the association relationship between the plurality of sub-computing tasks; the association relationship between the sub-computing tasks is used to characterize the association relationship between the sub-computing tasks having computational association; Determine the association relationship between the multiple sub-computing task groups according to the association relationship between the multiple sub-computing tasks; wherein the association relationship between a sub-computing task group and other sub-computing task groups includes: the association relationship between each sub-computing task in the one sub-computing task group and the sub-computing tasks in other sub-computing task groups; Determine the first computing node corresponding to each sub-computing task group according to the number of other sub-computing task groups associated with each sub-computing task group and the computing resources of each first computing node in the computing network; Wherein, the processing unit is specifically used for: Determine a first topology according to the association relationship between the multiple sub-computing tasks; wherein each node in the first topology is each sub-computing task in the multiple sub-computing tasks; and the connection relationship between the nodes in the first topology is used to characterize the association relationship between the multiple sub-computing tasks; Merging nodes of the same computing type in the first topology to determine a second topology; a node in the second topology corresponds to a sub-computing task group in the multiple sub-computing task groups; the connection relationship between each node in the second topology includes the connection relationship between each node in the first topology; Determining the association relationship between the plurality of sub-computing task groups according to the connection relationship between the nodes in the second topology; The processing unit is specifically configured to perform the following steps: Step 1: Determine at least one first node in the second topology; the first node is the node connected to the largest number of other nodes in the second topology; Step 2: determining a second node from the at least one first node; the second node is the node requiring the most computing resources among the at least one first node; Step 3: deleting the second node from the second topology, and using the second topology after deleting the second node as the second topology; Step 4: Sort the first computing nodes according to the sizes of the currently available resources of the first computing nodes; Step 5: deploy the sub-computing task group corresponding to the currently deleted second node on the first computing node with the most currently available resources; Step 6: Repeat step 1, step 2, step 3, step 4, and step 5 until all the sub-computing task groups are deployed on the first computing node.

4. The device according to claim 3, characterized in that The processing unit is further configured to: In the case where the sub-computing task group corresponding to the currently deleted second node fails to be deployed, determining a second computing node; the second computing node is a computing node connected to the first computing node with the smallest currently available resources; The second computing node is used as a computing node in the first computing node, and step 4 and step 5 are repeatedly performed.

5. An electronic device, characterized in that: include: A processor and a memory; wherein the memory is used to store computer-executable instructions, and when the electronic device is running, the processor executes the computer-executable instructions stored in the memory so that the electronic device performs the computing task deployment method described in any one of claims 1-2.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes instructions, which, when executed by an electronic device, cause the computer to execute the computing task deployment method as described in any one of claims 1-2.

Citation Information

Patent Citations

  • Internet of Things flow calculation scheduling method and device and electronic equipment

    CN111049900A

  • Task scheduling method and device

    CN113391914A