Computing task allocation method and computing power network
By allocating computing tasks in the computing network from low to high according to the unit price according to the computing performance of the computing nodes, network performance and user delay requirements, the problems of wasted computing power and cost increase in the traditional method are solved, and the computing efficiency is improved. Power node utilization and user cost-effectiveness.
Patent Information
- Application Number
- CN202410242102.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-04
- Publication Date
- 2024-10-18
AI Technical Summary
The selection and scheduling methods of computing power nodes in traditional computing power networks lead to a waste of computing power and an increase in computing power costs, failing to effectively utilize non-high-quality computing power nodes and increasing user computing costs.
Based on the computing performance, network performance and user delay requirements of each computing node in the computing network, the pre-computing tasks of each computing node are calculated in order from low to high unit price, and the user's total amount is allocated based on the pre-computing tasks. Computing tasks are distributed through the computing network transaction module, management module and orchestration module.
It improves the utilization rate of non-high-quality computing power nodes, reduces computing power waste, and reduces users' computing power costs. By comprehensively considering network performance, computing performance, and unit price, more reasonable task matching is achieved.
Smart Images

Figure CN118796437A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computing power network technology, and specifically to a computing task allocation method and a computing power network. Background Art
[0002] In the development of IT technology in recent years, AI technology is undoubtedly the most eye-catching field. New technologies such as AI image recognition, AIGC (AI-Generated Content), and machine vision are changing all aspects of contemporary life. With the advent of super-large AI models such as GPT4.0, people realize that the demand for computing power for scientific development is endless. However, the huge demand for computing power also brings tremendous pressure to materials, environment, and energy. According to statistics, each query of ChatGPT consumes about 1,200 watt-hours of electricity, which is equivalent to the power consumption of an ordinary refrigerator or dishwasher for one month. Finding a low-energy computing model is urgent.
[0003] Computing power network is a technology that uses high-speed networks to establish high-speed computing channels between various computing power nodes and realize collaborative computing. It uses high-speed networks to effectively organize ordinary computing power together, and through intelligent node selection and scheduling, it effectively utilizes idle resources to complete huge computing tasks, thereby meeting large-scale computing needs in a low-energy manner.
[0004] Currently, there are two common methods for selecting and scheduling computing nodes in the computing network:
[0005] First, choose computing power based on network metrics
[0006] That is, the network quality between computing nodes is measured, and computing nodes with better network performance are given priority for calculation;
[0007] Second, choose computing power based on network metrics and computing power metrics
[0008] That is, the network performance and computing performance of the computing power nodes are evaluated simultaneously, and nodes with excellent network performance and computing performance are given priority for calculation.
[0009] Among them, the first method does not take into account the computing performance of computing nodes. Although some computing nodes have excellent network performance, they may not have the computing conditions required to complete the computing tasks, which ultimately leads to the failure of the node's calculation and waste of computing power. Although the second method solves the above problems, due to the scarcity of nodes with excellent network performance and computing performance and precious resources, this method will cause a large number of computing demands to compete for a small number of high-quality nodes, while other relatively low-performance nodes will not be able to obtain computing tasks, resulting in a waste of computing power and an increase in computing power costs. Summary of the invention
[0010] The embodiments of the present application provide a computing task allocation method and a computing power network to solve the technical problems of waste of computing power and increased computing power costs caused by traditional methods.
[0011] In a first aspect, an embodiment of the present application provides a computing task allocation method, comprising:
[0012] According to the computing performance, network performance and user latency requirements of each computing node in the computing network, the pre-computation tasks of each computing node are calculated in the order of the unit price of each computing node from low to high;
[0013] The total computing task of the user is allocated according to the pre-computation tasks of each computing power node.
[0014] In one embodiment, the pre-computation tasks of each computing node are calculated in descending order of the unit price of each computing node according to the computing performance, network performance and latency requirements of each computing node in the computing network, including:
[0015] Obtaining a target computing power node in the computing power network; the target computing power node is a computing power node with the lowest unit price;
[0016] Obtaining a pre-calculated file size of the target computing power node according to the remaining available computing power, the remaining available bandwidth, and the maximum latency of the user;
[0017] The absolute value of the difference between the total calculated file size of the user and the pre-calculated file size is determined as the updated value of the total calculated file size of the user, and after eliminating the target computing node from the computing node set of the computing power network, return to the step of obtaining the target computing node in the computing power network until the updated value is less than or equal to zero, or the target computing node does not exist in the computing node set, and the pre-calculated file size of each computing node in the computing power network is obtained.
[0018] In one embodiment, allocating the total computing task of the user according to the pre-computation tasks of each computing power node includes:
[0019] If the update value is less than or equal to zero, the total calculated file size of the user is allocated according to the pre-calculated file size of each computing power node.
[0020] In one embodiment, allocating the total computing task of the user according to the pre-computation tasks of each computing power node includes:
[0021] If the target computing node does not exist in the computing node set and the update value is greater than zero, after replacing the computing network, return to the step of calculating the pre-computation task of each computing node in the computing network in order of the unit price of each computing node from low to high according to the computing performance, network performance of each computing node and the user's latency requirements, until the total computing task of the user is allocated according to the pre-computation tasks of each computing node in the replaced computing network.
[0022] In one embodiment, allocating the total computing task of the user according to the pre-computation tasks of each computing power node includes:
[0023] If the target computing power node does not exist in the computing power node set and the update value is greater than zero, the total computing task of the user is divided into multiple partial computing tasks;
[0024] The multiple partial computing tasks are distributed to multiple computing power networks, and for each computing power network, the step of calculating the pre-computation tasks of each computing power node in the computing power network in order of the unit price of each computing power node from low to high is returned according to the computing performance, network performance and user latency requirements of each computing power node in the computing power network, until in each computing power network, the corresponding partial computing tasks are distributed according to the pre-computation tasks of each computing power node.
[0025] In one embodiment, the unit price of any computing power node is obtained based on the following steps:
[0026] Calculate the product of the price per unit of computing power and the remaining available computing power on any computing power node to obtain the computing power price of any computing power node;
[0027] Calculate the product of the price per unit bandwidth and the remaining available bandwidth on any computing power node to obtain the bandwidth price of any computing power node;
[0028] The sum of the computing power price and the bandwidth price of any computing power node is calculated to obtain the unit price of any computing power node.
[0029] In one embodiment, before allocating the total computing task of the user according to the pre-computation tasks of each computing power node, the method includes:
[0030] Calculate the product of the unit price of any computing power node and the size of the pre-calculated file to obtain the computing cost of any computing power node;
[0031] The computing fee is paid to any computing power node according to the computing cost.
[0032] In a second aspect, an embodiment of the present application provides a computing power network for implementing the computing task allocation method described in the first aspect, including:
[0033] The computing network transaction module is used to obtain the user's latency requirements and total computing tasks;
[0034] The computing network management module is used to obtain the computing performance and network performance of each computing node;
[0035] The computing network arrangement module is used to obtain each computing power node in order of unit price from low to high, and allocate the total computing task of the user according to the pre-computation tasks of each computing power node.
[0036] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory storing a computer program, wherein the processor implements the steps of the computing task allocation method described in the first aspect when executing the program.
[0037] In a fourth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the computing task allocation method described in the first aspect.
[0038] The computing task allocation method and computing power network provided in the present application calculate the pre-computation tasks of each computing power node in the computing power network according to the computing performance, network performance and user's latency requirements, and then allocate the total computing tasks of the user according to the pre-computation tasks of each computing power node. Since the network performance, computing performance and unit price of each computing power node are comprehensively considered, the user's computing task allocation is optimized, that is, on the basis of meeting the network performance and computing performance, the computing power node is selected based on the mechanism of the trading market, and the task allocation of each computing power node is carried out in combination with the user's latency requirements and computing requirements. It can balance the network performance, computing performance and unit price of each computing power node, as well as the user's latency requirements and computing requirements, so that the user's computing tasks can be more reasonably matched with the computing power nodes, thereby greatly improving the computing power nodes, especially the utilization rate of relatively non-high-quality computing power nodes, reducing computing power waste, and reducing the user's computing power cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0040] Figure 1 This is one of the flowcharts of the computing task allocation method provided in the embodiment of the present application;
[0041] Figure 2It is a computing task flow diagram in the computing task allocation method provided in the embodiment of the present application;
[0042] Figure 3 This is the second flow chart of the computing task allocation method provided in the embodiment of the present application;
[0043] Figure 4 This is the third flow chart of the computing task allocation method provided in the embodiment of the present application;
[0044] Figure 5 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0046] Figure 1 This is one of the flowcharts of the computing task allocation method provided in the embodiment of the present application;
[0047] Figure 2 It is a computing task flow diagram in the computing task allocation method provided in an embodiment of the present application.
[0048] Reference Figure 1 , the present application embodiment provides a computing task allocation method, which may include:
[0049] 101. According to the computing performance, network performance and latency requirements of each computing node in the computing network, calculate the pre-computation tasks of each computing node in the order of the unit price of each computing node from low to high;
[0050] 102. Allocate the user's total computing task according to the pre-computation tasks of each computing power node.
[0051] In a computing network, various computing nodes have different computing performances, and the network performance of each computing node is also different. Under a certain transaction mechanism, the unit price of each computing node is related to the computing performance and network performance of the node. In a computing request for a user, how to allocate computing tasks so that the computing cost of the user is the lowest while meeting the total computing task and latency requirements of the user's computing task is a problem that needs to be considered comprehensively.
[0052] Reference Figure 2In a computing network, there are N computing nodes that provide computing services, forming a computing node set C = {C1, C2, ..., C N}, these computing nodes can be high-performance servers, ordinary computers, etc. Each computing node has two parameters, namely X n and B n , where X n Represents any computing power node C in C n The remaining available computing power, that is, the file size calculated per second, is used to measure the computing performance of the node. n Represents computing power node C n The remaining available bandwidth, i.e. the file size transferred per second, is used to measure the network performance of the node. In addition, if the user's computing requirement is to use the total computing file size L as the total computing task, then corresponding to N computing nodes, the total computing task can be decomposed into pre-computation tasks of multiple computing nodes, corresponding to computing nodes C n , the file size is L n , where n∈[1,N].
[0053] Defining Tlocal n Represents computing power node C n The time to process the computing task is:
[0054] Tlocal n =L n / X n ; (1-1)
[0055] Define Ttran n represents the time for computing node Cn to transmit computing tasks, then:
[0056] Ttran n =L n / B n ; (1-2)
[0057] Define Ttotal n represents the time required for the computing node Cn to complete the computing task, then:
[0058] Ttotal n =Tlocal n +2*Ttran n ; (1-3)
[0059] Reference Figure 2 , since the user sends the computing task to the computing node, and the computing node returns the computing result to the user, therefore, Ttran n Need to multiply by 2;
[0060] Define Ttotal to represent the time required to complete the total computing task, then Ttotal = max{Ttotal n};
[0061] Definition S n Represents computing power node C n The unit price of
[0062] Define Stotal as the total computing power cost, then
[0063] Define T max Represents the maximum latency of the user, which is used to measure the user's latency requirement. In order to minimize the user's total computing power cost, the optimization problem is:
[0064]
[0065]
[0066] Ttotal≤T max ;
[0067] When T max When the value is fixed, the computing power node with the smallest unit price is selected first, and a certain computing task is assigned to it in the total computing task of the user, so that it max Similarly, select the computing power node with the second smallest unit price, assign it a certain number of computing tasks from the remaining computing tasks, and make it max The full computing capacity is used within the time limit. This cycle continues until all the computing tasks of the users are assigned and the max Complete the total calculation task within the time limit.
[0068] It should be noted that if T max is infinite, that is, the user's computing task has no latency requirement. There is a more intuitive solution to the above optimization problem: maximize the computing power of the computing nodes with low unit prices. That is, find the link with the lowest unit price from the user to the computing node in turn until the total computing task of the user is assigned, and give full play to the computing power of each computing node so that it can reach the maximum value in T max Complete the user's total computing task within the time limit.
[0069] According to the above settings, in this embodiment, the pre-computation tasks of each computing node can be calculated according to the computing performance, network performance and latency requirements of each computing node in the computing network, and the unit price of each computing node can be ordered from low to high, and the total computing tasks of the user can be allocated according to the pre-computation tasks of each computing node to meet user needs, maximize the computing power of each computing node, and minimize the user's computing power cost.
[0070] The computing task allocation method provided in this embodiment calculates the pre-computation tasks of each computing node in the computing network according to the computing performance, network performance and user's latency requirements, and then allocates the total computing tasks of the user according to the pre-computation tasks of each computing node. Since the network performance, computing performance and unit price of each computing node are comprehensively considered, the user's computing task allocation is optimized, that is, on the basis of meeting the network performance and computing performance, the computing node is selected based on the mechanism of the trading market, and the task allocation of each computing node is carried out in combination with the user's latency requirements and computing requirements. It can balance the network performance, computing performance and unit price of each computing node, as well as the user's latency requirements and computing requirements, so that the user's computing task can be more reasonably matched with the computing node, thereby greatly improving the computing node, especially the utilization rate of relatively non-high-quality computing nodes, reducing computing power waste, and reducing the user's computing power cost.
[0071] Furthermore, this embodiment provides incentives to computing power providers and computing power demanders through a trading market, thereby making both parties more proactive and enthusiastic.
[0072] Furthermore, this embodiment comprehensively evaluates multiple dimensions such as network performance, computing performance, and algorithm complexity, which is more in line with the actual application scenarios of the operator's computing power network.
[0073] Figure 3 This is a flowchart of the second method for allocating computing tasks provided in the embodiment of the present application; Figure 3 In one embodiment, according to the computing performance of each computing node in the computing network, the network performance and the user's latency requirements, the pre-computation tasks of each computing node are calculated in the order of the unit price of each computing node from low to high, which may include:
[0074] 301. Obtain the target computing power node in the computing power network;
[0075] The target computing power node is the computing power node with the lowest unit price;
[0076] 302. Obtain the pre-calculated file size of the target computing power node according to the remaining available computing power, the remaining available bandwidth, and the maximum latency of the user;
[0077] 303. Determine the absolute value of the difference between the total calculated file size of the user and the pre-calculated file size as the updated value of the total calculated file size of the user, and after removing the target computing node from the computing node set of the computing network, return to step 301;
[0078] 304. If the update value is less than or equal to zero, or the target computing node does not exist in the computing node set, the pre-calculated file size of each computing node in the computing network is obtained.
[0079] In step 302, according to formulas (1-1), (1-2) and (1-3), let Ttotal n =T max ,get:
[0080] T max =L n / X n +2*L n / B n ;
[0081] Right now:
[0082] L n The target computing node and the calculation file size.
[0083] In step 303, LL n Determined as the new L, and in addition to C n The target computing node is retrieved from the computing nodes other than the target computing node, and the same steps are performed to calculate the pre-calculated file size of the new target computing node. Then, the total calculated file size is updated in the same way and the target computing node is retrieved.
[0084] In step 304, when the update value is less than or equal to zero, it means that the user's total computing task is expected to be distributed among all or part of the computing nodes in the current computing network. When the target computing node does not exist in the computing node set, it means that all computing nodes in the current computing network have participated in the calculation of the pre-calculated file size. In these two cases, there is no need to calculate the pre-calculated file size of the computing node again.
[0085] This embodiment selects computing power nodes in the computing power network according to the unit price from low to high in a loop manner, and sets reasonable loop termination conditions, so as to accurately and efficiently find the target computing power node in the computing power network and obtain the pre-calculated file size that matches its computing performance, network performance and user latency requirements.
[0086] In one embodiment, allocating the total computing task of the user according to the pre-computation tasks of each computing power node may include:
[0087] 1. If the update value is less than or equal to zero, the user's total calculated file size is allocated according to the pre-calculated file size of each computing power node;
[0088] In this case, the computing nodes in the current computing power network can complete the user's total computing task, so the user's total computing file size can be directly allocated according to the pre-calculated file size of each computing power node.
[0089] 2. If the target computing node does not exist in the computing node set and the update value is greater than zero, after replacing the computing network, return to the step of calculating the pre-computation tasks of each computing node in the computing network in the order of the unit price of each computing node from low to high according to the computing performance, network performance and latency requirements of each computing node in the computing network, until the total computing tasks of the user are allocated according to the pre-computation tasks of each computing node in the replaced computing network;
[0090] In this case, for example, T max Very small, that is, the total computing task of the user has a very high latency requirement. max The capacity of each computing node in the computing power network has been utilized within the time limit, but it still cannot meet the user's computing needs. Therefore, the current computing power network is abandoned, and other computing power networks are continuously selected to perform the same computing power node pre-calculation file size calculation as in this application until the computing power nodes in a selected computing power network can allocate the user's total computing file size, and then the user's total computing file size is allocated according to the pre-calculated file size of each computing power node.
[0091] 3. If the target computing node does not exist in the computing node set and the update value is greater than zero, the user's total computing task is divided into multiple partial computing tasks;
[0092] Multiple partial computing tasks are distributed to multiple computing power networks, and for each computing power network, the steps of calculating the pre-computation tasks of each computing power node in the computing power network in order of the unit price of each computing power node from low to high are returned according to the computing performance of each computing power node in the computing power network, the network performance and the user's latency requirements, until in each computing power network, the corresponding partial computing tasks are distributed according to the pre-computation tasks of each computing power node.
[0093] In this case, the user's total computing file can also be divided into multiple small computing files and distributed to different computing power networks respectively, and the computing power node pre-calculation file size calculation same as that of the present application is performed in each computing power network until the computing power nodes in each selected computing power network can allocate their respective small computing file sizes, and then allocate the corresponding small computing file sizes according to the pre-calculated file sizes of each computing power node in each computing power network.
[0094] This embodiment allocates the user's total computing tasks according to different situations of the current computing power network. When the current computing power network can meet the user's computing needs, the current computing power network is used to provide computing power services to the user. When the current computing power network cannot meet the user's computing needs, the computing power network is replaced or the user's total computing tasks are divided into multiple computing power networks to provide computing power services to the user, thereby ensuring that the user's computing needs are met in various situations.
[0095] Figure 4This is a flowchart of the computing task allocation method provided in the embodiment of the present application; refer to Figure 4 In one embodiment, the unit price of any computing power node can be obtained based on the following steps:
[0096] 401. Calculate the product of the price per unit of computing power and the remaining available computing power on any computing power node to obtain the computing power price of the computing power node;
[0097] 402. Calculate the product of the price per unit bandwidth and the remaining available bandwidth on the computing power node to obtain the bandwidth price of the computing power node;
[0098] 403. Calculate the sum of the computing power price and the bandwidth price of the computing power node to obtain the unit price of the computing power node.
[0099] In step 401 to step 403, the unit price of any computing power node can be calculated according to the following formula:
[0100] S n =α*X n +β*B n ;
[0101] Among them, α is the price per unit of computing power, and β is the price per unit of bandwidth. According to the principle of "scarcity makes things valuable", when the remaining available computing power of a computing power node is relatively small, the value of α is larger, and when the remaining available bandwidth of a computing power network is relatively small, the value of β is larger.
[0102] It should be noted that, in actual applications, there is no strict timing relationship between step 401 and step 402; that is, they can be executed simultaneously, or any one step can be executed first, depending on actual needs and is not limited here.
[0103] The unit price calculation method of the computing power node of this embodiment can balance the computing power price of the computing power node according to the price per unit computing power and the remaining available computing power, and balance the bandwidth price of the computing power node according to the price per unit bandwidth and the remaining available bandwidth, so as to finally obtain a reasonable unit price of the computing power node.
[0104] In one embodiment, before allocating the total computing task of the user according to the pre-computation tasks of each computing power node, the following may be included:
[0105] Calculate the product of the unit price of any computing power node and the size of the pre-calculated file to obtain the computing cost of the computing power node, and pay the computing fee to the computing power node based on the computing cost.
[0106] Furthermore, after allocating the total computing tasks of the user according to the pre-computation tasks of each computing power node, each computing power node can be controlled to start working and maxComplete the user's total computing task within the time limit.
[0107] This embodiment pays the computing fee to the computing power node before allocating the user's total computing task, which can provide incentives for the computing power node and improve the initiative and enthusiasm of the computing power node.
[0108] The present application embodiment provides a computing power network for implementing the aforementioned computing task allocation method, which may include:
[0109] The computing network transaction module is used to obtain the user's latency requirements and total computing tasks;
[0110] The computing network management module is used to obtain the computing performance and network performance of each computing node;
[0111] The computing network arrangement module is used to obtain each computing power node in order of unit price from low to high, and allocate the total computing task of the user according to the pre-computation tasks of each computing power node.
[0112] Specifically, the computing network transaction module can sense the computing power needs of different users and provide quotations for computing power nodes. Users can choose service content and complete computing network service transactions; the computing network management module relies on computing power probes and the operator's network management platform to obtain the available computing power resources and available bandwidth resources of each computing power node in real time; the computing network orchestration module can provide personalized computing network resource configuration strategies for different user needs and complete computing network services.
[0113] Furthermore, the computing network transaction module can also be used to pay computing fees to computing power nodes.
[0114] The computing power network provided in this embodiment can comprehensively consider the network performance, computing performance and unit price of each computing power node, and optimize the user's computing task allocation. That is, on the basis of meeting the network performance and computing performance, it selects computing power nodes based on the mechanism of the trading market, and allocates tasks to each computing power node in combination with the user's latency requirements and computing requirements. It can balance multiple factors such as the network performance, computing performance and unit price of each computing power node, as well as the user's latency requirements and computing requirements, so that the user's computing task can be more reasonably matched with the computing power node, thereby greatly improving the computing power nodes, especially the utilization rate of relatively non-high-quality computing power nodes, reducing computing power waste, and reducing user computing power costs.
[0115] Furthermore, this embodiment provides incentives to computing power providers and computing power demanders through a trading market, thereby making both parties more proactive and enthusiastic.
[0116] Furthermore, this embodiment comprehensively evaluates multiple dimensions such as network performance, computing performance, and algorithm complexity, which is more in line with the actual application scenarios of the operator's computing power network.
[0117] Figure 5 An example of a structural diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call a computer program in the memory 530 to execute the steps of the computing task allocation method, for example including:
[0118] According to the computing performance, network performance and user latency requirements of each computing node in the computing network, the pre-computation tasks of each computing node are calculated in the order of the unit price of each computing node from low to high;
[0119] The total computing task of the user is allocated according to the pre-computation tasks of each computing power node.
[0120] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as 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.
[0121] On the other hand, an embodiment of the present application further provides a computer program product, the computer program product including a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can perform the steps of the computing task allocation method provided in the above embodiments, for example, including:
[0122] According to the computing performance, network performance and user latency requirements of each computing node in the computing network, the pre-computation tasks of each computing node are calculated in the order of the unit price of each computing node from low to high;
[0123] The total computing task of the user is allocated according to the pre-computation tasks of each computing power node.
[0124] On the other hand, an embodiment of the present application further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, wherein the computer program is used to enable the processor to execute the steps of the methods provided in the above embodiments, for example, including:
[0125] According to the computing performance, network performance and user latency requirements of each computing node in the computing network, the pre-computation tasks of each computing node are calculated in the order of the unit price of each computing node from low to high;
[0126] The total computing task of the user is allocated according to the pre-computation tasks of each computing power node.
[0127] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.
[0128] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0129] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A computing task allocation method, characterized in that: include: According to the computing performance, network performance and user latency requirements of each computing node in the computing network, the pre-computation tasks of each computing node are calculated in the order of the unit price of each computing node from low to high; The total computing task of the user is allocated according to the pre-computation tasks of each computing power node.
2. The computing task allocation method according to claim 1, characterized in that: According to the computing performance, network performance and user latency requirements of each computing node in the computing network, the pre-computation tasks of each computing node are calculated in descending order of the unit price of each computing node, including: Obtaining a target computing power node in the computing power network; the target computing power node is a computing power node with the lowest unit price; Obtaining a pre-calculated file size of the target computing power node according to the remaining available computing power, the remaining available bandwidth, and the maximum latency of the user; The absolute value of the difference between the total calculated file size of the user and the pre-calculated file size is determined as the updated value of the total calculated file size of the user, and after eliminating the target computing node from the computing node set of the computing power network, return to the step of obtaining the target computing node in the computing power network until the updated value is less than or equal to zero, or the target computing node does not exist in the computing node set, and the pre-calculated file size of each computing node in the computing power network is obtained.
3. The computing task allocation method according to claim 2, characterized in that: The allocating the total computing task of the user according to the pre-computation tasks of each computing power node includes: If the update value is less than or equal to zero, the total calculated file size of the user is allocated according to the pre-calculated file size of each computing power node.
4. The computing task allocation method according to claim 2, characterized in that: The allocating the total computing task of the user according to the pre-computation tasks of each computing power node includes: If the target computing node does not exist in the computing node set and the update value is greater than zero, after replacing the computing network, return to the step of calculating the pre-computation task of each computing node in the computing network in order of the unit price of each computing node from low to high according to the computing performance, network performance of each computing node and the user's latency requirements, until the total computing task of the user is allocated according to the pre-computation tasks of each computing node in the replaced computing network.
5. The computing task allocation method according to claim 2, characterized in that: The allocating the total computing task of the user according to the pre-computation tasks of each computing power node includes: If the target computing power node does not exist in the computing power node set and the update value is greater than zero, the total computing task of the user is divided into multiple partial computing tasks; The multiple partial computing tasks are distributed to multiple computing power networks, and for each computing power network, the step of calculating the pre-computation tasks of each computing power node in the computing power network in order of the unit price of each computing power node from low to high is returned according to the computing performance, network performance and user latency requirements of each computing power node in the computing power network, until in each computing power network, the corresponding partial computing tasks are distributed according to the pre-computation tasks of each computing power node.
6. The computing task allocation method according to claim 2, characterized in that: The unit price of any computing power node is obtained based on the following steps: Calculate the product of the price per unit of computing power and the remaining available computing power on any computing power node to obtain the computing power price of any computing power node; Calculate the product of the price per unit bandwidth and the remaining available bandwidth on any computing power node to obtain the bandwidth price of any computing power node; The sum of the computing power price and the bandwidth price of any computing power node is calculated to obtain the unit price of any computing power node.
7. The computing task allocation method according to claim 6, characterized in that: Before allocating the total computing task of the user according to the pre-computation tasks of each computing power node, the method includes: Calculate the product of the unit price of any computing power node and the size of the pre-calculated file to obtain the computing cost of any computing power node; The computing fee is paid to any computing power node according to the computing cost.
8. A computing power network, characterized in that: A method for implementing the computing task allocation method according to any one of claims 1 to 7, comprising: The computing network transaction module is used to obtain the user's latency requirements and total computing tasks; The computing network management module is used to obtain the computing performance and network performance of each computing node; The computing network arrangement module is used to obtain each computing power node in order of unit price from low to high, and allocate the total computing task of the user according to the pre-computation tasks of each computing power node.
9. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the steps of the computing task allocation method according to any one of claims 1 to 7 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the computing task allocation method according to any one of claims 1 to 7 are implemented.
