A computing power routing method, device, system, product and readable storage medium

By selecting forwarding nodes through dynamic calculation and sampling, the problem of static rule routing being unable to adapt to changes in the computing power scheduling system is solved, and resource utilization and system performance are improved.

CN118550710BActive Publication Date: 2024-10-11INSPUR (BEIJING) ELECTRONICS INFORMATION IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411010565.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-11
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

The existing static rule routing solution cannot adapt to the dynamic environment changes of the computing power scheduling system, resulting in low resource utilization and affecting system performance.

Method used

By obtaining computing resource information and task characteristics information, the probability distribution of each neighborhood node is calculated, and on this basis, the target forwarding node is sampled and routed to dynamically route computing tasks to adapt to changes in the system environment.

Benefits of technology

It improves the resource utilization and security of the computing power scheduling system, optimizes system performance, and reduces the risk of computing nodes being attacked.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550710B_ABST
    Figure CN118550710B_ABST
Patent Text Reader

Abstract

The present invention discloses a computing power routing method, device, system, product and readable storage medium, which relates to the field of computing power scheduling. In order to solve the problem that static rule routing cannot adapt to dynamic environmental changes, the computing power routing method includes obtaining first computing power resource information and task characteristic information of a pending computing task; obtaining the probability distribution of forwarding the pending computing task to each neighboring node according to the task characteristic information and the first computing power resource information; sampling in the probability distribution to obtain a target forwarding node, and forwarding the task characteristic information to the target forwarding node. The present invention can adapt to dynamic environmental changes in a computing power scheduling system, improve the resource utilization and security of the computing power scheduling system, and optimize the performance of the computing power scheduling system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computing power scheduling, and in particular to a computing power routing method, device, system, product and readable storage medium. Background Art

[0002] Computing-dependent route (CDR) is a part of computing scheduling. Computing routing technology refers to the technology of routing computing tasks to appropriate computing nodes for processing in a distributed computing environment. The most common computing routing solution at present is static rule routing. In static rule routing, computing tasks are routed to the computing nodes specified in the computing scheduling system according to pre-defined static rules. This routing solution cannot adapt to the dynamic environmental changes in the computing scheduling system, resulting in low resource utilization of the computing scheduling system, which is not conducive to optimizing the performance of the computing scheduling system.

[0003] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. Summary of the invention

[0004] The purpose of the present invention is to provide a computing power routing method, device, system, product and readable storage medium that can adapt to dynamic environmental changes in the computing power scheduling system, improve the resource utilization and security of the computing power scheduling system, and optimize the performance of the computing power scheduling system.

[0005] In order to solve the above technical problems, the present invention provides a computing power routing method, which is applied to a routing device in each computing node in a computing power scheduling system, wherein the computing node also includes a computing device, and the computing power routing method includes:

[0006] Obtaining first computing power resource information and task characteristic information of the computing task to be processed; the first computing power resource information includes network resource information in the computing power scheduling system and computing resource information of each neighboring node, and the neighboring node is a computing node in the computing power scheduling system that is interconnected with the computing node where the computing node is located;

[0007] Obtaining a probability distribution of forwarding the pending computing task to each neighboring node according to the task characteristic information and the first computing resource information;

[0008] Sampling is performed in the probability distribution to obtain a target forwarding node, and the task characteristic information is forwarded to the target forwarding node.

[0009] The process of acquiring the probability distribution of forwarding the pending computing task to each neighboring node according to the task characteristic information and the first computing resource information includes:

[0010] Determine whether the computing node where the computing node is located is an execution node of the computing task to be processed according to the task characteristic information;

[0011] If so, trigger the computing device of the computing node where the computing device is located to execute the computing task to be processed;

[0012] If not, the probability distribution of forwarding the pending computing task to each neighboring node is calculated based on the first computing resource information.

[0013] The process of calculating the probability distribution of forwarding the pending computing task to each neighboring node according to the first computing power resource information includes:

[0014] Obtaining a node feature vector of each of the neighborhood nodes according to the network resource information and the computing resource information of each of the neighborhood nodes;

[0015] Obtaining a time information vector of the computing power scheduling system;

[0016] The probability distribution of forwarding the to-be-processed computing task to each neighboring node is obtained according to the time information vector and the node feature vector of each of the neighboring nodes.

[0017] The first computing power resource information also includes communication overhead information of each of the neighboring nodes;

[0018] The process of obtaining the node feature vector of each of the neighboring nodes according to the network resource information and the computing resource information of each of the neighboring nodes includes:

[0019] A node feature vector of each of the neighborhood nodes is obtained according to the network resource information, the computing resource information of each of the neighborhood nodes, and the communication overhead information.

[0020] The process of obtaining the probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the time information vector and the node feature vector of each of the neighboring nodes includes:

[0021] The time information vector and the node feature vector of each of the neighborhood nodes are input into a preset diffusion model to obtain the probability distribution of forwarding the to-be-processed computing task to each neighborhood node.

[0022] Wherein, before inputting the time information vector and the node feature vector of each of the neighborhood nodes into a preset diffusion model to obtain the probability distribution of forwarding the to-be-processed computing task to each neighborhood node, the computing power routing method further includes:

[0023] Receive model parameters sent by upstream nodes;

[0024] The preset diffusion model is obtained based on the model parameters.

[0025] Before receiving the model parameters sent by the upstream node, the computing power routing method further includes:

[0026] Create an initial diffusion model;

[0027] Outputting and storing the current probability distribution of the execution action according to the current computing power resource information through the initial diffusion model;

[0028] Determine whether there is a node failure or communication failure;

[0029] If yes, when a response signal sent by the faulty node is received, the current probability distribution of the execution action is corrected, and an operation of determining whether there is a node failure or a communication failure is performed;

[0030] If not, sample the execution action according to the current probability distribution of the execution action, and return the reward value and new computing resource information;

[0031] Extract time information data from a preset storage area, train the initial diffusion model according to the time information data, the immediate reward value and the long-term reward value, until the initial diffusion model converges to obtain a preset diffusion model, and obtain model parameters of the preset diffusion model.

[0032] The process of acquiring the probability distribution of forwarding the pending computing task to each neighboring node according to the task characteristic information and the first computing resource information includes:

[0033] Determine a candidate forwarding node corresponding to the task characteristic information in each of the neighboring nodes;

[0034] Obtain the probability distribution of forwarding the to-be-processed computing task to each of the candidate forwarding nodes.

[0035] The process of sampling in the probability distribution to obtain the target forwarding node includes:

[0036] Sampling in the probability distribution to obtain the current candidate node;

[0037] Determine the network topology status between itself and the current candidate node;

[0038] When the network topology state is an interconnected state, the current candidate node is determined as a target forwarding node.

[0039] The process of sampling the probability distribution to obtain the current candidate node includes:

[0040] Determine a first sampling range corresponding to the probability distribution, and generate a first random number within the first sampling range;

[0041] Obtaining probability intervals corresponding to each of the candidate forwarding nodes according to the probability distribution;

[0042] The candidate forwarding node corresponding to the probability interval in which the first random number is located is determined as the current node to be selected.

[0043] After sampling the probability distribution to obtain the current candidate node, the computing power routing method further includes:

[0044] Storing the candidate probability distribution in a preset storage space; the candidate probability distribution is the probability distribution of all the candidate forwarding nodes except the current candidate node;

