Resource management method and device for computing power resource pool, electronic equipment and storage medium

By dynamically predicting the amount of resources to be consumed in the computing power center and performing recharge operations, the problem of low resource management efficiency and insufficient resources in the existing technology has been solved, and the resource management efficiency of the computing power resource pool is improved.

CN119668853APending Publication Date: 2025-03-21中国联合网络通信有限公司广东省分公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411733859.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

There are problems in the prior art with poor resource management efficiency and the problem of insufficient computing power center resources resulting in failure of task processing in time.

Method used

By determining the amount of resources to be consumed for any computing power center, and when detecting that the available resources are insufficient, the amount of resources to be recharged is determined based on the amount of resources to be consumed, and the recharge operation is performed to ensure sufficient resources.

Benefits of technology

Dynamic prediction of the amount of resources to be consumed by each computing center in the computing resource pool and dynamic adjustment of resource reserves is achieved, resource management efficiency is improved, and task processing failures caused by insufficient resources are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119668853A_ABST
    Figure CN119668853A_ABST
Patent Text Reader

Abstract

The invention discloses a computing power resource pool resource management method and device, electronic equipment and a storage medium. The computing power resource pool comprises a plurality of computing power centers. Comprising the steps that the quantity of resources to be consumed, called by at least one resource bundle instance, of the computing power center is determined, any one resource bundle instance in the at least one resource bundle instance comprises at least one application program, and the computing power center allocates resources to at least one application program in the at least one resource bundle instance; when it is detected that the available resource quantity of the computing power center does not meet the to-be-consumed resource quantity, determining the to-be-recharged resource quantity based on the to-be-consumed resource quantity; and performing a recharging operation for the computing power center based on the to-be-recharged resource quantity. According to the scheme, the to-be-consumed resource quantity of each computing power center is determined, and the resource reserve quantity of each computing power center is dynamically adjusted, so that the reserve quantity of each computing power center can meet the resource quantity requirements of a plurality of resource bundle instances, the problem of resource waste is avoided, and the resource management efficiency of the computing power resource pool is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a computing resource pool resource management method, device, electronic device and storage medium. Background Art

[0002] As computing power applications gradually become market-oriented and popularized, the number of computing power centers is growing rapidly, and the demand for computing power is gradually expanding from corporate and institutional users to individual users. Computing power operation platforms are needed to serve as a bridge between computing power centers and individual computing power users in order to better meet the flexible and personalized needs of individual users.

[0003] In order to facilitate the intensive use and management of the resources of the computing center, it is necessary to create a computing resource pool on the computing operation platform. The application of information resource pools is increasing. Since traditional resource pool management methods require a lot of manual participation, the inclusion of new resources and the recording of remaining resources after allocation all require maintenance personnel to complete manually. However, in actual applications, especially when managing large-scale basic resources, resource management efficiency is low. In addition, the same application may use computing resources from different computing centers, and the resource management of computing centers is complex. Therefore, the existing technology has the problem of poor resource management efficiency and the problem of failure of task processing due to insufficient resources in the computing center cannot be detected in time. Summary of the invention

[0004] The present invention provides a computing resource pool resource management method, device, electronic device and storage medium to solve the problem of poor resource management efficiency existing in the prior art, and the problem of insufficient computing center resources leading to task processing failure cannot be detected in time.

[0005] According to one aspect of the present invention, a computing resource pool resource management method is provided, wherein the computing resource pool includes multiple computing centers, including:

[0006] For any computing power center, determine the amount of resources to be consumed by the computing power center called by at least one resource package instance, wherein any resource package instance in the at least one resource package instance includes at least one application, and the computing power center allocates resources to at least one application in the at least one resource package instance;

[0007] When it is detected that the available resources of the computing power center do not meet the amount of resources to be consumed, the amount of resources to be recharged corresponding to the computing power center is determined based on the amount of resources to be consumed;

[0008] Execute recharge operations for the computing power center based on the amount of resources to be recharged.

[0009] Optionally, determining the amount of resources to be consumed by a computing power center called by at least one resource package instance includes: obtaining resource usage data of the computing power center within a preset historical time period; for each resource package instance, determining target resource share data of the computing power center relative to the resource package instance based on the resource usage data of the computing power center, wherein the target resource share data is the share data of resources allocated by the computing power center to the resource package instance relative to the resource consumption of the corresponding resource package instance; determining the predicted resource demand corresponding to at least one resource package instance based on a preset demand calculation strategy; determining the amount of resources to be consumed by the computing power center called by at least one resource package instance based on the predicted resource demand corresponding to at least one resource package instance and the corresponding target resource share data.

[0010] Optionally, determining the target resource share data of the computing power center relative to the resource package instance based on the resource usage data of the computing power center includes: determining a first resource share data set and a second resource share data set corresponding to the computing power center based on the resource usage data of the computing power center, wherein the first resource share data set includes share data of the amount of resources called by at least one application in the resource package instance relative to the resource consumption of the corresponding at least one application, and the second resource share data set includes share data of the resource consumption of at least one application in the resource package instance relative to the resource consumption of the corresponding resource package instance; determining the target resource share data of the corresponding resource package instance based on the first resource share data set and the second resource share data set.

