Computing power resource matching method and device, equipment, medium and computer program product
By obtaining and sorting the demand data and node resource data of the computing power requester, and using a greedy algorithm to match the computing power resources, the problem of low utilization of computing power resources in the existing technology is solved, and efficient matching and utilization of resources are achieved.
Patent Information
- Application Number
- CN202410356098.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-27
- Publication Date
- 2024-10-18
AI Technical Summary
Existing computing power resource matching methods fail to effectively solve the problem of low computing power resource utilization, lack classification and overall consideration of computing power requirements and resources, and cannot effectively match optimal computing power requirements and resource solutions.
By obtaining the demand data of the computing power requester and the resource data of the computing power node, sorting based on the demand start and end time and demand capacity, determining the computing power resource matching plan, using a greedy algorithm to match resources between multiple requesters and nodes to ensure Efficient use of resources.
The utilization rate of computing resources is improved. Through classification and sorting methods, matching plans for different types of requests are developed to ensure optimal allocation and utilization of resources.
Smart Images

Figure CN118796444A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computing power resource management, and specifically to a computing power resource matching method, device, equipment, medium and computer program product. Background Art
[0002] Most of the existing methods for matching computing resources with computing requests are to study the computing demand allocation plan for the known computing resource request direction, or to formulate a solution for matching computing resources with demand from the perspective of the computing requester. They do not deeply classify computing demand and resources, identify different demand data of computing demanders, latency requirements of computing requests, and cost requirements of computing requests, etc.; they do not provide an optimal technical solution for matching computing demand and computing resources; and the existing technical solutions are formulated from the user's perspective and lack global considerations. They cannot effectively solve the problems of unbalanced matching of computing resources and low utilization of computing resources. Summary of the invention
[0003] The embodiments of the present application provide a computing power resource matching method, apparatus, device, medium and computer program product to solve the technical problem of low computing power resource utilization in existing computing power resource matching solutions.
[0004] In a first aspect, an embodiment of the present application provides a computing resource matching method, including:
[0005] Obtaining demand data of the computing power requester and computing power resources of the computing power node, wherein the demand data includes the start and end time of the demand and the demand capacity;
[0006] In the case where multiple computing power requesters request the same computing power node, determining a computing power resource matching scheme for the computing power nodes requested by the multiple computing power requesters based on the start and end time of the demand of each computing power requester;
[0007] In the case where multiple computing power requesters request multiple computing power nodes, the required capacity of each computing power requester is sorted to obtain a first sequence, and the computing power resources of each computing power node are sorted to obtain a second sequence;
[0008] Based on the correspondence between the first sequence and the second sequence, a computing resource matching scheme for each computing node is determined.
[0009] In one embodiment, determining the computing power resource matching scheme of the computing power nodes requested by the multiple computing power requesters based on the start and end time of the demand of each computing power requester includes:
[0010] Determine a demand compatible set based on the demand start and end time of each computing power requester, wherein the demand compatible set includes multiple computing power requesters whose demand start and end times do not overlap;
[0011] In the case where there are multiple demand-compatible sets, determining a set with the largest number of computing power requesters among the multiple demand-compatible sets as the target set;
[0012] In the case that there is only one requirement-compatible set, determining the requirement-compatible set as the target set;
[0013] Provide computing power resources to computing power requesters in the target set in chronological order.
[0014] In one embodiment, determining the demand compatible set based on the demand start and end time of each computing power requester includes:
[0015] Based on a first requester whose demand termination time is the earliest among the multiple computing power requesters, a demand compatibility set is determined, where the demand compatibility set includes multiple computing power requesters whose demand start and end times do not intersect with those of the first requester.
[0016] In one embodiment, providing computing resources to computing requesters in the target set in chronological order includes:
[0017] The computing power nodes requested by the computing power requester outside the target set are adjusted.
[0018] In one embodiment, determining a computing resource matching scheme for each computing node based on a correspondence between the first sequence and the second sequence includes:
[0019] Determine a target computing power node in the second sequence with the smallest computing power resources and that satisfies a target requester, wherein the target requester is a computing power requester with the smallest required capacity in the first sequence;
[0020] Determine the target computing power node to provide computing power resources for the target requester.
[0021] In one embodiment, after determining that the target computing power node provides computing power resources for the target requester, the method includes:
[0022] Updating the computing power resources of the target computing power node to obtain an updated second sequence;
[0023] Removing the target requester to obtain an updated first sequence;
[0024] Based on the correspondence between the updated first sequence and the updated second sequence, a computing resource matching scheme for each computing node is determined.
[0025] In a second aspect, an embodiment of the present application provides a computing resource matching device, including:
[0026] The demand data and computing power resource acquisition module is used to obtain the demand data of the computing power requester and the computing power resources of the computing power node. The demand data includes the start and end time of the demand and the demand capacity;
[0027] A first computing power resource matching scheme determination module is used to determine the computing power resource matching scheme of the computing power nodes requested by the multiple computing power requesters based on the start and end time of the demand of each computing power requester when multiple computing power requesters request the same computing power node;
[0028] A sorting module, for sorting the required capacity of each computing power requester to obtain a first sequence, and sorting the computing power resources of each computing power node to obtain a second sequence when multiple computing power requesters request multiple computing power nodes;
[0029] The second computing power resource matching scheme determining module is used to determine the computing power resource matching scheme of each computing power node based on the corresponding relationship between the first sequence and the second sequence.
[0030] In a third aspect, an embodiment of the present application provides a device, including a processor and a memory storing a computer program, wherein the processor implements the computing power resource matching method described in the first aspect when executing the computer program.
[0031] In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the computing power resource matching method described in the first aspect is implemented.
[0032] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the computing power resource matching method described in the first aspect.
[0033] The computing power resource matching method, device, equipment, medium and computer program product provided in the embodiments of the present application first obtain the computing power demand data of the computing power requester and the computing power resources provided by the computing power node. Then classify the computing power request situation. When multiple computing power requesters request the same computing power node, determine the computing power resource matching scheme of the computing power node based on the demand start and end time in the computing power demand data; when multiple computing power requesters request multiple computing power nodes, sort the demand capacity of each computing power requester to obtain a first sequence, sort the computing power resources of each computing power node to obtain a second sequence, and finally determine the computing power resource matching scheme for each computing power node based on the correspondence between the first sequence and the second sequence. The present application improves the utilization rate of computing power resources by formulating computing power resource matching schemes for different types of computing power requests. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] 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.
[0035] Figure 1 This is one of the flowcharts of the computing power resource matching method provided in the embodiment of the present application;
[0036] Figure 2 This is the second flow chart of the computing power resource matching method provided in the embodiment of the present application;
[0037] Figure 3 It is a structural diagram of a computing power resource matching device provided in an embodiment of the present application;
[0038] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] 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.
[0040] Reference Figure 1 , Figure 1 This is one of the flow charts of the computing power resource matching method in the embodiment of the present application. The computing power resource matching method provided in the embodiment of the present application may include:
[0041] Step 100, obtaining demand data of the computing power requester and computing power resources of the computing power node, wherein the demand data includes the start and end time of the demand and the demand capacity;
[0042] Specifically, there is a regional imbalance between the current computing power resources and demand. For example, the eastern region has a large demand for computing power, while the western region has abundant computing power resources. In this context, an efficient allocation method for matching computing power resources with demand is needed. This application classifies the data that needs to be calculated (i.e., the demand data of the computing power requester in this embodiment), for example, the data that needs to be calculated is divided into hot data and warm and cold data. The demand data of the computing power requester includes the start and end time of the demand and the demand capacity.
[0043] Step 200: When multiple computing power requesters request the same computing power node, a computing power resource matching scheme for the computing power nodes requested by the multiple computing power requesters is determined based on the start and end time of the demand of each computing power requester.
[0044] Specifically, for the above-mentioned hot data, this application adopts a computing power resource matching solution that satisfies the latency nearby; if the computing power resources of the nearest computing power node meet the computing power requirements, the computing power resource matching solution is output.
[0045] The present application provides a method for optimal computing power service order based on a greedy algorithm. When multiple computing power requesters (hot data that need computing power calculations) are waiting for computing power resource services from the same computing power node at the same time, the greedy algorithm provided by the present application can be used to formulate a computing power resource scheduling plan. Select the largest subset of compatible computing power requests or a subset of compatible computing power requests that meet other conditions from the determined set of available computing power nodes. The greedy algorithm provided by the present application can efficiently formulate a computing power resource matching plan for multiple requesters to request a computing power node at the same time.
[0046] Step 300: When multiple computing power requesters request multiple computing power nodes, the required capacity of each computing power requester is sorted to obtain a first sequence, and the computing power resources of each computing power node are sorted to obtain a second sequence;
[0047] Specifically, the present application provides a computing power resource matching solution based on a greedy algorithm for warm and cold data (i.e., the situation where multiple computing power requesters request multiple computing power nodes). The solution takes the resource size of the computing power request as the main consideration, matches the currently available computing power resource nodes for each computing power request, and obtains the best computing power resource matching solution, so that the utilization rate of the computing power nodes is optimized.
[0048] When implementing the computing power resource matching method based on the greedy algorithm for warm and cold data (i.e., for the case where multiple computing power requesters request multiple computing power nodes), it is necessary to first sort the required capacity of each computing power requester to obtain a first sequence, and sort the computing power resources of each computing power node to obtain a second sequence.
[0049] Step 400: Determine a computing resource matching solution for each computing node based on the correspondence between the first sequence and the second sequence.
[0050] Specifically, the required capacity of multiple computing power requests is sorted according to the numerical value to obtain a first sequence, and the computing power resources of multiple available computing power nodes are sorted according to the numerical value to obtain a second sequence. In order to ensure that each computing power request obtains the required computing power resources, the number of computing power resources of the computing power nodes included in the second sequence should be greater than the number of computing power requesters included in the first sequence. Based on the correspondence between the first sequence and the second sequence, the computing power resource matching scheme for each computing power node can be determined as follows: the computing power node with the smallest computing power resources in the second sequence and that meets the computing power requester (with the smallest computing power demand in the first sequence) provides computing power resources for the computing power requester with the smallest computing power demand in the first sequence.
[0051] This embodiment obtains the computing power demand data of the computing power requester and the computing power resources provided by the computing power node. Then the computing power request situation is classified. When multiple computing power requesters request the same computing power node, the computing power resource matching scheme of the computing power node is determined based on the demand start and end time in the computing power demand data; when multiple computing power requesters request multiple computing power nodes, the demand capacity of each computing power requester is sorted to obtain a first sequence, and the computing power resources of each computing power node are sorted to obtain a second sequence. Finally, based on the correspondence between the first sequence and the second sequence, the computing power resource matching scheme of each computing power node is determined. This application improves the utilization rate of computing power resources by formulating computing power resource matching schemes for different types of computing power requests.
[0052] In one embodiment, the computing power resource matching method provided in the embodiment of the present application may further include:
[0053] Step 210, determining a demand compatible set based on the demand start and end time of each computing power requester, wherein the demand compatible set includes a plurality of computing power requesters whose demand start and end times do not overlap;
[0054] Step 220: if there are multiple demand-compatible sets, determine the set with the largest number of computing power requesters among the multiple demand-compatible sets as the target set;
[0055] Step 230, when there is only one requirement-compatible set, determining the requirement-compatible set as a target set;
[0056] Step 240: Provide computing power resources to computing power requesters in the target set in chronological order.
[0057] Specifically, the specific content of the computing power resource matching scheme for hot data that satisfies the latency nearby is as follows: when multiple computing power requesters are waiting for the same computing power node at the same time, the set of multiple computing power requesters waiting for computing power resource services is determined to be {1, 2, ..., n}, and only one computing power requester can use the computing power resource services provided by the computing power node at the same time. Each computing power requester has its start time and end time for using computing power resources (i.e., the demand start and end time of each computing power requester in this embodiment), so each computing power requester also has other computing power requesters whose demand start and end times do not overlap with its demand. When determining a computing power requester, other computing power requesters whose demand start and end times do not overlap with the demand start and end time of the computing power requester can be determined. The demand start and end times between them do not overlap with each other. These computing power requesters whose demand start and end times do not overlap with each other together constitute a set, i.e., the demand compatible set in this embodiment.
[0058] If there are enough computing power requesters and there are requesters whose demand start and end times overlap, there will be more than one demand compatibility set. When only one demand compatibility set needs to be determined, multiple demand compatibility sets need to be conditionally screened. For example, the demand compatibility set with the largest number of computing power requesters among multiple demand compatibility sets is screened as the target set provided in this embodiment. After determining the target set, computing power resource services are provided to the computing power requesters in the target set in the order of the demand start and end times of each computing power requester in the target set, for example, computing power resource services are provided to the computing power requesters in the target set in order from first to last in time.
[0059] This embodiment efficiently solves the problem of multiple computing power requesters waiting for computing power resource services of a computing power node at the same time through a computing power optimal service order method based on a greedy algorithm.
[0060] In one embodiment, the computing power resource matching method provided in the embodiment of the present application may further include:
[0061] Step 211, based on the first requester whose demand termination time is the earliest among the multiple computing power requesters, determine a demand compatibility set, wherein the demand compatibility set includes multiple computing power requesters whose demand start and end times do not intersect with those of the first requester.
[0062] Specifically, the above method for screening multiple demand compatible sets can also be: first determine the requester with the earliest demand termination time among multiple computing power requesters (i.e., the first requester in this embodiment), and then, based on the first requester, add each requester whose demand start and end times do not overlap with the first requester and do not overlap with each other to the demand compatible set to obtain the demand compatible set corresponding to the first requester. There is only one demand compatible set corresponding to the first requester obtained by screening in this way.
[0063] This embodiment can be applicable to different business scenarios through different requirements compatible set screening methods.
[0064] In one embodiment, the computing power resource matching method provided in the embodiment of the present application may further include:
[0065] Step 250: Adjust the computing power nodes requested by the computing power requester outside the target set.
[0066] Specifically, if there are computing power requesters whose demand start and end times overlap, for example, there are a total of 10 computing power requesters waiting for the same computing power node A, and the determined target set contains 7 computing power requesters whose demand start and end times do not overlap with each other, then there are 3 computing power requesters outside the target set. Then the present application provides a solution for providing computing power resource services to these 3 computing power requesters that are not in the target set, for example, the computing power node A required by these 3 computing power requesters that are not in the target set is adjusted to computing power node B. The adjustment of the computing power node can be completed when the target set is determined, and the computing power nodes that do not affect (or weakly affect) are preferentially selected as the adjusted computing power nodes. For example, the condition for adjusting the computing power node A required by the 3 computing power requesters that are not in the target set to computing power node B is that the adjustment of the demand start and end times of the past computing power requesters does not affect (or weakly affect) the requesters that originally provided computing power resource services to the computing power node B. The definition of weak impact can be: a large portion (for example, more than 60%) of the computing power requesters to be adjusted do not affect (i.e., the start and end times of the demand do not overlap) the requesters originally served by the adjusted computing power node. The unresolved computing power requesters can continue to adjust the computing power nodes through the above method until all computing power requesters have computing power nodes that provide computing power resource services.
[0067] It can be seen that the conditions for adjusting the computing power node mentioned above can also be: changing the demand start and end times of the computing power requester to be adjusted so that the adjusted demand start and end times of the computing power requester do not affect the demand start and end times of the requesters originally served by the adjusted computing power node.
[0068] This embodiment effectively solves the problem of computing resource matching for hot data by adjusting the start and end times of the computing requester's requirements and adjusting the computing nodes that improve computing resource services.
[0069] Reference Figure 2 , Figure 2 This is the second flow chart of the computing power resource matching method in the embodiment of the present application. In one embodiment, the computing power resource matching method provided in the embodiment of the present application may also include:
[0070] Step 410, determining a target computing node in the second sequence that has the smallest computing resources and satisfies a target requester, wherein the target requester is a computing requester with the smallest required capacity in the first sequence;
[0071] Step 420: Determine that the target computing power node provides computing power resources for the target requester.
[0072] Step 430: updating the computing power resources of the target computing power node to obtain an updated second sequence;
[0073] Step 440, removing the target requester to obtain an updated first sequence;
[0074] Step 450: Determine a computing resource matching solution for each computing node based on the correspondence between the updated first sequence and the updated second sequence.
[0075] Specifically, the solution for computing power resource matching based on the greedy algorithm for warm and cold data is as follows:
[0076] For warm and cold data of multiple computing nodes requested by multiple computing power requesters, the resource size of the computing power request is used as the matching basis, and the required capacities of multiple computing power requesters are sorted based on the computing power resource size requested by each computing power requester (i.e., the required capacity in this embodiment) to obtain a first sequence. The first sequence can be expressed as {w1, w2, ..., w n}, where w1 represents the required capacity of the computing power requester with the smallest required capacity among multiple computing power requesters; the second sequence is obtained by sorting the computing power resources of each computing power node (remaining available), and the second sequence can be expressed as {v1,v2,...,v n}, where v1 represents the resource size of the computing power node with the smallest remaining usable computing power resources among multiple computing power nodes.
[0077] The approach to the computing resource matching solution based on the greedy algorithm for warm and cold data is to use the computing node with the smallest amount of resources to meet the minimum computing request w1 to provide computing resource services for w1, for example, v1 matches w1. After matching, the computing requester that has obtained computing resource services will be removed. Without adding new computing requesters, the updated first sequence is {w2,w3,...,w n}; When a new computing power requester is added, the first sequence after adding the new computing power requester is reordered to obtain an updated first sequence.
[0078] The matched computing nodes are put back into the second sequence for sorting, and the remaining available computing resources of the matched computing nodes will be released soon, and the size of the computing resources after release is not necessarily equal to the size of the computing resources before release, that is, after the matched computing nodes are put back into the second sequence for sorting, the sorting result will basically change, and an updated second sequence will be obtained. Based on the above-mentioned matching method, the computing resource matching scheme for each computing node is determined based on the correspondence between the updated first sequence and the updated second sequence. This scheme is a cyclic scheme, and the subsequent matching process will not be repeated.
[0079] This embodiment uses the resource size of the computing power request as the matching basis to obtain a computing power resource matching solution that improves the utilization rate of the computing power nodes.
[0080] refer to Figure 3 , Figure 3 It is a structural diagram of the computing power resource matching device in the embodiment of the present application. The computing power resource matching device provided in the embodiment of the present application is described below. The computing power resource matching device described below and the computing power resource matching method described above can be referenced to each other.
[0081] The demand data and computing power resource acquisition module 301 is used to obtain the demand data of the computing power requester and the computing power resources of the computing power node, wherein the demand data includes the start and end time of the demand and the demand capacity;
[0082] A first computing power resource matching solution determination module 302 is used to determine the computing power resource matching solution of the computing power nodes requested by the multiple computing power requesters based on the start and end time of the demand of each computing power requester when multiple computing power requesters request the same computing power node;
[0083] A sorting module 303 is used to sort the required capacity of each computing power requester to obtain a first sequence, and sort the computing power resources of each computing power node to obtain a second sequence when multiple computing power requesters request multiple computing power nodes;
[0084] The second computing power resource matching solution determination module 304 is used to determine the computing power resource matching solution of each computing power node based on the corresponding relationship between the first sequence and the second sequence.
[0085] Optionally, the first computing power resource matching solution determination module includes:
[0086] A demand compatible set construction unit, used to determine a demand compatible set based on the demand start and end time of each computing power requester, wherein the demand compatible set includes a plurality of computing power requesters whose demand start and end times do not overlap;
[0087] A first target set determining unit, configured to determine, when there are multiple demand-compatible sets, a set with the largest number of computing power requesters among the multiple demand-compatible sets as a target set;
[0088] A second target set determining unit, configured to determine the requirement compatible set as a target set when there is only one requirement compatible set;
[0089] The first computing power resource matching solution determination unit is used to provide computing power resources to computing power requesters in the target set in chronological order.
[0090] Optionally, the requirement-compatible set construction unit includes:
[0091] A demand compatible set determining unit is used to determine a demand compatible set based on a first requester having the earliest demand termination time among the multiple computing power requesters, wherein the demand compatible set includes multiple computing power requesters whose demand start and end times do not intersect with those of the first requester.
[0092] Optionally, the computing power resource matching device further includes:
[0093] The computing power node adjustment module is used to adjust the computing power nodes requested by the computing power requester outside the target set.
[0094] Optionally, the second computing power resource matching solution determination module includes:
[0095] a target computing power node determining unit, configured to determine a target computing power node in the second sequence with the smallest computing power resources and satisfying a target requester, wherein the target requester is a computing power requester with the smallest required capacity in the first sequence;
[0096] The second computing power resource matching solution determination unit is used to determine that the target computing power node provides computing power resources for the target requester.
[0097] Optionally, the computing power resource matching device further includes:
[0098] A second sequence updating module, used to update the computing power resources of the target computing power node to obtain an updated second sequence;
[0099] A first sequence updating module, used to remove the target requester and obtain an updated first sequence;
[0100] A computing power resource matching module is used to determine a computing power resource matching solution for each computing power node based on the correspondence between the updated first sequence and the updated second sequence.
[0101] Figure 4 The following is an example of a physical structure diagram of a device, such as Figure 4 As shown, the device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call a computer program in the memory 430 to execute the steps of the computing power resource matching method.
[0102] In addition, the logic instructions in the above-mentioned memory 430 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 disk or an optical disk.
[0103] On the other hand, an embodiment of the present application also provides a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the computer can execute the steps of the computing power resource matching method provided in the above embodiments.
[0104] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0105] 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, 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, which 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 computing power resource matching method described in each embodiment or some parts of the embodiment.
[0106] 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 resource matching method, characterized in that: include: Obtaining demand data of the computing power requester and computing power resources of the computing power node, wherein the demand data includes the start and end time of the demand and the demand capacity; In the case where multiple computing power requesters request the same computing power node, determining a computing power resource matching scheme for the computing power nodes requested by the multiple computing power requesters based on the start and end time of the demand of each computing power requester; In the case where multiple computing power requesters request multiple computing power nodes, the required capacity of each computing power requester is sorted to obtain a first sequence, and the computing power resources of each computing power node are sorted to obtain a second sequence; Based on the correspondence between the first sequence and the second sequence, a computing resource matching scheme for each computing node is determined.
2. The computing resource matching method according to claim 1, characterized in that: The determining of a computing resource matching scheme for computing nodes requested by the multiple computing requesters based on the start and end time of the demand of each computing requester comprises: Determine a demand compatible set based on the demand start and end time of each computing power requester, wherein the demand compatible set includes multiple computing power requesters whose demand start and end times do not overlap; In the case where there are multiple demand-compatible sets, determining a set with the largest number of computing power requesters among the multiple demand-compatible sets as the target set; In the case that there is only one requirement-compatible set, determining the requirement-compatible set as the target set; Provide computing power resources to computing power requesters in the target set in chronological order.
3. The computing resource matching method according to claim 2, characterized in that: The determining of the demand compatible set based on the demand start and end time of each computing power requester includes: Based on a first requester whose demand termination time is the earliest among the multiple computing power requesters, a demand compatibility set is determined, where the demand compatibility set includes multiple computing power requesters whose demand start and end times do not intersect with those of the first requester.
4. The computing resource matching method according to claim 2, characterized in that: The providing computing resources to the computing requesters in the target set in chronological order includes: The computing power nodes requested by the computing power requester outside the target set are adjusted.
5. The computing resource matching method according to claim 1, characterized in that: The determining of a computing resource matching scheme for each computing node based on the correspondence between the first sequence and the second sequence includes: Determine a target computing power node in the second sequence with the smallest computing power resources and that satisfies a target requester, wherein the target requester is a computing power requester with the smallest required capacity in the first sequence; Determine the target computing power node to provide computing power resources for the target requester.
6. The computing resource matching method according to claim 5, characterized in that: After determining that the target computing power node provides computing power resources for the target requester, the method further includes: Updating the computing power resources of the target computing power node to obtain an updated second sequence; Removing the target requester to obtain an updated first sequence; Based on the correspondence between the updated first sequence and the updated second sequence, a computing resource matching scheme for each computing node is determined.
7. A computing resource matching device, characterized in that: include: The demand data and computing power resource acquisition module is used to obtain the demand data of the computing power requester and the computing power resources of the computing power node. The demand data includes the start and end time of the demand and the demand capacity; A first computing power resource matching scheme determination module is used to determine the computing power resource matching scheme of the computing power nodes requested by the multiple computing power requesters based on the start and end time of the demand of each computing power requester when multiple computing power requesters request the same computing power node; A sorting module, for sorting the required capacity of each computing power requester to obtain a first sequence, and sorting the computing power resources of each computing power node to obtain a second sequence when multiple computing power requesters request multiple computing power nodes; The second computing power resource matching scheme determining module is used to determine the computing power resource matching scheme of each computing power node based on the corresponding relationship between the first sequence and the second sequence.
8. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the computing power resource matching method described in any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computing power resource matching method as described in any one of claims 1 to 6 is 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 power resource matching method described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Resource matching method, device and apparatus
CN110532092A
Cloud computing power sharing method, system and device based on block chain mechanism
CN116192958A
Fragmented resource allocation method and device for computing power node, equipment, medium and product
CN117112200A
Computing power scheduling system and method, control node, storage medium and equipment
CN117294702A
Resource scheduling monitoring method and device, electronic equipment and storage medium
CN117453392A