[0045] After determining the network topology state between itself and the current candidate node, the process of sampling in the probability distribution to obtain the target forwarding node also includes:

[0046] When the network topology state is a non-interconnected state, obtaining the alternative probability distribution;

[0047] After sampling the candidate probability distribution to obtain the current candidate node, an operation of determining the network topology state between itself and the current candidate node is performed.

[0048] The process of sampling the candidate probability distribution to obtain the current candidate node includes:

[0049] Determine a second sampling range corresponding to the alternative probability distribution, and generate a second random number within the second sampling range;

[0050] Obtaining a probability interval corresponding to each of the candidate forwarding nodes according to the candidate probability distribution;

[0051] The candidate forwarding node corresponding to the probability interval in which the second random number is located is determined as the current node to be selected.

[0052] Before obtaining the probability distribution of forwarding the pending computing task to each neighboring node according to the task characteristic information and the first computing power resource information, the computing power routing method further includes:

[0053] Obtaining the topological connection relationship of the graph data corresponding to the computing power scheduling system;

[0054] Determine its own neighboring nodes according to the topological connection relationship of the graph data.

[0055] Before determining whether the computing node where the computing node is located is an execution node of the computing task to be processed according to the task characteristic information, the computing power routing method further includes:

[0056] Obtain second computing power resource information in the computing node where the computing node is located; the second computing power resource information includes computing resource information of a computing device in the computing node where the computing node is located;

[0057] The process of determining whether the computing node where the computing node is located is an execution node of the computing task to be processed according to the task characteristic information includes:

[0058] Determine whether the node itself is the execution node of the computing task to be processed according to the task characteristic information and the computing resource information of the computing device in the computing node where the node itself is located.

[0059] The process of determining whether the node is an execution node of the computing task to be processed according to the task characteristic information and the computing resource information of the computing device in the computing node where the node is located includes:

[0060] Determine whether the computing resource information of the computing device in the computing node where the computing device is located matches the task characteristic information;

[0061] If so, determine that it is the execution node of the computing task to be processed;

[0062] If not, it is determined that it is not the execution node of the computing task to be processed.

[0063] In order to solve the above technical problems, the present invention further provides a computing power routing device, comprising:

[0064] A receiving module, configured to obtain first computing power resource information and task characteristic information of a computing task to be processed; the first computing power resource information includes network resource information in a computing power scheduling system and computing resource information of each neighboring node, wherein the neighboring node is a computing node in the computing power scheduling system that is interconnected with the computing node where the neighboring node is located;

[0065] A processing module, configured to obtain a probability distribution of forwarding the computing task to be processed to each neighboring node according to the task characteristic information and the first computing resource information, and obtain a target forwarding node by sampling the probability distribution;

[0066] A sending module is used to send the task characteristic information to the target forwarding node.

[0067] Wherein, the receiving module is also used to receive model parameters and time information data;

[0068] The processing modules include:

[0069] The collector is used to obtain the second computing power resource information in the computing node where it is located;

[0070] A discriminator, configured to determine whether it is an execution node of the computing task to be processed according to the task characteristic information and the computing resource information of the computing device in the computing node where it is located, and if so, generate a first trigger signal, and if not, generate a second trigger signal;

[0071] The preprocessing unit, when receiving the second trigger signal, obtains a node feature vector of each of the neighboring nodes according to the network resource information and the computing resource information of each of the neighboring nodes, and obtains a time information vector according to the time information data;

[0072] A computing unit, configured to obtain a probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the time information vector, the node feature vector of each of the neighboring nodes, and the model parameters;

[0073] A sampling unit, used for sampling in the probability distribution to obtain a target forwarding node;

[0074] The sending module is specifically used to forward the model parameters and the task characteristic information to the target forwarding node;

[0075] The computing device is used to execute the pending computing task upon receiving the first trigger signal.

[0076] The sampling unit is specifically used to obtain the current candidate node by sampling in the probability distribution;

[0077] The processing module also includes:

[0078] A backup unit, used to store candidate probability distribution; the candidate probability distribution is the probability distribution of all candidate forwarding nodes except the current candidate node;

[0079] The discriminator is further used to determine whether the network topology of the computing power scheduling system has changed or failed according to the network resource information, and if so, generate a third trigger signal;

[0080] The sampling unit is further configured to, upon receiving the third trigger signal, read the candidate probability distribution from the backup unit, perform sampling in the candidate probability distribution to obtain a current node to be selected, and trigger the discriminator.

[0081] In order to solve the above technical problems, the present invention also provides a computing power scheduling system, including multiple computing nodes, each of which includes a computing device and a computing power routing device as described in any one of the above.

[0082] In order to solve the above technical problems, the present invention also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the computing power routing method as described in any one of the above items.

[0083] In order to solve the above technical problems, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the computing power routing method as described in any one of the above items are implemented.

[0084] The present invention provides a computing power routing method. When computing power routing is performed on a computing task to be processed, the probability distribution of forwarding the computing task to be processed to each neighboring node is calculated based on the task characteristic information of the computing task to be processed, the network resource information in the computing power scheduling system, and the computing resource information of each neighboring node, so as to adapt to the dynamic environmental changes in the computing power scheduling system, facilitate improving the resource utilization of the computing power scheduling system, optimize the performance of the computing power scheduling system, and sample the target forwarding node from the probability distribution, so that any neighboring node may be used as the target forwarding node, so that the forwarding path of the computing task to be processed is dynamically changed, reducing the risk of the computing node executing the computing task to be processed being attacked, and improving the security of the computing power scheduling system. The present invention also provides a computing power routing device, a computing power scheduling system, a computer program product, and a computer-readable storage medium, which have the same beneficial effects as the above-mentioned computing power routing method. BRIEF DESCRIPTION OF THE DRAWINGS

[0085] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0086] Figure 1 A flowchart of the steps of a computing power routing method provided by the present invention;

[0087] Figure 2 A schematic diagram of a topological connection relationship of graph data provided by the present invention;

[0088] Figure 3 A schematic diagram of the connection relationship of a computing node provided by the present invention;

[0089] Figure 4 A schematic diagram of integrated information provided by the present invention;

[0090] Figure 5 A schematic diagram of another connection relationship of computing nodes provided by the present invention;

[0091] Figure 6 A schematic diagram of a diffusion model sampling process provided by the present invention;

[0092] Figure 7 A schematic diagram of another diffusion model sampling process provided by the present invention;

[0093] Figure 8 A flowchart of another computing power routing method provided by the present invention;

[0094] Fig. 9 A schematic diagram of the structure of a computing power routing system provided by the present invention;

[0095] Fig.10 A schematic diagram of the structure of a computing power routing device provided by the present invention;

[0096] Fig.11 This is a schematic diagram of the structure of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION

[0097] The core of the present invention is to provide a computing power routing method, device, system, product and readable storage medium, which can adapt to dynamic environmental changes in the computing power scheduling system, improve the resource utilization and security of the computing power scheduling system, and optimize the performance of the computing power scheduling system.

[0098] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0099] In a first aspect, the present invention provides a computing power routing method, which is applied to a computing power routing device in each computing node in a computing power scheduling system. The computing node also includes a computing device. This embodiment takes a computing power routing device as an example to illustrate the computing power routing method of the present invention. The same applies to other computing power routing devices in the computing power scheduling system.

[0100] Please refer to Figure 1 , Figure 1 A flowchart of a computing power routing method provided by the present invention, the computing power routing method comprising:

[0101] S101: Obtain first computing power resource information and task characteristic information of a computing task to be processed; the first computing power resource information includes network resource information in the computing power scheduling system and computing resource information of each neighboring node, where the neighboring node is a computing node in the computing power scheduling system that is interconnected with the computing node where the neighboring node is located;

[0102] In this embodiment, the task characteristic information includes but is not limited to the category and processing requirements of the computing tasks to be processed. It can be understood that different computing nodes in the computing power scheduling system can process different categories of computing tasks. For example, computing nodes including GPUs (Graphics Processing Units) can process AI (Artificial Intelligence) computing tasks.

[0103] As an optional embodiment, the graph data topological connection relationship (spatial adjacency matrix) corresponding to the computing power scheduling system can be obtained in advance. The graph data topological connection relationship can characterize the connection status of each computing node in the computing power scheduling system, thereby determining the computing nodes interconnected with itself. Figure 2 As shown, Figure 2 A schematic diagram of a topological connection relationship of graph data provided by the present invention, Figure 2 The connection relationship of the five computing nodes is shown in FIG. The connection relationship diagram of the computing nodes corresponding to the topological connection relationship of the data in FIG. Figure 3 As shown, Figure 3 In the figure, ①, ②, ③, ④, and ⑤ represent the first computing node, the second computing node, the third computing node, the fourth computing node, and the fifth computing node respectively, and a solid line represents the connection status between two computing nodes. Figure 2 In n ij =1 means that the i-th computing node and the j-th computing node are interconnected, with n ij = 0 means that the i-th computing node and the j-th computing node are not connected, n ij If it is empty, it means that there is no connection between the i-th computing node and the j-th computing node. ij is the element in the i-th row and j-th column of the spatial adjacency matrix. Figure 3 For example, if the computing node where the computing node is located is the fourth computing node, then the neighboring nodes of the computing node include the first computing node, the fifth computing node and the second computing node.

[0104] Reference Figure 4As shown, the first computing power resource information includes network resource information in the computing power scheduling system and computing resource information of each neighboring node. Specifically, the network resource information included in the first computing power resource information is the network resource information of each neighboring node. The network resource information includes but is not limited to information such as bandwidth, delay, and jitter at the current acquisition time. The computing resource information of each neighboring node includes but is not limited to information such as CPU (Central Processing Unit) utilization, GPU utilization, memory utilization, GPU video memory utilization, and storage utilization in the neighboring node. Figure 4 In the above figure, ρ1 represents the CPU utilization, ρ2 represents the GPU utilization, and ρ3 represents the storage utilization.

[0105] As an optional embodiment, in order to save the communication overhead of the computing power scheduling system, the first computing power resource information may also include the communication overhead information of each neighboring node, including but not limited to the unit time cost, distance cost, other costs and the like, wherein the unit time cost may specifically be the cost generated per unit time (such as per second) during the data transmission process, the distance cost includes but is not limited to the optical fiber transmission cost, where the distance is the distance between itself and the neighboring node, and other costs include but are not limited to the heat dissipation cost. Figure 4 The unit time cost is represented by ρ4, the distance cost is represented by ρ5, and other costs are represented by ρ6.

[0106] In this embodiment, the computing task to be processed can be a computing task that is about to be sent to this computing node, or it can be a computing task that is being executed on this computing node. Accordingly, when it is monitored that there is a computing task that is about to be sent to this computing node (the task characteristic information received from the upstream computing node can be used as a basis for determining that a computing task is about to be sent to this computing node), the first computing power resource information at the current moment can be obtained. When it is determined that this computing node is abnormal, such as the computing device of this computing node is abnormal, the first computing power resource information and task characteristic information at the current moment can be obtained. When it is determined that the computing task being executed on this computing node has reached its longest execution time on this computing node, the first computing power resource information and task characteristic information at the current moment can be obtained. The triggering conditions for obtaining the first computing power resource information and the task characteristic information of the computing task to be processed can be selected according to actual engineering needs, and this embodiment is not limited here.

[0107] S102: Obtaining a probability distribution of forwarding the pending computing task to each neighboring node according to the task characteristic information and the first computing power resource information;

[0108] It can be understood that the neighboring nodes in this embodiment are all computing nodes interconnected with the computing node. According to the task characteristic information, network resource information and computing resource information of each neighboring node, the probability distribution of sending the to-be-processed computing task to each neighboring node is calculated. Figure 5 For example, assuming that the computing node is ④, then the computing nodes interconnected with this computing node are ①, ②, ③, and ⑤. Assuming that the upstream node of this computing node is ①, then the neighboring nodes of this computing node are determined to be ②, ③, and ⑤, and the probability distribution of forwarding the pending computing tasks from ④ to ②, ③, and ⑤ is calculated. It can be understood that under different first computing power resource information, the calculated probability distribution of forwarding the pending computing tasks from ④ to ②, ③, and ⑤ may be different, thereby adapting to the dynamic environment changes of the computing power scheduling system, such as the first computing power resource information M obtained at time t t Under this condition, the probability distribution of forwarding the pending computing task from ④ to ②, ③, and ⑤ can be P(②|①)=0.2, P(③|①)=0.3, and P(⑤|①)=0.5. The first computing power resource information M obtained at time t+1 t+1 Under this condition, the probability distribution can be P(②|①)=0.4, P(③|①)=0.2, P(⑤|①)=0.4, where P(A|B) represents the probability of A occurring under the condition that B occurs. In this embodiment, B is ①, and A can be ②, ③, or ⑤.

[0109] S103: Sampling is performed in the probability distribution to obtain a target forwarding node, and the task characteristic information is forwarded to the target forwarding node.

[0110] In this embodiment, after obtaining the probability distribution of forwarding the pending computing task to each neighboring node according to the above scheme, sampling is performed in the probability distribution to obtain the target forwarding node. The target forwarding node can be any one of the neighboring nodes, that is, when the pending computing task is forwarded, it will not be forwarded to a fixed neighboring node, so that the forwarding path of the pending computing task is dynamically changed, thereby reducing the risk of the computing node executing the pending computing task being attacked.

[0111] It can be seen that in this embodiment, when computing power routing is performed on the computing tasks to be processed, the probability distribution of forwarding the computing tasks to be processed to each neighboring node is calculated based on the task characteristic information of the computing tasks to be processed, the network resource information in the computing power scheduling system, and the computing resource information of each neighboring node, so as to adapt to the dynamic environmental changes in the computing power scheduling system, facilitate improving the resource utilization of the computing power scheduling system, optimize the performance of the computing power scheduling system, and sample from the probability distribution to obtain the target forwarding node, so that any neighboring node may be used as the target forwarding node, so that the forwarding path of the computing tasks to be processed is dynamically changed, which reduces the risk of the computing nodes executing the computing tasks to be processed being attacked and improves the security of the computing power scheduling system.

[0112] Based on the above embodiments:

[0113] In an exemplary embodiment, the process of acquiring the probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the task characteristic information and the first computing power resource information includes:

[0114] Determine whether the computing node where the computing node is located is the execution node of the computing task to be processed according to the computing power resource information;

[0115] If so, trigger the computing device of the computing node where the computing device is located to execute the pending computing task;

[0116] If not, the probability distribution of forwarding the pending computing task to each neighboring node is calculated based on the first computing power resource information.