[0011] Optionally, the preset demand calculation strategy includes an average value calculation strategy; determining the predicted resource demand of at least one resource package instance based on the preset demand calculation strategy includes: when the preset demand calculation strategy is the average value calculation strategy, obtaining the total amount of available resources and the corresponding effective usage time data of at least one resource package instance, calculating the quotient of the total amount of available resources of at least one resource package instance and the corresponding effective usage time data, and determining the quotient value corresponding to at least one resource package instance; determining the predicted resource demand of the corresponding resource package instance based on the quotient value corresponding to at least one resource package instance and the first fluctuation coefficient.

[0012] Optionally, the preset demand calculation strategy includes a maximum calculation strategy; determining the resource demand of at least one resource package instance based on the preset demand calculation strategy includes: when the preset demand calculation strategy is the maximum calculation strategy, obtaining the historical resource consumption of at least one resource package instance, and determining the historical maximum resource consumption of each resource package instance in at least one resource package instance based on the historical resource consumption; determining the predicted resource demand of the corresponding resource package instance based on the historical maximum resource consumption and the second fluctuation coefficient corresponding to the at least one resource package instance.

[0013] Optionally, determining the amount of resources to be recharged corresponding to the computing power center based on the amount of resources to be consumed includes: determining the amount of resources to be recharged corresponding to the computing power center based on the amount of resources to be consumed and a third fluctuation coefficient.

[0014] Optionally, a recharge operation is performed for the computing power center based on the amount of resources to be recharged, including: generating a resource recharge request based on the amount of resources to be recharged, and sending the resource recharge request to the computing power center so that the computing power center recharges according to the resource recharge request; receiving feedback information sent by the computing power center, and updating the available resources of the computing power center in the target storage space according to the feedback information.

[0015] According to another aspect of the present invention, a computing resource pool resource management device is provided, comprising:

[0016] A module for determining the amount of resources to be consumed, for any computing power center, is used to determine the amount of resources to be consumed by the computing power center called by at least one resource package instance, wherein any resource package instance of the at least one resource package instance includes at least one application, and the computing power center allocates resources to at least one application in the at least one resource package instance;

[0017] A module for determining the amount of resources to be recharged, used to determine the amount of resources to be recharged corresponding to the computing power center based on the amount of resources to be consumed when it is detected that the amount of available resources of the computing power center does not meet the amount of resources to be consumed;

[0018] The recharge operation execution module is used to perform a recharge operation for the computing power center based on the amount of resources to be recharged.

[0019] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0020] at least one processor; and

[0021] a memory communicatively connected to at least one processor; wherein,

[0022] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the computing power resource pool resource management method of any embodiment of the present invention.

[0023] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions, and the computer instructions are used to enable a processor to implement the computing resource pool resource management method of any embodiment of the present invention when executed.

[0024] The technical solution of the embodiment of the present invention is to determine the amount of resources to be consumed by the computing power center called by at least one resource package instance for any computing power center, wherein any resource package instance in the at least one resource package instance includes at least one application, and the computing power center allocates resources to at least one application in the at least one resource package instance; when it is detected that the available resources of the computing power center do not meet the amount of resources to be consumed, determine the amount of resources to be recharged corresponding to the computing power center based on the amount of resources to be consumed; and perform a recharge operation for the computing power center based on the amount of resources to be recharged. This solution realizes the dynamic prediction of the amount of resources to be consumed of each computing power center in the computing power resource pool and the dynamic adjustment of the resource reserve of each computing power center, so that on the basis of ensuring that the reserve of each computing power center can meet the resource requirements of multiple resource package instances, it also avoids the problem of resource waste caused by excessive reserve of the computing power center, improves the management efficiency of the resources of each computing power center in the computing power resource pool, and effectively reduces the problem of task processing failure caused by insufficient resources of the computing power center.

[0025] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of 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 creative work.

[0027] Figure 1 It is a flow chart of a computing resource pool resource management method provided by Embodiment 1 of the present invention;

[0028] Figure 2 It is a flow chart of a computing resource pool resource management method provided by Embodiment 2 of the present invention;

[0029] Figure 3 It is a structural diagram of a computing resource pool resource management device provided by Embodiment 3 of the present invention;

[0030] Figure 4 It is a structural diagram of an electronic device that implements the computing resource pool resource management method of an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 only 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 should fall within the scope of protection of the present invention.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] Embodiment 1

[0034] Figure 1 It is a flowchart of a computing power resource pool resource management method provided in Example 1 of the present invention. This embodiment can be applicable to the situation of resource management of a computing power resource pool. The method can be executed by a computing power resource pool resource management device. The computing power resource pool resource management device can be implemented in the form of hardware and / or software. The computing power resource pool resource management device can be configured in electronic devices such as computers and servers.