[0117] In this embodiment, after determining the task characteristic information, it can be determined first whether the computing node can execute the computing task to be processed normally. If the computing node can execute normally, then the computing node is the execution node of the computing task to be processed, and the computing device of the computing node is triggered to execute the computing task to be processed. If the computing node cannot execute the computing task to be processed normally, a downward forwarding operation is performed, that is, the probability distribution of forwarding the computing task to be processed to each neighboring node is calculated according to the first computing power resource information, and the target forwarding node is determined by sampling in the probability distribution, and the computing task is forwarded to the target forwarding node.

[0118] In an exemplary embodiment, the second computing power resource information in the computing node where the computer is located can be obtained, wherein the second computing power resource information includes the computing resource information of the computing device in the computing node where the computer is located, and it is determined whether the task characteristic information and the computing resource information of the computing device in the computing node where the computer is located match, that is, whether the computing resources and network resources in the computing node where the computer is located can meet the execution requirements of the computing task to be processed. If so, it is determined that the computer is the execution node of the computing task to be processed. If not, it is determined that the computer is not the execution node of the computing task to be processed, and a downward forwarding operation is performed.

[0119] In an exemplary embodiment, the process of calculating the probability distribution of forwarding the pending computing task to each neighboring node according to the first computing power resource information includes:

[0120] Obtaining a node feature vector of each neighborhood node according to network resource information and computing resource information of each neighborhood node;

[0121] Obtain the time information vector of the computing power scheduling system;

[0122] The probability distribution of forwarding the pending computing task to each neighboring node is obtained according to the time information vector and the node feature vector of each neighboring node.

[0123] In this embodiment, when the computing node is unable to execute the computing task to be processed, the network resource information, computing resource information and communication overhead information corresponding to each neighboring node are used to calculate the node feature vector of the neighboring node. The node feature vector of each neighboring node is a set of high-dimensional vectors, which are used to characterize whether the computing task to be processed can be run on the neighboring node, and can reflect the task affinity for the computing task to be processed.

[0124] Obtain the time information vector (embedding vector). The time information vector is determined based on the number of network hops of the computing power scheduling system. The time information vector can further optimize the task scheduling. After obtaining the time information vector and the node feature vector of each neighboring node, the probability distribution of forwarding the pending computing task to each neighboring node is obtained based on the time information vector and the node feature vector of each neighboring node. The probability of forwarding the pending computing task to each neighboring node in the probability distribution is associated with the computing resources and network resources of the neighboring node, so as to better adapt to the dynamic environmental changes of the computing power scheduling system.

[0125] In an exemplary embodiment, the process of obtaining the probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the time information vector and the node feature vector of each neighboring node includes:

[0126] The time information vector and the node feature vector of each neighborhood node are input into a preset diffusion model to obtain the probability distribution of forwarding the to-be-processed computing task to each neighborhood node.

[0127] In this embodiment, a diffusion model can be pre-constructed. The diffusion model has better expression capabilities for complex scenarios, can adapt to changing scenarios during network transmission, and more comprehensively characterize the conditions of different network resources and computing resources.

[0128] Reference Figure 6 and Figure 7 , to illustrate the diffusion model, where A is the spatial adjacency matrix of the network topology, A 0 Represents the graph in the original data, Figure 6 A T ~G(N,0) represents the spatial adjacency matrix at the last time T, which obeys a Gaussian distribution with N (the number of computing nodes) as the mean and 0 as the variance. G(N,0) represents a Gaussian distribution with N as the mean and 0 as the variance. The spatial adjacency matrix at the initial time 0, that is, the unprocessed raw data, can be represented by A0:data.

[0129] The diffusion process is defined as q(A t |A t-1 ), give A 0 Add disturbance (remove edge, remove 1), and after T steps, form a trajectory path (A 0 , A 1 ,···,A T ), where A t represents the spatial adjacency matrix at time t, A t-1 represents the spatial adjacency matrix at time t-1, q(A t |A t-1 ) means that given A t-1 Under the condition of t The conditional probability of A 1 Represents the spatial adjacency matrix at time t=1, A T Indicates the spatial adjacency matrix at time t=T, since A 0 is the spatial adjacency matrix. The 1 in the spatial adjacency matrix represents a connected edge. Adding disturbance is equivalent to removing the connected edge, that is, removing the 1 in the matrix.

[0130] q(A t |A t-1 ) = Bernoulli(A t ; (1-β t )A t-1 +β t p);

[0131] Among them, A t-1 represents the spatial adjacency matrix at time t-1, q(A t |A t-1 ) means that given A t-1 Under the condition of t The conditional probability of p is the sampling probability of the Bernoulli distribution under no conditions. Bernoulli(Y1;Y2) is used to represent the Bernoulli distribution. The probability of the event Y1 occurring is Y2. Then Bernoulli(A t ; (1-β t )A t-1 +β t p) indicates that A occurs t The probability of t )A t-1 +β t p. Diffusion rate β t Decided from Resample with probability p from a Bernoulli distribution instead of Medium sampling, Represents the spatial adjacency matrix A at time t t The matrix element of the i-th row and j-th column of Represents the spatial adjacency matrix A at time t-1 t The matrix element at the i-th row and j-th column of .

[0132] In the generation process, from p(A T ) Sample A T , then use iteratively using p θ (A t-1 |A t ) to generate (route, go to 0) to obtain A 0 Sample, where p θ (A t-1 |A t ) is the trained neural network model, p(A T ) is the spatial adjacency matrix A T The probability distribution of θ represents the parameters of the neural network model, p θ (A t-1 |A t ) means that in the neural network model with θ as parameter, A t As a condition, generate A t-1 The probability distribution of routing represents the process of changing from 0 elements to 1 elements in the spatial adjacency matrix, and removing 0 means changing from 0 to 1.

[0133] The present invention introduces a diffusion model, takes the computing power routing devices in the computing nodes as nodes in the graph, and the network transmission connections as edges in the graph, thus converting the routing problem into a graph generation problem.

[0134] Specifically, refer to Figure 8 , describes the scheme for pre-building diffusion models, including:

[0135] Create an initial diffusion model, and use the initial diffusion model to output and store the current probability distribution of the execution action based on the current computing power resource information;

[0136] Determine whether there is a node failure or communication failure;

[0137] If so, the failed node sends a response signal to the previous node to correct the probability distribution of the executed action, and proceeds to determine whether there is a node failure or a communication failure;

[0138] If not, sample the execution action according to the current probability distribution of the execution action, and return the reward value and new computing resource information;

[0139] Time information data is stored in the experience pool;

[0140] Extract time information data from the experience pool, and train the initial diffusion model based on the time information data, immediate reward value, and long-term reward value;

[0141] The initial diffusion model converges to obtain a preset diffusion model, and the model parameters of the preset diffusion model are obtained and transmitted to the neighborhood nodes.

[0142] In an exemplary embodiment, before inputting the time information vector and the node feature vector of each neighborhood node into a preset diffusion model to obtain the probability distribution of forwarding the to-be-processed computing task to each neighborhood node, the computing power routing method further includes:

[0143] Receive model parameters sent by upstream nodes;

[0144] A preset diffusion model is obtained based on the model parameters.

[0145] In this embodiment, after the converged preset diffusion model is obtained, the model parameters can be directly transmitted to the downstream computing nodes, and the downstream computing nodes make subsequent decisions based on the model parameters.

[0146] In an exemplary embodiment, the process of acquiring the probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the task characteristic information and the first computing power resource information includes:

[0147] Determine a candidate forwarding node corresponding to the task characteristic information in each neighboring node;

[0148] Obtain the probability distribution of forwarding the pending computing task to each candidate forwarding node.

[0149] It can be understood that the neighboring node is a computing node interconnected with the computing node, but the multiple computing nodes interconnected with the computing node may be computing nodes that perform different types of computing tasks. After obtaining the task characteristic information of the computing task to be processed, the candidate forwarding node is determined in each neighboring node according to the category in the task characteristic information. Figure 5 and Figure 3 For example, Figure 5 In the figure, ④ is fully interconnected with ①, ②, ③, and ⑤, that is, ①, ②, ③, and ⑤ are all neighboring nodes of ④. Assuming that the type of the computing task to be processed is K1, but ① is an upstream computing node, the computing task to be processed will not be transmitted upward, and ② cannot process K1 type computing tasks. Therefore, the candidate forwarding nodes are ③ and ⑤. Subsequently, it is only necessary to calculate the probability distribution of forwarding the computing task to be processed to ③ and ⑤, which reduces the amount of calculation. Since ③ and ⑤ can both process the computing tasks to be processed, the resources of each computing node in the computing power scheduling system can be fully utilized.

[0150] In an exemplary embodiment, the process of sampling in the probability distribution to obtain the target forwarding node includes:

[0151] Sampling is performed in the probability distribution to obtain the current candidate node;

[0152] Determine the network topology status between itself and the current candidate node;

[0153] When the network topology state is an interconnected state, the current candidate node is determined as the target forwarding node.

[0154] In this embodiment, after the probability distribution is determined according to the above scheme, a current candidate node is first sampled in the probability distribution. The current candidate node is one of the candidate forwarding nodes. Figure 3 For example, assuming that the current candidate node is ②, the network topology state between itself and the current candidate node is determined. When the network topology is abnormal or changed, the network topology state between itself and the current candidate node may be changed. Therefore, after determining the current candidate node, this embodiment detects whether the network topology state is faulty or changed, thereby determining the network topology state between itself and the current candidate node. When the network topology state is an interconnected state, the current candidate node is determined as the target forwarding node, thereby improving the reliability of routing.

[0155] In an exemplary embodiment, the process of sampling in the probability distribution to obtain the current candidate node includes:

[0156] Determine a first sampling range corresponding to the probability distribution, and generate a first random number within the first sampling range;

[0157] Obtain the probability interval corresponding to each candidate forwarding node according to the probability distribution;

[0158] The candidate forwarding node corresponding to the probability interval in which the first random number is located is determined as the current node to be selected.

[0159] In this embodiment, the probability distribution is P(②|①)=0.2, P(③|①)=0.3, P(⑤|①)=0.5 as an example for explanation. Since the sum of the probabilities of the candidate forwarding nodes is 1, the first sampling range in this embodiment can be 0~1. A first random number is generated between 0~1. The probability interval corresponding to each candidate forwarding node can be determined according to the probability distribution. The candidate forwarding node corresponding to the probability interval of the first random number is determined as the current candidate node. If the generated first random number is 0.65, the current candidate node is ⑤. If the generated second random number is 0.4, the current candidate node is ③.

[0160] Of course, in addition to the above-mentioned probability distribution and sampling method, other probability distributions and sampling methods may also be selected according to actual engineering needs, and this embodiment does not make any specific limitations here.

[0161] In an exemplary embodiment, after sampling the probability distribution to obtain the current candidate node, the computing power routing method further includes:

[0162] The candidate probability distribution is stored in a preset storage space; the candidate probability distribution is the probability distribution of all candidate forwarding nodes except the current candidate node;

[0163] After determining the network topology state between itself and the current candidate node, the process of sampling in the probability distribution to obtain the target forwarding node also includes:

[0164] When the network topology state is a non-interconnected state, obtain alternative probability distribution;

[0165] After sampling the candidate probability distribution to obtain the current candidate node, an operation of determining the network topology state between itself and the current candidate node is performed.

[0166] In this embodiment, after the current candidate node is determined by probability distribution, the probability distribution of all candidate forwarding nodes except the current candidate node is stored in the preset storage space as the candidate probability distribution. P(②|①)=0.2, P(③|①)=0.3, P(⑤|①)=0.5 is still taken as an example for explanation. Assuming that the current candidate node is ②, at this time, P(③|①)=0.3, P(⑤|①)=0.5 are stored as the candidate probability distribution. If the current computing node is not interconnected with ②, at this time, re-sampling is performed from the candidate probability distribution to obtain a new current candidate node, and the operation of judging the network topology state between itself and the current candidate node is re-entered until the network topology state between itself and the current candidate node is an interconnected state.

[0167] In an exemplary embodiment, the process of sampling in the candidate probability distribution to obtain the current candidate node includes:

[0168] Determine a second sampling range corresponding to the alternative probability distribution, and generate a second random number within the second sampling range;

[0169] According to the alternative probability distribution, the probability interval corresponding to each candidate forwarding node is obtained;

[0170] The candidate forwarding node corresponding to the probability interval in which the second random number is located is determined as the current node to be selected.

[0171] It can be understood that since the probability of the current node to be selected is eliminated in the alternative probability distribution, when sampling is performed, the sampling means is adaptively adjusted to ensure the accuracy of the sampling. In this embodiment, this can be achieved by adjusting the sampling range. For example, if the current node to be selected is ②, P(②|①)=0.2, therefore, a second random number can be generated in 0.2~1, and the probability interval to which the second random number belongs can be determined, or the probability interval corresponding to the alternative probability distribution can be adjusted. In this case, a random number can still be generated in the first sampling range.

[0172] Combined with the above, since the ability of the diffusion model to fit multimodal distribution far exceeds that of the traditional model, the diffusion model is introduced as a policy, a rule or decision function for selecting actions under specific conditions. In addition to processing network status information, the model also needs to integrate computing resource information and related cost information, and advance from network transmission routing to computing routing methods. It is aimed at distributed computing routing scenarios. When each routing node outputs an action according to the state, the probability distribution of the output action will be saved, and the action will be obtained through sampling. When a failure occurs, it will respond quickly and resample according to the probability distribution of historical samples to obtain a new action.

[0173] In summary, the present invention integrates network status information, computing power resource information and cost information, and is more in line with application needs in real computing power routing and scheduling scenarios. It can achieve overall network load balancing and computing power utilization optimization. The diffusion model has better expression capabilities for complex scenarios and can adapt to changing scenarios during network transmission. It can more comprehensively characterize different network and computing power resource conditions. When a fault occurs or the network topology changes, it can respond quickly to emergencies, provide backup routing solutions, and improve the reliability of computing power scheduling.

[0174] Second, please refer to Fig. 9 , Fig. 9 A schematic diagram of the structure of a computing power routing system provided by the present invention includes:

[0175] The acquisition module 11 is used to acquire the first computing power resource information and the task characteristic information of the computing task to be processed; the first computing power resource information includes the network resource information in the computing power scheduling system and the computing resource information of each neighboring node, and the neighboring node is a computing node interconnected with the computing node where the neighboring node is located;

[0176] The computing module 12 is used to obtain the probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the task characteristic information and the first computing power resource information;

[0177] A determination module 13 is used to obtain a target forwarding node by sampling in a probability distribution;

[0178] The forwarding module 14 is used to forward the task characteristic information to a target forwarding node.