[0035] In this embodiment, the computing power operation platform can obtain a certain amount of computing power resources from each computing power center and put them into the computing power resource pool of the computing power operation platform to provide computing power resources for different users to meet the needs of each user for resources in different computing power centers. It can be understood that the computing power resource pool includes multiple computing power centers. The computing power operation platform can dynamically control the resources of the computing power center based on the available resources of the computing power center and the amount of resources to be consumed called by multiple resource package instances of each computing power center package, so as to achieve precise control of the resources of the computing power center, thereby completing the effective management of the resources of each computing power center in the computing power resource pool, and comprehensively improving the resource management efficiency of the computing power resource pool.

[0036] like Figure 1 As shown, the method includes:

[0037] S110. For any computing power center, determine the amount of resources to be consumed by the computing power center called by at least one resource package instance.

[0038] Among them, any resource package instance in at least one resource package instance includes at least one application, and the computing power center allocates resources to at least one application in at least one resource package instance.

[0039] Among them, the computing power center can be specifically understood as the core part of the computer system responsible for processing large-scale data operations. It carries important functions such as computing task allocation, parallel computing and data processing, and can allocate resources for different applications. In this embodiment, the computing power center refers to any computing power center in the computing power resource pool. The resource package instance can be specifically understood as an instance obtained by classifying and packaging the application and the corresponding computing power center according to the business scenario and computing power requirements. For example, all applications and computing power centers corresponding to a computing power center can be packaged into a resource package instance; applications from different computing power centers and belonging to a specific industry can be packaged into a resource package instance; supercomputing, intelligent computing, and general computing power applications and computing power centers are mixed and matched to form a resource package instance, and they are packaged according to different usage scenarios to obtain resource package instances suitable for corresponding usage scenarios. Different usage scenarios include but are not limited to the following scenario examples: Scenario 1: Severe earthquakes, tsunamis, typhoons, etc. occur in a certain place over a period of time. It is often accompanied by other secondary disasters. At this time, it is necessary to use a variety of related applications to perform a large amount of calculations. The computing power demand in this aspect will inevitably surge. The related applications can be encapsulated into resource package instances; Scenario 2: The country launches a major measure (such as environmental protection, energy conservation, etc.), and a large number of related enterprises need to do related product development and computing tasks, and the related applications need to be encapsulated into resource package instances; Scenario 3: For comprehensive R&D institutions, computing applications of various industries are needed. The above scenarios are only examples. New resource package instances can be rebuilt according to actual needs to facilitate users to select corresponding resource package instances according to their needs, and it is also convenient to manage resource package instances. It should be noted that any resource package instance in a resource package instance includes at least one application, and the computing center allocates resources to at least one application in at least one resource package instance. The amount of resources to be consumed refers to the amount of resources consumed by the computing center in the future, that is, the amount of resources called by the computing center by at least one resource package instance in the future. For example, the future period can be the next day, the next two days, or the next six hours, etc., which is set according to actual needs. Statistical analysis can be performed based on the historical resource usage data of the computing power center to predict the amount of resources to be consumed in a preset historical time period in the future. The amount of resources to be consumed in the future time period can be determined based on the average calculation strategy, and then the resource proportion data corresponding to the resources allocated to the computing power center in the corresponding future time period can be determined based on the resource usage information corresponding to the computing power center. The amount of resources to be consumed can be determined based on the total resource consumption and the resource proportion data corresponding to the computing power center.

[0040] Specifically, each computing power center can be called by multiple resource package instances, and resources can be allocated to at least one application in the multiple resource package instances. Therefore, when determining the amount of resources to be consumed corresponding to the computing power center, it is necessary to consider the resource package instance corresponding to the computing power center and the application in the resource package instance that calls the computing power center. It should be noted that in the process of building the resource package instance, the mapping relationship between each resource package instance and the corresponding application and computing power center will be stored, so that the application and resource package instance associated with each computing power center can be determined more quickly. When determining the computing power center, the application and resource package instance associated with the computing power center can be determined through the mapping table, and then the information related to the computing power center can be determined and filtered in the resource usage data corresponding to the computing power center. The relevant information of the computing power center can be processed by calling the pre-built method for calculating the amount of resources to be consumed to determine the resource consumption of the computing power center in the future time period, that is, the amount of resources to be consumed corresponding to the computing power center is obtained.

[0041] In this embodiment, by determining the amount of resources to be consumed by the computing power center called by at least one resource package instance, it is used to judge whether the resource reserves of the computing power center can meet the resource demand in the future period. The amount of resources to be consumed in the computing power center can be detected in time, and corresponding operations can be performed in time when there is a shortage, thereby avoiding the problem of insufficient resources in the computing power center.

[0042] S120: When it is detected that the available resources of the computing power center do not meet the resources to be consumed, determine the resources to be recharged corresponding to the computing power center based on the resources to be consumed.

[0043] Among them, the amount of resources to be recharged can be specifically understood as the amount of resources that the computing power center needs to recharge in order to meet the amount of resources required to execute tasks in the future and avoid the problem of insufficient resources.

[0044] Specifically, the available resources of the computing power center can be obtained from the preset storage space, and then the new available resources in the computing power are compared with the resources to be consumed. If the available resources of the computing power center do not meet the resources to be consumed, the difference between the resources to be consumed and the available resources is calculated, and the difference is used as the resources to be recharged. If the available resources of the computing power center meet the resources to be consumed, it is determined that the reserve of the computing power center is sufficient to guarantee the resource consumption in the future. The computing power center cannot be recharged, avoiding the problem of waste of resources caused by excessive recharge, so that when the computing power center is detected to have a recharge demand, it can be recharged appropriately for the computing power center, thereby improving the management efficiency of the computing power center.

[0045] Optionally, determining the amount of resources to be recharged corresponding to the computing power center based on the amount of resources to be consumed includes: determining the amount of resources to be recharged corresponding to the computing power center based on the amount of resources to be consumed and a third fluctuation coefficient.

[0046] Among them, the third fluctuation coefficient can be specifically understood as a representation of the degree of fluctuation of resource consumption. The third fluctuation coefficient can be determined and stored in advance based on statistical analysis of historical data, and can be directly called during the application process. For example, the third fluctuation coefficient is greater than 1.

[0047] Specifically, the third fluctuation coefficient can be obtained from the configuration file or configuration information, and the amount of resources to be consumed and the third fluctuation coefficient are multiplied, and the product result is the amount of resources to be recharged corresponding to the computing power center.

[0048] S130. Execute a recharge operation for the computing power center based on the amount of resources to be recharged.

[0049] Specifically, the computing power center is controlled to recharge according to the amount of resources to be recharged, so that after the recharge operation, the resource reserve of the computing power center can meet the amount of resources to be consumed.

[0050] Optionally, a recharge operation is performed for the computing power center based on the amount of resources to be recharged, including: generating a resource recharge request based on the amount of resources to be recharged, and sending the resource recharge request to the computing power center so that the computing power center recharges according to the resource recharge request; receiving feedback information sent by the computing power center, and updating the available resources of the computing power center in the target storage space according to the feedback information.

[0051] Specifically, a corresponding resource recharge request is generated according to the request template based on the amount of resources to be recharged, and the resource recharge request is sent to the computing power center, so that the computing power center performs a recharge operation according to the received resource recharge request. After the computing power center completes the recharge operation, the recharge operation result is returned to the computing power operation platform as feedback information. After receiving the feedback information returned by the computing power center, the feedback information is identified, wherein the feedback information includes available resource information after the computing power center performs the recharge operation, that is, the available resource amount of the corresponding computing power center in the target storage space is updated according to the available resource information in the received feedback information.

[0052] The technical solution of the present embodiment is to determine the amount of resources to be consumed by the computing power center called by at least one resource package instance for any computing power center, wherein any resource package instance in at least one resource package instance includes at least one application, and the computing power center allocates resources to at least one application in at least one resource package instance; when it is detected that the available resources of the computing power center do not meet the amount of resources to be consumed, the amount of resources to be recharged corresponding to the computing power center is determined based on the amount of resources to be consumed; and the recharge operation is performed for the computing power center based on the amount of resources to be recharged. This solution realizes the dynamic prediction of the amount of resources to be consumed of each computing power center in the computing power resource pool and the dynamic adjustment of the resource reserve of each computing power center, so that on the basis of ensuring that the reserve of each computing power center can meet the resource demand of multiple resource package instances, it also avoids the problem of resource waste caused by excessive reserve of the computing power center, improves the management efficiency of resources of each computing power center in the computing power resource pool, and effectively reduces the problem of task processing failure caused by insufficient resources of the computing power center.

[0053] Embodiment 2

[0054] Figure 2 It is a flow chart of a computing power resource pool resource management method provided in the second embodiment of the present invention. This embodiment is a further optimization of the method of the above embodiment. Optionally, for any computing power center, the resource usage data of the computing power center within a preset historical time period is obtained; for each resource package instance, the target resource share data of the computing power center relative to the resource package instance is determined based on the resource usage data of the computing power center, wherein the target resource share data is the share data of the resources allocated by the computing power center to the resource package instance relative to the resource consumption of the corresponding resource package instance; based on the preset demand calculation strategy, the predicted resource demand corresponding to at least one resource package instance is determined; based on the predicted resource demand corresponding to at least one resource package instance and the corresponding target resource share data, the amount of resources to be consumed by the computing power center called by at least one resource package instance is determined. Figure 2 As shown, the method includes:

[0055] S210. For any computing power center, obtain the resource usage data of the computing power center within a preset historical time period.

[0056] Among them, the preset historical time period can be specifically understood as the time period information set to limit the amount of data obtained. In this embodiment, the preset historical time period can be the past week or the past month. It can be set according to actual needs and is not limited here.

[0057] Specifically, the resource usage data of the computing power center within a preset historical time period can be extracted from the target storage space. It should be noted that the resource usage data includes the resource usage data of the computing power center itself, and also includes the resource usage data corresponding to the application programs and resource package instances associated with the computing power center.