[0179] It can be seen that in this embodiment, when computing power routing is performed on the computing tasks to be processed, the probability distribution of forwarding the computing tasks to be processed to each neighboring node is calculated based on the task characteristic information of the computing tasks to be processed, the network resource information in the computing power scheduling system, and the computing resource information of each neighboring node, so as to adapt to the dynamic environmental changes in the computing power scheduling system, facilitate improving the resource utilization of the computing power scheduling system, optimize the performance of the computing power scheduling system, and sample from the probability distribution to obtain the target forwarding node, so that any neighboring node may be used as the target forwarding node, so that the forwarding path of the computing tasks to be processed is dynamically changed, which reduces the risk of the computing nodes executing the computing tasks to be processed being attacked and improves the security of the computing power scheduling system.

[0180] In an exemplary embodiment, the process of acquiring the probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the task characteristic information and the first computing power resource information includes:

[0181] Determine whether the computing node where the computing node is located is the execution node of the computing task to be processed according to the computing power resource information;

[0182] If so, trigger the computing device of the computing node where the computing device is located to execute the pending computing task;

[0183] If not, the probability distribution of forwarding the pending computing task to each neighboring node is calculated based on the first computing power resource information.

[0184] In an exemplary embodiment, the process of calculating the probability distribution of forwarding the pending computing task to each neighboring node according to the first computing power resource information includes:

[0185] Obtaining a node feature vector of each neighborhood node according to network resource information and computing resource information of each neighborhood node;

[0186] Obtain the time information vector of the computing power scheduling system;

[0187] The probability distribution of forwarding the pending computing task to each neighboring node is obtained according to the time information vector and the node feature vector of each neighboring node.

[0188] In an exemplary embodiment, the first computing power resource information also includes communication overhead information of each neighboring node;

[0189] The process of obtaining the node feature vector of each neighborhood node according to the network resource information and the computing resource information of each neighborhood node includes:

[0190] The node feature vector of each neighborhood node is obtained according to the network resource information, the computing resource information and the communication overhead information of each neighborhood node.

[0191] In an exemplary embodiment, the process of obtaining the probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the time information vector and the node feature vector of each neighboring node includes:

[0192] The time information vector and the node feature vector of each neighborhood node are input into a preset diffusion model to obtain the probability distribution of forwarding the to-be-processed computing task to each neighborhood node.

[0193] In an exemplary embodiment, the computing power routing system further includes:

[0194] A parameter receiving module is used to receive model parameters sent by an upstream node;

[0195] The model acquisition module is used to obtain a preset diffusion model based on model parameters.

[0196] In an exemplary embodiment, the computing power routing system further includes a model creation module for:

[0197] Create an initial diffusion model;

[0198] Output the current probability distribution of the execution action according to the current computing resource information through the initial diffusion model and store it;

[0199] Determine whether there is a node failure or communication failure;

[0200] If so, when a response signal sent by the faulty node is received, the current probability distribution of the execution action is corrected, and the operation of determining whether there is a node failure or a communication failure is performed;

[0201] If not, sample the execution action according to the current probability distribution of the execution action, and return the reward value and new computing resource information;

[0202] Extract time information data from a preset storage area, train an initial diffusion model according to the time information data, the immediate reward value and the long-term reward value, until the initial diffusion model converges to obtain a preset diffusion model, and obtain model parameters of the preset diffusion model.

[0203] In an exemplary embodiment, the process of acquiring the probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the task characteristic information and the first computing power resource information includes:

[0204] Determine a candidate forwarding node corresponding to the task characteristic information in each neighboring node;

[0205] Obtain the probability distribution of forwarding the pending computing task to each candidate forwarding node.

[0206] In an exemplary embodiment, the process of sampling in the probability distribution to obtain the target forwarding node includes:

[0207] Sampling is performed in the probability distribution to obtain the current candidate node;

[0208] Determine the network topology status between itself and the current candidate node;

[0209] When the network topology state is an interconnected state, the current candidate node is determined as the target forwarding node.

[0210] In an exemplary embodiment, the process of sampling in the probability distribution to obtain the current candidate node includes:

[0211] Determine a first sampling range corresponding to the probability distribution, and generate a first random number within the first sampling range;

[0212] Obtain the probability interval corresponding to each candidate forwarding node according to the probability distribution;

[0213] The candidate forwarding node corresponding to the probability interval in which the first random number is located is determined as the current node to be selected.

[0214] In an exemplary embodiment, the computing power routing system further includes:

[0215] A storage module is used to store the candidate probability distribution in a preset storage space after sampling the current candidate node in the probability distribution; the candidate probability distribution is the probability distribution of all candidate forwarding nodes except the current candidate node;

[0216] After determining the network topology state between itself and the current candidate node, the process of sampling in the probability distribution to obtain the target forwarding node also includes:

[0217] When the network topology state is a non-interconnected state, obtain alternative probability distribution;

[0218] After sampling the candidate probability distribution to obtain the current candidate node, an operation of determining the network topology state between itself and the current candidate node is performed.

[0219] In an exemplary embodiment, the process of sampling in the candidate probability distribution to obtain the current candidate node includes:

[0220] Determine a second sampling range corresponding to the alternative probability distribution, and generate a second random number within the second sampling range;

[0221] According to the alternative probability distribution, the probability interval corresponding to each candidate forwarding node is obtained;

[0222] The candidate forwarding node corresponding to the probability interval in which the second random number is located is determined as the current node to be selected.

[0223] In an exemplary embodiment, the acquisition module 11 is further used to obtain the topological connection relationship of the graph data corresponding to the computing power scheduling system;

[0224] Determine its own neighboring nodes based on the topological connection relationship of the graph data.

[0225] In an exemplary embodiment, the acquisition module 11 is further used to acquire second computing power resource information in the computing node where the module is located; the second computing power resource information includes computing resource information of a computing device in the computing node where the module is located;

[0226] The process of determining whether the computing node where the computing node is located is an execution node of the computing task to be processed according to the task characteristic information includes:

[0227] Determine whether the node is the execution node of the computing task to be processed based on the task characteristic information and the computing resource information of the computing device in the computing node where the node is located.

[0228] In an exemplary embodiment, the process of determining whether the computing node is an execution node of the computing task to be processed according to the task characteristic information and the computing resource information of the computing device in the computing node where the computing node is located includes:

[0229] Determine whether the computing resource information and task characteristic information of the computing device in the computing node where the computing device is located match;

[0230] If so, it determines that it is the execution node of the computing task to be processed;

[0231] If not, it is determined that it is not the execution node of the computing task to be processed.

[0232] Third, please refer to Fig.10 The present invention also provides a computing power routing device, including:

[0233] The receiving module 21 is used to obtain the first computing power resource information and the task characteristic information of the computing task to be processed; the first computing power resource information includes the network resource information in the computing power scheduling system and the computing resource information of each neighboring node, and the neighboring node is a computing node in the computing power scheduling system that is interconnected with the computing node where the neighboring node is located;

[0234] The processing module 22 is used to obtain the probability distribution of forwarding the computing task to be processed to each neighboring node according to the task characteristic information and the first computing power resource information, and obtain the target forwarding node by sampling in the probability distribution;

[0235] The sending module 23 is used to send task characteristic information to the target forwarding node.