[0058] S220. For each resource package instance, determine the target resource share data of the computing power center relative to the resource package instance based on the resource usage data of the computing power center, wherein the target resource share data is the share data of the resources allocated by the computing power center to the resource package instance relative to the resource consumption of the corresponding resource package instance.

[0059] Among them, the amount of resources allocated by the computing power center to the resource package instance refers to the sum of the amount of resources allocated by the computing power center to at least one application included in the resource package instance, and the resource consumption of the resource package instance refers to the total amount of resources consumed by the resource package instance for multiple computing power centers.

[0060] Specifically, the amount of resources of the computing power center allocated to each resource package instance in at least one resource package instance that matches the computing power center is determined based on the resource usage data of the computing power center, and the resource consumption corresponding to each resource package instance is obtained. For each resource package instance, the quotient of the amount of resources allocated by the computing power center to the resource package instance and the resource consumption of the corresponding resource package instance is calculated, and the obtained quotient is used as the target resource proportion data of the computing power center relative to the resource package instance.

[0061] Optionally, determining the target resource share data of the computing power center relative to the resource package instance based on the resource usage data of the computing power center includes: determining a first resource share data set and a second resource share data set corresponding to the computing power center based on the resource usage data of the computing power center, wherein the first resource share data set includes share data of the amount of resources called by at least one application in the resource package instance relative to the resource consumption of the corresponding at least one application, and the second resource share data set includes share data of the resource consumption of at least one application in the resource package instance relative to the resource consumption of the corresponding resource package instance; determining the target resource share data of the corresponding resource package instance based on the first resource share data set and the second resource share data set.

[0062] Specifically, any resource package instance in at least one resource package instance includes at least one application, and the computing power center allocates resources to at least one application in at least one resource package instance. For any resource package instance, the proportion of the amount of resources called by each application in at least one application in the resource package instance relative to the resource consumption of the corresponding application can be determined based on the resource usage data of the computing power center, and multiple proportion data can be obtained, and the obtained multiple proportion data can be used as the first resource proportion data set corresponding to the computing power center; the proportion of the resource consumption of each application in at least one application in the resource package instance relative to the resource consumption of the corresponding resource package instance can be determined based on the resource usage data of the computing power center, and the obtained multiple proportion data can be used as the second resource proportion data set corresponding to the computing power center; the resource proportion data in the first resource proportion data set are calculated, and the corresponding resource proportion data in the second resource proportion data set are respectively multiplied and summed to obtain the target resource proportion data of the computing power center relative to the corresponding resource package instance.

[0063] S230: Determine predicted resource demand quantities corresponding to at least one resource package instance based on a preset demand quantity calculation strategy.

[0064] Among them, the preset demand calculation strategy includes but is not limited to the average value calculation strategy and the maximum value calculation strategy. It should be noted that the corresponding calculation strategy can also be set according to the actual demand. For example, the function model that can characterize the corresponding resource usage change trend can be determined based on the historical resource usage data of the computing power center, and the required resource quantity can be predicted based on the determined function model of the computing power center. The corresponding executable program can be developed in advance according to different calculation strategies. When the predicted resource demand is determined, the corresponding executable program can be called according to the preset demand calculation strategy.

[0065] Specifically, the corresponding executable program is called according to the preset demand calculation strategy to calculate the predicted resource demand corresponding to each resource package instance.

[0066] Optionally, the preset demand calculation strategy includes an average value calculation strategy; determining the predicted resource demand of at least one resource package instance based on the preset demand calculation strategy includes: when the preset demand calculation strategy is the average value calculation strategy, obtaining the total amount of available resources and the corresponding effective usage time data of at least one resource package instance, calculating the quotient of the total amount of available resources of at least one resource package instance and the corresponding effective usage time data, and determining the quotient value corresponding to at least one resource package instance; determining the predicted resource demand of the corresponding resource package instance based on the quotient value corresponding to at least one resource package instance and the first fluctuation coefficient.

[0067] Specifically, when the preset demand calculation strategy is the average value calculation strategy, the total amount of available resources and the effective use time of each resource package instance can be read from the target storage space. It should be noted that the effective use time here is the remaining effective time. The quotient of the total amount of available resources of each resource package instance and the corresponding effective use time data is calculated to obtain the average resource demand corresponding to each resource package instance. Considering that there are certain fluctuations in resource demand in different time periods, the average resource demand obtained can be adjusted by setting the first fluctuation coefficient, and the product of the quotient corresponding to each resource package instance and the first fluctuation coefficient is calculated, and the product result is used as the resource demand corresponding to each resource package instance. It should be noted that the first fluctuation coefficient corresponding to different computing power centers can be the same or different, and is specifically set according to the changing trend of resource scheduling of the corresponding computing power center.