[0236] It can be seen that in this embodiment, when computing power routing is performed on the computing tasks to be processed, the probability distribution of forwarding the computing tasks to be processed to each neighboring node is calculated based on the task characteristic information of the computing tasks to be processed, the network resource information in the computing power scheduling system, and the computing resource information of each neighboring node, so as to adapt to the dynamic environmental changes in the computing power scheduling system, facilitate improving the resource utilization of the computing power scheduling system, optimize the performance of the computing power scheduling system, and sample from the probability distribution to obtain the target forwarding node, so that any neighboring node may be used as the target forwarding node, so that the forwarding path of the computing tasks to be processed is dynamically changed, which reduces the risk of the computing nodes executing the computing tasks to be processed being attacked and improves the security of the computing power scheduling system.

[0237] In an exemplary embodiment, the receiving module 21 is further used to receive model parameters and time information data;

[0238] The processing module 22 includes:

[0239] Collector 221, used to obtain the second computing power resource information in the computing node where the collector is located;

[0240] The discriminator 222 is used to determine whether it is an execution node of the computing task to be processed according to the task characteristic information and the computing resource information of the computing device in the computing node where it is located, and if so, generate a first trigger signal, and if not, generate a second trigger signal;

[0241] The preprocessing unit 223, when receiving the second trigger signal, obtains the node feature vector of each neighboring node according to the network resource information and the computing resource information of each neighboring node, and obtains the time information vector according to the time information data;

[0242] A calculation unit 224, configured to obtain a probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the time information vector, the node feature vector of each neighboring node, and the model parameters;

[0243] A sampling unit 225 is used to obtain a target forwarding node by sampling in the probability distribution;

[0244] The sending module 23 is specifically used to forward the model parameters and task characteristic information to the target forwarding node;

[0245] The computing device is used to execute the computing task to be processed when receiving the first trigger signal.

[0246] In an exemplary embodiment, the sampling unit 225 is specifically configured to sample in the probability distribution to obtain the current candidate node;

[0247] The processing module 22 further includes:

[0248] The backup unit 226 is used to store the candidate probability distribution; the candidate probability distribution is the probability distribution of all candidate forwarding nodes except the current candidate node;

[0249] The discriminator 222 is further used to determine whether the network topology of the computing power scheduling system has changed or failed according to the network resource information, and if so, generate a third trigger signal;

[0250] The sampling unit 225 is further configured to read the candidate probability distribution from the backup unit 226 when receiving the third trigger signal, perform sampling in the candidate probability distribution to obtain the current candidate node, and trigger the discriminator 222 .

[0251] In this embodiment, the receiving module 21 is used to receive the model parameters, the first computing power resource information, the task characteristic information of the computing task to be processed, and the time information data sent by the previous node. The discriminator 222 is used to determine whether there is a fault in the network condition and whether the topology has changed. The collector 221 collects the computing resources and cost information in the computing node by communicating with the computing components in the computing node. The preprocessing unit 223 performs comprehensive encoding processing on various information, including time vectors and node feature vectors. The computing unit 224, which can also be called an inference unit or a generation unit, is used to calculate and generate the probability distribution of various decisions. The backup unit 226 is used to back up the probability distribution of the decision of the computing unit 224. The sampling unit 225 is used to make sampling decisions based on the probability distribution. The sending module 23: sends the relevant information to the next computing node.

[0252] In this embodiment, when the network topology changes or fails, it will be judged as a quick recovery mode. After processing the received network information, the discriminator 222 directly communicates with the sampling unit 225. The sampling unit 225 directly loads the probability distribution backup of the previous decision. After removing the failed node, it directly samples to obtain the decision information after quick recovery. This architectural behavior serves as a quick recovery plan after the emergency response is initiated.

[0253] In a fourth aspect, the present invention further provides a computing power scheduling system, comprising a plurality of computing nodes, each computing node comprising a computing device and a computing power routing device as described in any one of the above embodiments.

[0254] For an introduction to a computing power scheduling system provided in this embodiment, please refer to the above embodiment, and the present invention will not be repeated here.

[0255] The computing power scheduling system provided by the present invention has the same beneficial effects as the above-mentioned computing power routing method.

[0256] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the computing power routing method described in any of the above embodiments.

[0257] For an introduction to a computer program product provided in this embodiment, please refer to the above embodiment, and the present invention will not be described in detail here.

[0258] A computer program product provided by the present invention has the same beneficial effects as the above-mentioned computing power routing method.

[0259] For the sixth aspect, please refer to Fig.11The present invention also provides a computer-readable storage medium 30, on which a computer program 31 is stored. When the computer program 31 is executed by a processor, the steps of any of the computing power routing methods described above are implemented.

[0260] The computer-readable storage medium 30 may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0261] For an introduction to a computer-readable storage medium provided in this embodiment, please refer to the above embodiment, and the present invention will not be described in detail here.

[0262] A computer-readable storage medium provided by the present invention has the same beneficial effects as the above-mentioned computing power routing method.

[0263] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0264] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A computing power routing method, characterized in that: A routing device applied to each computing node in a computing power scheduling system, wherein the computing node also includes a computing device, and the computing power routing method includes: Obtaining first computing power resource information and task characteristic information of the computing task to be processed; the first computing power resource information includes network resource information in the computing power scheduling system and computing resource information of each neighboring node, and the neighboring node is a computing node in the computing power scheduling system that is interconnected with the computing node where the computing node is located; Obtaining a probability distribution of forwarding the pending computing task to each neighboring node according to the task characteristic information and the first computing resource information; Sampling in the probability distribution to obtain a target forwarding node, and forwarding the task characteristic information to the target forwarding node; The process of acquiring the probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the task characteristic information and the first computing power resource information includes: Determine whether the computing node where the computing node is located is an execution node of the computing task to be processed according to the task characteristic information; If so, trigger the computing device of the computing node where the computing device is located to execute the computing task to be processed; If not, calculate the probability distribution of forwarding the pending computing task to each neighboring node according to the first computing power resource information; The process of calculating the probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the first computing power resource information includes: Obtaining a node feature vector of each of the neighborhood nodes according to the network resource information and the computing resource information of each of the neighborhood nodes; Obtaining a time information vector of the computing power scheduling system; Obtaining a probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the time information vector and a node feature vector of each of the neighboring nodes; The process of sampling in the probability distribution to obtain the target forwarding node includes: Sampling in the probability distribution to obtain the current candidate node; Determine the network topology status between itself and the current candidate node; When the network topology state is an interconnected state, the current candidate node is determined as a target forwarding node.

2. The computing power routing method according to claim 1, characterized in that: The first computing power resource information also includes communication overhead information of each of the neighboring nodes; The process of obtaining the node feature vector of each of the neighboring nodes according to the network resource information and the computing resource information of each of the neighboring nodes includes: A node feature vector of each of the neighborhood nodes is obtained according to the network resource information, the computing resource information of each of the neighborhood nodes, and the communication overhead information.

3. The computing power routing method according to claim 2, characterized in that: The process of obtaining the probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the time information vector and the node feature vector of each of the neighboring nodes includes: The time information vector and the node feature vector of each of the neighborhood nodes are input into a preset diffusion model to obtain the probability distribution of forwarding the to-be-processed computing task to each neighborhood node.

4. The computing power routing method according to claim 3, characterized in that: Before inputting the time information vector and the node feature vector of each of the neighboring nodes into a preset diffusion model to obtain a probability distribution of forwarding the to-be-processed computing task to each of the neighboring nodes, the computing power routing method further includes: Receive model parameters sent by upstream nodes; The preset diffusion model is obtained based on the model parameters.

5. The computing power routing method according to claim 4, characterized in that: Before receiving the model parameters sent by the upstream node, the computing power routing method further includes: Create an initial diffusion model; Outputting and storing the current probability distribution of the execution action according to the current computing power resource information through the initial diffusion model; Determine whether there is a node failure or communication failure; If yes, when a response signal sent by the faulty node is received, the current probability distribution of the execution action is corrected, and an operation of determining whether there is a node failure or a communication failure is performed; If not, sample the execution action according to the current probability distribution of the execution action, and return the reward value and new computing resource information; Extract time information data from a preset storage area, train the initial diffusion model according to the time information data, the immediate reward value and the long-term reward value, until the initial diffusion model converges to obtain a preset diffusion model, and obtain model parameters of the preset diffusion model.

6. The computing power routing method according to claim 1, characterized in that: The process of acquiring the probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the task characteristic information and the first computing power resource information includes: Determine a candidate forwarding node corresponding to the task characteristic information in each of the neighboring nodes; Obtain the probability distribution of forwarding the to-be-processed computing task to each of the candidate forwarding nodes.

7. The computing power routing method according to claim 6, characterized in that: The process of sampling in the probability distribution to obtain the current candidate node includes: Determine a first sampling range corresponding to the probability distribution, and generate a first random number within the first sampling range; Obtaining probability intervals corresponding to each of the candidate forwarding nodes according to the probability distribution; The candidate forwarding node corresponding to the probability interval in which the first random number is located is determined as the current node to be selected.

8. The computing power routing method according to claim 6, characterized in that: After sampling the probability distribution to obtain the current candidate node, the computing power routing method further includes: Storing the candidate probability distribution in a preset storage space; the candidate probability distribution is the probability distribution of all the candidate forwarding nodes except the current candidate node; After determining the network topology state between itself and the current candidate node, the process of sampling in the probability distribution to obtain the target forwarding node also includes: When the network topology state is a non-interconnected state, obtaining the alternative probability distribution; After sampling the candidate probability distribution to obtain the current candidate node, an operation of determining the network topology state between itself and the current candidate node is performed.

9. The computing power routing method according to claim 8, characterized in that: The process of sampling in the candidate probability distribution to obtain the current candidate node includes: Determine a second sampling range corresponding to the alternative probability distribution, and generate a second random number within the second sampling range; Obtaining a probability interval corresponding to each of the candidate forwarding nodes according to the candidate probability distribution; The candidate forwarding node corresponding to the probability interval in which the second random number is located is determined as the current node to be selected.

10. The computing power routing method according to claim 1, characterized in that: Before obtaining the probability distribution of forwarding the pending computing task to each neighboring node according to the task characteristic information and the first computing power resource information, the computing power routing method further includes: Obtaining the topological connection relationship of the graph data corresponding to the computing power scheduling system; Determine its own neighboring nodes according to the topological connection relationship of the graph data.

11. The computing power routing method according to any one of claims 1 to 10, characterized in that: Before determining whether the computing node where the computing node is located is an execution node of the computing task to be processed according to the task characteristic information, the computing power routing method further includes: Obtain second computing power resource information in the computing node where the computing node is located; the second computing power resource information includes computing resource information of a computing device in the computing node where the computing node is located; The process of determining whether the computing node where the computing node is located is an execution node of the computing task to be processed according to the task characteristic information includes: Determine whether the node itself is the execution node of the computing task to be processed according to the task characteristic information and the computing resource information of the computing device in the computing node where the node itself is located.

12. The computing power routing method according to claim 11, characterized in that: The process of determining whether the computing node is an execution node of the computing task to be processed according to the task characteristic information and the computing resource information of the computing device in the computing node where the computing node is located includes: Determine whether the computing resource information of the computing device in the computing node where the computing device is located matches the task characteristic information; If so, determine that it is the execution node of the computing task to be processed; If not, it is determined that it is not the execution node of the computing task to be processed.

13. A computing power routing device, characterized in that: include: A receiving module, used to obtain first computing power resource information and task characteristic information of the computing task to be processed; The first computing power resource information includes network resource information in the computing power scheduling system and computing resource information of each neighboring node, wherein the neighboring node is a computing node in the computing power scheduling system that is interconnected with the computing node where the neighboring node is located; A processing module, configured to obtain a probability distribution of forwarding the computing task to be processed to each neighboring node according to the task characteristic information and the first computing resource information, and obtain a target forwarding node by sampling the probability distribution; A sending module, used for sending the task characteristic information to the target forwarding node; The process of acquiring the probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the task characteristic information and the first computing power resource information includes: Determine whether the computing node where the computing node is located is an execution node of the computing task to be processed according to the task characteristic information; If so, trigger the computing device of the computing node where the computing device is located to execute the computing task to be processed; If not, calculate the probability distribution of forwarding the pending computing task to each neighboring node according to the first computing power resource information; The process of calculating the probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the first computing power resource information includes: Obtaining a node feature vector of each of the neighborhood nodes according to the network resource information and the computing resource information of each of the neighborhood nodes; Obtaining a time information vector of the computing power scheduling system; Obtaining a probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the time information vector and a node feature vector of each of the neighboring nodes; The process of sampling in the probability distribution to obtain the target forwarding node includes: Sampling in the probability distribution to obtain the current candidate node; Determine the network topology status between itself and the current candidate node; When the network topology state is an interconnected state, the current candidate node is determined as a target forwarding node.

14. The computing power routing device according to claim 13, characterized in that: The receiving module is also used to receive model parameters and time information data; The processing modules include: The collector is used to obtain the second computing power resource information in the computing node where it is located; A discriminator, configured to determine whether it is an execution node of the computing task to be processed according to the task characteristic information and the computing resource information of the computing device in the computing node where it is located, and if so, generate a first trigger signal, and if not, generate a second trigger signal; The preprocessing unit, when receiving the second trigger signal, obtains a node feature vector of each of the neighboring nodes according to the network resource information and the computing resource information of each of the neighboring nodes, and obtains a time information vector according to the time information data; A computing unit, configured to obtain a probability distribution of forwarding the to-be-processed computing task to each neighboring node according to the time information vector, the node feature vector of each of the neighboring nodes, and the model parameters; A sampling unit, used for sampling in the probability distribution to obtain a target forwarding node; The sending module is specifically used to forward the model parameters and the task characteristic information to the target forwarding node; The computing device is used to execute the pending computing task upon receiving the first trigger signal.

15. The computing power routing device according to claim 14, characterized in that: A sampling unit, specifically used to sample in the probability distribution to obtain a current candidate node; The processing module also includes: A backup unit, used to store candidate probability distribution; the candidate probability distribution is the probability distribution of all candidate forwarding nodes except the current candidate node; The discriminator is further used to determine whether the network topology of the computing power scheduling system has changed or failed according to the network resource information, and if so, generate a third trigger signal; The sampling unit is further configured to, upon receiving the third trigger signal, read the candidate probability distribution from the backup unit, perform sampling in the candidate probability distribution to obtain a current node to be selected, and trigger the discriminator.

16. A computing power scheduling system, characterized in that: It comprises a plurality of computing nodes, each of which comprises a computing device and a computing power routing device as described in any one of claims 13-15.

17. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the computing power routing method as described in any one of claims 1-12 are implemented.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the computing power routing method according to any one of claims 1 to 12 are implemented.