[0068] Optionally, the preset demand calculation strategy includes a maximum calculation strategy; determining the resource demand of at least one resource package instance based on the preset demand calculation strategy includes: when the preset demand calculation strategy is the maximum calculation strategy, obtaining the historical resource consumption of at least one resource package instance, and determining the historical maximum resource consumption of each resource package instance in at least one resource package instance based on the historical resource consumption; determining the predicted resource demand of the corresponding resource package instance based on the historical maximum resource consumption and the second fluctuation coefficient corresponding to the at least one resource package instance.

[0069] Specifically, when the preset demand calculation strategy is the maximum value calculation strategy, the historical resource consumption of at least one resource package instance is obtained, the maximum value of the historical resource consumption corresponding to each resource package instance is selected, and the product of the maximum value of the historical resource consumption of each resource package instance and the second fluctuation coefficient is calculated to obtain the resource demand corresponding to each resource package instance. It should be noted that the second fluctuation coefficients corresponding to different computing power centers can be the same or different, and are specifically set according to the change trend of the resource scheduling of the corresponding computing power center.

[0070] S240. Determine the amount of resources to be consumed by the computing power center called by at least one resource package instance based on the predicted resource demand and the corresponding target resource proportion data corresponding to at least one resource package instance.

[0071] Specifically, the predicted resource demand and the corresponding target resource ratio data of each resource package instance are multiplied and summed, and the sum result is used as the amount of resources to be consumed by the computing center called by at least one resource package instance. Exemplarily, the specific calculation formula for the amount of resources to be consumed R(k) is as follows:

[0072]

[0073] Wherein, CO(i) is the predicted resource demand of the i-th resource package instance, p1(i,j) is the ratio of the resource consumption of the application to the resource consumption of the corresponding resource package instance, i.e., the second resource ratio data, p2(j,k) is the ratio of the amount of resources called by the application to the resource consumption of at least one corresponding application, i.e., the first resource ratio data, i is the serial number of the resource package instance, with a value range of 1≤i≤n, n is the number of resource package instances, j is the serial number of the application, with a value range of 1≤j≤m, j is the number of applications in the resource package instance, and k is the serial number of the computing center.

[0074] Correspondingly, the specific calculation formula of the amount of resources to be consumed R(k) can also be expressed as:

[0075]

[0076] Among them, p(i,k) is the target resource ratio of the computing center relative to the resource package instance.

[0077] S250, when it is detected that the available resources of the computing power center do not meet the amount of resources to be consumed, determining the amount of resources to be recharged corresponding to the computing power center based on the amount of resources to be consumed;

[0078] S260. Execute a recharge operation for the computing power center based on the amount of resources to be recharged.

[0079] The technical solution of this embodiment is as follows: for any computing power center, the resource usage data of the computing power center within a preset historical time period is obtained; for each resource package instance, the target resource share data of the computing power center relative to the resource package instance is determined based on the resource usage data of the computing power center, wherein the target resource share data is the share data of the resources allocated by the computing power center to the resource package instance relative to the resource consumption of the corresponding resource package instance; based on a preset demand calculation strategy, the predicted resource demand corresponding to at least one resource package instance is determined; based on the predicted resource demand corresponding to at least one resource package instance and the corresponding target resource share data, the amount of resources to be consumed by the computing power center called by at least one resource package instance is determined; when it is detected that the available resources of the computing power center do not meet the amount of resources to be consumed, the amount of resources to be recharged corresponding to the computing power center is determined based on the amount of resources to be consumed; and a recharge operation is performed for the computing power center based on the amount of resources to be recharged. This solution realizes the dynamic prediction of the amount of resources to be consumed in each computing center in the computing resource pool and the dynamic adjustment of the resource reserves of each computing center. On the basis of ensuring that the reserves of each computing center can meet the resource requirements of multiple resource package instances, it also avoids the problem of resource waste caused by excessive reserves of the computing center, improves the management efficiency of the resources of each computing center in the computing resource pool, and effectively reduces the problem of task processing failure due to insufficient resources of the computing center.

[0080] Embodiment 3

[0081] Figure 3 Schematic diagram of the structure of a computing resource pool resource management device provided by Embodiment 3 of the present invention. Figure 3 As shown, the device comprises:

[0082] The module 310 for determining the amount of resources to be consumed is used to determine, for any computing power center, the amount of resources to be consumed by the computing power center called by at least one resource package instance, wherein any resource package instance in the at least one resource package instance includes at least one application program, and the computing power center allocates resources to at least one application program in the at least one resource package instance;

[0083] The module 320 for determining the amount of resources to be recharged is used to determine the amount of resources to be recharged corresponding to the computing power center based on the amount of resources to be consumed when it is detected that the amount of available resources of the computing power center does not meet the amount of resources to be consumed;

[0084] The recharge operation execution module 330 is used to perform a recharge operation for the computing power center based on the amount of resources to be recharged.

[0085] The technical solution of this embodiment is to determine the amount of resources to be consumed by the computing center called by at least one resource package instance for any computing center through the module for determining the amount of resources to be consumed, wherein any resource package instance in at least one resource package instance includes at least one application, and the computing center allocates resources to at least one application in at least one resource package instance; the module for determining the amount of resources to be recharged determines the amount of resources to be recharged corresponding to the computing center based on the amount of resources to be consumed when detecting that the available amount of resources in the computing center does not meet the amount of resources to be consumed; the recharge operation execution module performs a recharge operation for the computing center based on the amount of resources to be recharged. This solution realizes the dynamic prediction of the amount of resources to be consumed of each computing center in the computing resource pool and the dynamic adjustment of the resource reserve of each computing center, so that on the basis of ensuring that the reserve of each computing center can meet the resource demand of multiple resource package instances, it also avoids the problem of resource waste caused by excessive reserve of the computing center, improves the management efficiency of resources of each computing center in the computing resource pool, and effectively reduces the problem of task processing failure caused by insufficient resources of the computing center.

[0086] On the basis of the above embodiment, optionally, the module 310 for determining the amount of resources to be consumed includes: a resource usage data acquisition unit, a target resource proportion data determination unit, a predicted resource demand determination unit and a unit for determining the amount of resources to be consumed.

[0087] The resource usage data acquisition unit is used to acquire the resource usage data of the computing power center within a preset historical time period. The target resource ratio data determination unit is used to determine the target resource ratio data of the computing power center relative to the resource package instance for each resource package instance based on the resource usage data of the computing power center, wherein the target resource ratio data is the ratio data of the resource amount allocated by the computing power center to the resource package instance relative to the resource consumption amount of the corresponding resource package instance; the predicted resource demand determination unit is used to determine the predicted resource demand amount corresponding to at least one resource package instance based on the preset demand calculation strategy; the to-be-consumed resource quantity determination unit is used to determine the to-be-consumed resource amount of the computing power center called by at least one resource package instance based on the predicted resource demand amount corresponding to at least one resource package instance and the corresponding target resource ratio data. The target resource proportion data determination unit is specifically used to determine the first resource proportion data set and the second resource proportion data set corresponding to the computing power center based on the resource usage data of the computing power center, wherein the first resource proportion data set includes the proportion data of the amount of resources called by at least one application in the resource package instance relative to the resource consumption of the corresponding at least one application, and the second resource proportion data set includes the proportion data of the resource consumption of at least one application in the resource package instance relative to the resource consumption of the corresponding resource package instance; the target resource proportion data of the corresponding resource package instance is determined based on the first resource proportion data set and the second resource proportion data set. The preset demand calculation strategy includes the average value calculation strategy; the predicted resource demand determination unit is specifically used to obtain the total amount of available resources and the corresponding effective use time data of at least one resource package instance when the preset demand calculation strategy is the average value calculation strategy, calculate the quotient of the total amount of available resources of at least one resource package instance and the corresponding effective use time data, and determine the quotient value corresponding to at least one resource package instance; determine the predicted resource demand of the corresponding resource package instance based on the quotient value corresponding to at least one resource package instance and the first fluctuation coefficient. The preset demand calculation strategy includes a maximum calculation strategy; a predicted resource demand determination unit is specifically used to obtain the historical resource consumption of at least one resource package instance when the preset demand calculation strategy is the maximum calculation strategy, and determine the historical maximum resource consumption of each resource package instance in at least one resource package instance based on the historical resource consumption; determine the predicted resource demand of the corresponding resource package instance based on the historical maximum resource consumption and the second fluctuation coefficient corresponding to at least one resource package instance.

[0088] Optionally, the module 320 for determining the amount of resources to be recharged is specifically used to determine the amount of resources to be recharged corresponding to the computing power center based on the amount of resources to be consumed and the third fluctuation coefficient.

[0089] Optionally, the recharge operation execution module 330 is specifically used to generate a resource recharge request based on the amount of resources to be recharged, and send the resource recharge request to the computing power center so that the computing power center recharges according to the resource recharge request; receive feedback information sent by the computing power center, and update the available resource amount of the computing power center in the target storage space according to the feedback information.

[0090] The computing power resource pool resource management device provided in the embodiment of the present invention can execute the computing power resource pool resource management method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0091] Embodiment 4

[0092] Figure 4 1 is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0093] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0094] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0095] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a computing resource pool resource management method.

[0096] In some embodiments, the computing power resource pool resource management method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the computing power resource pool resource management method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the computing power resource pool resource management method in any other appropriate manner (e.g., by means of firmware).

[0097] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0098] The computer program for implementing the computing resource pool resource management method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, partially on the machine as an independent software package and partially on a remote machine, or completely on a remote machine or server.

[0099] Embodiment 5

[0100] Embodiment 5 of the present invention further provides a computer-readable storage medium, the computer-readable storage medium storing computer instructions, the computer instructions being used to cause a processor to execute a computing resource pool resource management method, the method comprising:

[0101] For any computing power center, determine the amount of resources to be consumed by the computing power center called by at least one resource package instance, wherein any resource package instance in the at least one resource package instance includes at least one application, and the computing power center allocates resources to at least one application in the at least one resource package instance;

[0102] When it is detected that the available resources of the computing power center do not meet the amount of resources to be consumed, the amount of resources to be recharged corresponding to the computing power center is determined based on the amount of resources to be consumed;

[0103] Execute recharge operations for the computing power center based on the amount of resources to be recharged.

[0104] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0105] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0106] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0107] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0108] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0109] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A computing resource pool resource management method, characterized in that: The computing resource pool includes multiple computing centers, including: For any of the computing power centers, determining the amount of resources to be consumed by the computing power center called by at least one resource package instance, wherein any of the at least one resource package instance includes at least one application, and the computing power center allocates resources to at least one application in the at least one resource package instance; When it is detected that the available resources of the computing power center do not meet the amount of resources to be consumed, determining the amount of resources to be recharged corresponding to the computing power center based on the amount of resources to be consumed; A recharge operation is performed for the computing power center based on the amount of resources to be recharged.

2. The method according to claim 1, characterized in that The determining the amount of resources to be consumed by the computing power center called by at least one resource package instance includes: Obtain resource usage data of the computing power center within a preset historical time period; For each resource package instance, determine the target resource share data of the computing power center relative to the resource package instance based on the resource usage data of the computing power center, wherein the target resource share data is the share data of the resources allocated by the computing power center to the resource package instance relative to the resource consumption of the corresponding resource package instance; Determine the predicted resource demand corresponding to each of the at least one resource package instance based on a preset demand calculation strategy; The amount of resources to be consumed by the computing power center called by at least one resource package instance is determined based on the predicted resource demand and the corresponding target resource proportion data respectively corresponding to the at least one resource package instance.

3. The method according to claim 2, characterized in that The determining, based on the resource usage data of the computing power center, target resource proportion data of the computing power center relative to the resource package instance includes: Determine a first resource proportion data set and a second resource proportion data set corresponding to the computing power center based on the resource usage data of the computing power center, wherein the first resource proportion data set includes the proportion data of the amount of resources called by at least one application in the resource package instance relative to the resource consumption of the corresponding at least one application, and the second resource proportion data set includes the proportion data of the resource consumption of at least one application in the resource package instance relative to the resource consumption of the corresponding resource package instance; The target resource proportion data of the corresponding resource package instance is determined based on the first resource proportion data set and the second resource proportion data set.

4. The method according to claim 2, characterized in that: The preset demand calculation strategy includes an average value calculation strategy; The determining the predicted resource demand of the at least one resource package instance based on a preset demand calculation strategy includes: In the case where the preset demand quantity calculation strategy is the average value calculation strategy, obtaining the total amount of available resources and the corresponding effective use time data of the at least one resource package instance, calculating the quotient of the total amount of available resources of the at least one resource package instance and the corresponding effective use time data, and determining the quotient values ​​corresponding to the at least one resource package instance; The predicted resource demand of the corresponding resource package instance is determined based on the quotient value and the first fluctuation coefficient respectively corresponding to the at least one resource package instance.

5. The method according to claim 2, characterized in that: The preset demand quantity calculation strategy includes a maximum value calculation strategy; The determining the resource demand of the at least one resource package instance based on a preset demand calculation strategy includes: When the preset demand calculation strategy is the maximum value calculation strategy, obtaining the historical resource consumption of the at least one resource package instance, and determining the historical maximum resource consumption of each resource package instance in the at least one resource package instance based on the historical resource consumption; The predicted resource demand of the corresponding resource package instance is determined based on the historical maximum resource consumption and the second fluctuation coefficient respectively corresponding to the at least one resource package instance.

6. The method according to claim 1, characterized in that The determining the amount of resources to be recharged corresponding to the computing power center based on the amount of resources to be consumed includes: The amount of resources to be recharged corresponding to the computing power center is determined based on the amount of resources to be consumed and the third fluctuation coefficient.

7. The method according to claim 1, characterized in that The performing a recharging operation for the computing power center based on the amount of resources to be recharged includes: Generate a resource recharge request based on the amount of resources to be recharged, and send the resource recharge request to the computing power center, so that the computing power center recharges according to the resource recharge request; Receive feedback information sent by the computing power center, and update the available resources of the computing power center in the target storage space according to the feedback information.

8. A computing resource pool resource management device, characterized in that: include: A module for determining the amount of resources to be consumed, for any computing power center, is used to determine the amount of resources to be consumed by the computing power center called by at least one resource package instance, wherein any resource package instance of the at least one resource package instance includes at least one application, and the computing power center allocates resources to at least one application in the at least one resource package instance; A module for determining the amount of resources to be recharged, configured to determine the amount of resources to be recharged corresponding to the computing power center based on the amount of resources to be consumed when it is detected that the amount of available resources of the computing power center does not meet the amount of resources to be consumed; A recharge operation execution module is used to perform a recharge operation for the computing power center based on the amount of resources to be recharged.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the computing power resource pool resource management method described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the computing resource pool resource management method described in any one of claims 1-7 when executed.

Citation Information

Cited By

  • Computing system, computing power distribution method, electronic device, and readable storage medium

    CN120256133A