A method and device for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment
By obtaining performance indicators and resource quotas in a heterogeneous multi-cloud resource pool environment, using analysis and prediction models to calculate usage and generate recommendations, it solves the problem that existing technology cannot count resource usage and eliminate cloud resource over-allocation, and achieves resource allocation. Efficient utilization and reduction of waste.
Patent Information
- Application Number
- CN202410423497.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-09
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-04-09
AI Technical Summary
Existing resource pool operation and maintenance management methods cannot count resource usage and cannot detect and eliminate cloud resource over-allocation, resulting in resource waste.
By obtaining performance indicator data and resource quotas of resource usage status in a heterogeneous multi-cloud resource pool environment, using analysis and prediction models to calculate the utilization rate of resource pools and user-occupied resources, generate optimization suggestions and allocation suggestions, adjust resource usage in a timely manner, and eliminate Overallocated.
It realizes the monitoring and optimization of resource usage, timely detects and eliminates cloud resource over-allocation, improves the operating efficiency of multi-cloud resource pools, and avoids resource waste.
Smart Images

Figure CN118445061B
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud computing technology, and in particular to a method and device for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment. Background Art
[0002] With the development of new technologies such as cloud computing, big data, 5G and artificial intelligence, enterprises are being driven towards digitalization and intelligence, and cloud migration has become an inevitable trend. Cloud migration refers to the process of migrating an enterprise's business, applications, data, etc. to a cloud computing platform for management and operation. Specifically, enterprises can use the cloud resources provided by cloud computing service providers to migrate traditional local data centers or servers to a cloud environment.
[0003] When enterprises apply for cloud resources from cloud computing service providers as a business direction, they generally choose to apply for as many cloud resources as possible for ease of use. This behavior leads to low overall resource utilization, which in turn leads to resource waste, a phenomenon usually referred to as over-allocation of cloud resources. Therefore, in order to avoid resource waste, it is necessary to promptly discover and eliminate over-allocation of cloud resources during the operation and maintenance management of cloud resource pools.
[0004] However, the existing resource pool operation and maintenance management process only includes statistical steps on resource pool allocation, and does not focus on the actual use of resources. It is impossible to count resource utilization rates, detect over-allocation of resources, or remind business parties or operation and maintenance parties to make timely adjustments to cloud resources, and it is impossible to discover and eliminate over-allocation of cloud resources. Summary of the invention
[0005] The embodiments of the present application provide a method and device for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment to solve the problem that traditional management methods cannot count resource utilization rates and cannot detect resource over-allocation.
[0006] In a first aspect, an embodiment of the present application provides a method for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment, wherein the multi-cloud resource pool includes multiple cloud platforms, and the cloud platform includes at least one resource pool; the method includes: obtaining the resource usage status of the resource pool at a first preset frequency; wherein the resource usage status includes performance indicator data of the resource pool hardware resources in the resource pool, and the resource quota of the user-occupied resources applied for by the user terminal from the resource pool; the performance indicator data includes CPU utilization, memory utilization and / or storage utilization, and the resource quota is used to indicate the quantity limit of the user-occupied resources; based on the performance indicator data and / or the resource quota, a first usage rate of the resource pool hardware resources is calculated using an analysis and prediction model configured by the user, and a second usage rate of the user-occupied hardware resources in the user-occupied resources is calculated by the user terminal, and the user-occupied hardware resources belong to the resource pool hardware resources; based on the performance indicator data and / or the resource quota within the first preset period, a usage optimization suggestion for the user-occupied resources is generated, and an allocation suggestion for the resource pool is generated; the first usage rate, the second usage rate, the usage optimization suggestion and / or the allocation suggestion are sent to the user terminal and the multi-cloud resource pool.
[0007] In an achievable manner, before the step of obtaining the resource usage status of the resource pool at a first preset frequency, the method further includes: when a user terminal applies for user-occupied resources from the resource pool, dividing the user-occupied resources into fixed resources and dynamic resources; wherein the fixed resources include at least one fixed virtual machine and fixed hardware resources, and the fixed hardware resources are allocated to each fixed virtual machine so that the fixed virtual machine uses the fixed hardware resources to process tasks; the dynamic resources include at least one dynamic virtual machine and dynamic hardware resources, and the fixed hardware resources and the dynamic hardware resources together constitute the user-occupied hardware resources; after the step of calculating the first usage rate of the resource pool hardware resources based on performance indicator data and / or resource quotas using a user-configured analysis and prediction model, the method further includes: running the dynamic virtual machine so that the dynamic virtual machine uses the dynamic hardware resources to process the pending tasks of each fixed virtual machine in turn.
[0008] In one achievable method, the step of running a dynamic virtual machine includes: for each fixed virtual machine, based on performance indicator data and / or resource quota, using an analysis and prediction model to calculate the third usage rate of the fixed hardware resources occupied by it; based on the third usage rate within a second preset period, calculating the average usage rate; based on the average usage rate within the third preset period, drawing a usage change curve, the third preset period including multiple second preset periods; using at least one usage change curve corresponding to the third preset period to determine the peak period of the fixed virtual machine using the fixed hardware resources; when the next peak period arrives, running the dynamic virtual machine, and stopping the dynamic virtual machine at the end of the next peak period.
[0009] In an achievable manner, the use of optimization suggestions includes a first suggestion and a second suggestion, wherein the first suggestion is to reduce the target hardware resources occupied by the target virtual machine or to increase tasks, wherein the target virtual machine is a fixed virtual machine or a dynamic virtual machine, and when the target virtual machine is a fixed virtual machine, the target hardware resources are fixed hardware resources, and when the target virtual machine is a dynamic virtual machine, the target hardware resources are dynamic hardware resources; the second suggestion is to increase the target hardware resources occupied by the target virtual machine or to migrate part of the tasks of the target virtual machine to other target virtual machines; based on the performance indicator data and / or resource quota within a first preset period, the steps of generating optimization suggestions for the use of user occupied resources include: when the target virtual machine is a fixed virtual machine, for each fixed virtual machine, determining whether the third usage rate within the first preset period is lower than the first preset threshold; when When the target virtual machine is a dynamic virtual machine, for each dynamic virtual machine, based on the performance indicator data and / or resource quota, the analysis and prediction model is used to calculate the fourth usage rate of the dynamic hardware resources occupied by it, and to determine whether the fourth usage rate within the first preset period is lower than the first preset threshold; if the third usage rate is lower than the first preset threshold, or if the fourth usage rate is lower than the first preset threshold, a first suggestion is generated; if the third usage rate is not lower than the first preset threshold, the first number of times the third usage rate exceeds the second preset threshold within the first preset period is calculated, and the second preset threshold is greater than the first preset threshold; or, if the fourth usage rate is not lower than the first preset threshold, the second number of times the fourth usage rate exceeds the second preset threshold within the first preset period is calculated; if the first number or the second number is greater than the third preset threshold, a second suggestion is generated.
[0010] In one achievable method, the use of optimization suggestions also includes a third suggestion, and the third suggestion is to increase the resource quota or decrease the resource quota; based on the performance indicator data and / or resource quota within the first preset period, the step of generating optimization suggestions for the use of user occupied resources includes: determining the peak value of the second usage rate within the first preset period; drawing a peak curve based on the peak values corresponding to multiple first preset periods; based on the peak curve, determining whether the peak values are all within the first preset range; and generating a third suggestion when the peak values are not all within the first preset range.
[0011] In one feasible method, the use of optimization suggestions also includes a fourth suggestion, and the fourth suggestion is to release target resources to the resource pool, where the target resources are unused resources among the user-occupied resources; based on the performance indicator data and / or resource quota within the first preset period, the step of generating optimization suggestions for the use of user-occupied resources also includes: screening the user-occupied resources, and determining whether there are target resources within the first preset period; if the target resources exist within the first preset period, generating the fourth suggestion.
[0012] In one achievable method, after the step of obtaining the resource usage status of the resource pool at a first preset frequency, it also includes: based on the performance indicator data and / or resource quota within the first preset period, using the analysis and prediction model to determine the target time when the second usage rate exceeds the first preset threshold, the target time is later than the current time; and sending the target time to the user end and the multi-cloud resource pool.
[0013] In one achievable method, the resource pool includes at least one host machine, each host machine is used to provide hardware resources of the resource pool; after the step of obtaining the resource usage status of the resource pool at a first preset frequency, it also includes: based on performance indicator data and / or resource quota, using an analysis and prediction model to calculate the fifth usage rate of the resource pool hardware resources provided by each host machine; and sending the fifth usage rate to the user end and the multi-cloud resource pool.
[0014] In one achievable method, the allocation suggestions include a fifth suggestion and a sixth suggestion. The fifth suggestion is to allocate the newly created virtual machine to a target host machine, which is determined from at least one host machine based on performance indicator data and / or resource quotas; the sixth suggestion is to allocate the user's new resource application request to a target cloud platform, which is determined from multiple cloud platforms based on performance indicator data and / or resource quotas.
[0015] In a second aspect, an embodiment of the present application further provides a device for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment, wherein the multi-cloud resource pool includes multiple cloud platforms, and the cloud platform includes at least one resource pool; the device includes: an acquisition module, which is used to obtain the resource usage status of the resource pool at a first preset frequency; wherein the resource usage status includes performance indicator data of the resource pool hardware resources in the resource pool, and the resource quota of the user-occupied resources applied by the user terminal from the resource pool; the performance indicator data includes CPU utilization, memory utilization and / or storage utilization, and the resource quota is used to indicate the quantity limit of the user-occupied resources; an analysis and calculation module, which is used to calculate the first utilization rate of the resource pool hardware resources based on the performance indicator data and / or resource quota, and calculate the second utilization rate of the user-occupied hardware resources in the user-occupied resources by the user terminal, and the user-occupied hardware resources belong to the resource pool hardware resources; a suggestion generation module, which is used to generate a usage optimization suggestion for the user-occupied resources based on the performance indicator data and / or resource quota within the first preset period, and generate an allocation suggestion for the resource pool; a sending module, which is used to send the first utilization rate, the second utilization rate, the usage optimization suggestion and / or the allocation suggestion to the user terminal and the multi-cloud resource pool.
[0016] From the above content, it can be seen that the embodiment of the present application provides a method and device for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment, the method comprising: obtaining the resource usage status of the resource pool at a first preset frequency; wherein the resource usage status includes performance indicator data and resource quota; based on the performance indicator data and / or resource quota, using the analysis and prediction model configured by the user to calculate the first usage rate of the hardware resources of the resource pool, and calculating the second usage rate of the hardware resources occupied by the user at the user end; based on the performance indicator data and / or resource quota within the first preset period, generating optimization suggestions for the use of the resources occupied by the user, and generating allocation suggestions for the resource pool; sending the first usage rate, the second usage rate, the usage optimization suggestions and / or the allocation suggestions to the user end and the multi-cloud resource pool. In this way, not only can the resource usage rate be known, but also the operating status of the multi-cloud resource pool can be adjusted based on the suggestions, timely discovering and eliminating over-allocation of cloud resources, and optimizing the operating effect of the multi-cloud resource pool. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of the structure of a multi-cloud resource pool provided in an embodiment of the present application;
[0018] Figure 2 A flowchart of a method for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment provided in an embodiment of the present application;
[0019] Figure 3 A schematic diagram of a user terminal applying for resources from a resource pool provided in an embodiment of the present application;
[0020] Figure 4 A schematic diagram of a process for running a dynamic virtual machine provided in an embodiment of the present application;
[0021] Figure 5 A schematic diagram of a usage rate change curve provided in an embodiment of the present application;
[0022] Figure 6 A schematic diagram of a first process for generating optimization suggestions provided in an embodiment of the present application;
[0023] Figure 7 A second flow chart of generating optimization suggestions provided in an embodiment of the present application;
[0024] Figure 8 A schematic diagram of the structure of an apparatus for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment provided in an embodiment of the present application.
[0025] Among them, 100-multi-cloud resource pool; 101-cloud platform; 1011, 1011a-resource pool; 1012, 1012a, 1012b, 1012c-host machine; 1013, 1013a, 1013b, 1013c, 1013d-virtual machine; 10131, 10131a, 10131b-fixed virtual machine; 10132-dynamic virtual machine; 1001-acquisition module; 1002-analysis and calculation module; 1003-suggestion generation module; 1004-sending module. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application.
[0027] Multi-Cloud Resource Pool, also known as heterogeneous resource pool, refers to the integration of resources from multiple cloud service providers to form a unified resource pool for users to manage and use. Users can obtain cloud resources in the multi-cloud resource pool (cloud platform) and run businesses based on cloud resources. In general cloud computing scenarios, applications are usually deployed in the environment of a single cloud service provider (operator). The multi-cloud resource pool can integrate and manage resources across cloud service providers, allowing users to choose the resources that best suit their needs from different cloud service providers. In this way, users can choose the best resources based on specific application requirements. In addition, when a cloud service fails or has performance issues, the business can be seamlessly migrated and expanded to other cloud services to ensure the continuity and stability of the application.
[0028] The resources provided by the resource pool to users are also called cloud resources, which specifically refer to various computing, storage, and network resources provided to users. Users can order, configure, and use cloud resources through the cloud service provider's platform without having to build and maintain physical infrastructure themselves.
[0029] Cloud resources mainly include the following aspects:
[0030] 1. Virtual Machines: A virtual machine is an independent computer system simulated on a physical server. Users can install and run operating systems and applications on the virtual machine.
[0031] 2. Storage: Cloud storage provides scalable storage space. Users can store data in the cloud and access it anytime and anywhere. Common cloud storage services include object storage, file storage, and block storage.
[0032] 3. Database: Cloud database is a database service managed and deployed in the cloud. Users can access and operate the database through the cloud platform.
[0033] 4. Network: Cloud network provides the creation and management functions of virtual networks. Users can customize network topology, set security rules, configure load balancing, etc. to meet the network requirements of applications.
[0034] 5. Serverless Computing: Serverless computing is a computing model that does not require attention to the underlying server. Users only need to write function code and automatically manage and run it through the cloud platform to achieve on-demand computing and elastic expansion.
[0035] 6. Container: Cloud containers provide technology for packaging applications into independent and lightweight containers, enabling applications to have consistent operating capabilities in different environments.
[0036] In the embodiment of the present application, cloud resources may also include CPU and memory, etc., which will not be elaborated here.
[0037] With the development of new technologies such as cloud computing, big data, 5G and artificial intelligence, enterprises are being driven towards digitalization and intelligence, and cloud migration has become an inevitable trend. Cloud migration refers to the process of migrating an enterprise's business, applications, data, etc. to a cloud computing platform for management and operation. Specifically, enterprises can use the cloud resources provided by cloud computing service providers to migrate traditional local data centers or servers to a cloud environment.
[0038] When enterprises apply for cloud resources from cloud computing service providers as a business direction, they generally choose to apply for as many cloud resources as possible for ease of use. This behavior leads to low overall resource utilization, which in turn leads to resource waste, a phenomenon usually referred to as over-allocation of cloud resources. Therefore, in order to avoid resource waste, it is necessary to promptly discover and eliminate over-allocation of cloud resources during the operation and maintenance management of cloud resource pools.
[0039] Applying for as many cloud resources as possible specifically occurs in the following scenarios. After applying for resources, if there is a shortage of resources, even if you apply for new resources from the cloud platform, you cannot integrate the new resources into the existing resources to use the new resources to process tasks. In other words, you cannot make secondary adjustments to the existing resources. Even if you can make secondary adjustments, you need to restart the entire business system so that the virtual machine can gather new hardware resources and start running again. Therefore, in this scenario, in order to avoid insufficient resources, the business party often chooses to apply for as many cloud resources as possible, resulting in a waste of resources. It can be seen that this scenario exacerbates the occurrence of over-allocation of cloud resources.
[0040] However, the existing resource pool operation and maintenance management process only includes statistical steps on resource pool allocation, and does not focus on the actual use of resources. It is impossible to count resource utilization rates, detect over-allocation of resources, or remind business parties or operation and maintenance parties to make timely adjustments to cloud resources, and it is impossible to discover and eliminate over-allocation of cloud resources.
[0041] In addition, since the existing resource pool operation and maintenance management process is unable to count resource utilization rates, the business side has no means to track and evaluate the use of cloud resources. The business side cannot obtain the specific usage of the cloud resources under its name, cannot reasonably use resources, and cannot promptly discover problems of insufficient resource utilization, which easily leads to resource waste.
[0042] It is also important to know that cloud resources are run in the computer room of the cloud computing service provider, which provides the necessary network, power and hardware facilities to support the operation and management of resources. For example, the computer room includes facilities such as air conditioners, uninterruptible power supplies (UPS) and distribution cabinets. Since the business party has applied for a lot of cloud resources, the equipment in the computer room is in a high-load operation state, with high power consumption and serious waste. In addition, due to the lack of management means, it is difficult to monitor the actual power consumption of the computer room, and the waste problem cannot be solved.
[0043] Figure 1 A schematic diagram of the structure of a multi-cloud resource pool provided in an embodiment of the present application.
[0044] Figure 2 A flowchart of a method for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment provided in an embodiment of the present application.
[0045] like Figure 1 and Figure 2 As shown, the method for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment provided in an embodiment of the present application can be applied to a multi-cloud resource pool 100. The multi-cloud resource pool 100 may include multiple cloud platforms 101. The cloud platform 101 may include at least one resource pool 1011. Figure 1The multi-cloud resource pool 100 shown in FIG. 1 includes two cloud platforms 101 , and each cloud platform 101 includes two resource pools 1011 .
[0046] Furthermore, each resource pool 1011 may include m hosts 1012, which are also called physical servers, cloud servers, host servers or host systems, and are used to host and run multiple virtual machines 1013. The host 1012 can provide hardware computing resources such as processors (CPUs), memory and storage, and can also provide network connections. The virtual machines 1013 run independent operating systems and applications on the host 1012.
[0047] The method for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment provided in an embodiment of the present application may include the following steps S100-S400.
[0048] S100, obtaining the resource usage status of the resource pool 1011 at a first preset frequency; wherein the resource usage status includes performance indicator data of the resource pool hardware resources in the resource pool 1011, and the resource quota of the user occupied resources applied by the user end from the resource pool 1011, and the resource quota is used to indicate the quantity limit of the user occupied resources.
[0049] Resource pool 1011 is one of the multi-cloud resource pools 100, and resource pool hardware resources may refer to the sum of hardware resources that can be provided by all host machines 1012 in resource pool 1011. For example, resource pool 1011a includes host machines 1012a, 1012b, and 1012c, wherein host machine 1012a provides a quad-core processor, 32GB of memory, and 500GB of storage. Host machine 1012b provides an eight-core processor, 128GB of memory, and 500GB of storage. Host machine 1012c provides an eight-core processor, 128GB of memory, and 500GB of storage. Then, the resource pool hardware resources include a twenty-core processor, 288GB of memory, and 1500GB of storage.
[0050] The performance indicator data is a metric used to evaluate the performance level of the resource pool 1011 or the host machine 1012. The performance indicator data includes, for example, CPU utilization, memory utilization, and storage utilization, and may also include CPU idle rate, memory idle rate, or storage idle rate.
[0051] In the embodiment of the present application, the performance indicator data of the resource pool hardware resources may refer to the performance indicator data of each virtual machine 1013 in the resource pool 1011. The performance indicator data may be obtained from each virtual machine 1013. As shown in Table 1, the CPU utilization of virtual machine 1013a is 20%, the memory utilization is 87%, and the storage utilization is 4%. The CPU utilization of virtual machine 1013b is 7%, the memory utilization is 88%, and the storage utilization is 2%.
[0052] Table 1 Performance index data of resource pool hardware resources
[0053] Virtual Machine 1013a CPU 20% Memory 87% Storage (disk) 4% Virtual Machine 1013b CPU 7% Memory 88% Storage (disk) 2%
[0054] It is understandable that CPU utilization, memory utilization and storage utilization change in real time with the running status of virtual machine 1013.
[0055] In the embodiment of the present application, the first preset frequency is, for example, collecting data once every hour, or collecting data once every 2 hours, and the embodiment of the present application does not make any specific limitation on this.
[0056] The user end may be an enterprise that needs to apply for cloud resources, etc. It is understandable that there may be many user ends, which is determined by the actual situation.
[0057] The user occupied resources requested by the user end from the resource pool 1011 may include hardware resources such as CPU, memory and storage.
[0058] Resource quotas refer to certain restrictions set in order to limit the amount of cloud resources used by the user end. These restrictions can be restrictions in terms of time, quantity, capacity, etc. In the embodiment of the present application, resource quotas are, for example, the number of CPU cores, memory usage, and storage usage.
[0059] For example, the resource quota of user occupied resources applied by the user terminal from resource pool 1011 is a quad-core CPU, 2 GB memory, and 100 GB storage.
[0060] In the embodiment of the present application, the user occupied resources may also include virtual machine resources, for example, including virtual machine 1013a. The resource quota may also include the number of virtual machines. The inclusion of virtual machine 1013a in the user occupied resources indicates that the user terminal has applied for a virtual machine 1013 from the multi-cloud resource pool 100. In actual applications, a quad-core CPU, 2GB of memory, and 100GB of storage may be allocated to virtual machine 1013a for use. When the user terminal applies for two virtual machines 1013, the quad-core CPU, 2GB of memory, and 100GB of storage may be evenly divided between the two virtual machines 1013, or may be allocated by the user terminal itself, and the embodiment of the present application does not specifically limit this.
[0061] In some implementations, the user occupied resources may also include network resources, and the network resources include, for example, network configuration information such as the IP address, subnet mask, default gateway, and DNS server of the virtual machine 1013 .
[0062] S200, based on performance indicator data and / or resource quota, using the analysis and prediction model configured by the user, calculates the first usage rate of the hardware resources in the resource pool, and calculates the second usage rate of the user-occupied hardware resources in the user-occupied resources by the user end, and the user-occupied hardware resources belong to the hardware resources in the resource pool.
[0063] Among them, the steps based on performance indicator data and / or resource quotas can be executed based on the user's flexible configuration. The user can refer to the management end responsible for operating the multi-cloud resource pool, or it can refer to the user end that applies for and uses the multi-cloud resource pool resources. Exemplarily, the user can flexibly configure the performance indicator data, and specifically can choose one or more of the CPU utilization, memory utilization, and storage utilization for calculation. The user can also flexibly configure the resource quota, and specifically can choose one or more of the CPU cores, memory occupancy, and storage occupancy for calculation. In actual applications, users can make choices based on their needs for computing speed, computing accuracy, etc., and the embodiments of the present application do not specifically limit this.
[0064] In some implementations, the user may also choose to calculate only the first usage rate or only the second usage rate based on actual needs, which is not specifically limited in the embodiments of the present application.
[0065] In the embodiment of the present application, the user-occupied hardware resources may be hardware resources such as CPU, memory, and storage among the user-occupied resources requested by the user terminal from the multi-cloud resource pool 100.
[0066] The analysis and prediction model may include a usage analysis model and a cloud resource intelligent capacity prediction model, which may be a model formed based on an autoregressive integrated moving average model (ARIMA), a linear regression algorithm, a logarithmic regression algorithm, an exponential regression algorithm, a polynomial regression algorithm, and / or a long short-term memory (LSTM) algorithm, which is not specifically limited in the embodiments of the present application. The usage analysis model is used to calculate the first usage rate and the second usage rate.
[0067] The embodiment of the present application can provide users with a variety of algorithms to flexibly configure the analysis and prediction model. In specific implementations, each algorithm can have its applicable scenarios and advantages. For example, the ARIMA model is suitable for processing time series data, and can capture seasonality and trend in the data. The linear regression algorithm is suitable for exploring the linear relationship between independent variables and dependent variables. Exemplarily, if the historical data of the performance indicator data shows obvious seasonality and trend, then the user can choose to configure the analysis and prediction model based on the ARIMA model. In the embodiment of the present application, a hybrid model can also be constructed in combination with a variety of algorithms to improve the accuracy and stability of the prediction, and the embodiment of the present application does not specifically limit this.
[0068] The first utilization rate refers to the overall utilization rate of all resource pool hardware resources included in the resource pool 1011, and the second utilization rate refers to the utilization rate of the user-occupied hardware resources applied for by the user end.
[0069] Continue to see Figure 1 In the actual calculation process, the resource pool 1011a includes the host machine 1012a, the host machine 1012b and the host machine 1012c, the host machine 1012a includes the virtual machines 1013a and 1013b, the host machine 1012b includes the virtual machine 1013c, and the host machine 1012c includes the virtual machine 1013d. Then, the first usage rate and the second usage rate can be calculated based on the CPU utilization rate, memory utilization rate and storage utilization rate of the virtual machines 1013a, 1013b, 1013c and 1013d, and / or based on the resource quota applied by the user terminal corresponding to the resource pool 1011a.
[0070] In some implementations, when the cloud resources applied for by the same user terminal span multiple resource pools 1011 , the second usage rate can be calculated based on performance indicator data of different resource pools 1011 .
[0071] S300, based on the performance indicator data and / or resource quota within the first preset period, generate a usage optimization suggestion for the user's occupied resources, and generate an allocation suggestion for the resource pool 1011.
[0072] The optimization suggestion is used to indicate how to adjust the resources occupied by users, and the allocation suggestion is used to indicate how to allocate the resources in the resource pool 1011 .
[0073] In an embodiment of the present application, the use optimization suggestion may include a first suggestion, a second suggestion, a third suggestion, and a fourth suggestion, and the specific content of each use optimization suggestion will be described in detail below. The allocation suggestion may include a fifth suggestion and a sixth suggestion, and the fifth suggestion may be to allocate the newly created virtual machine 1013 to the target host, and the target host is determined from at least one host based on performance indicator data and / or resource quota. In the actual application process of the multi-cloud resource pool 100, when a new virtual machine 1013 needs to be created and run, the manager (operator or operator) can decide which host 1012 to attach the virtual machine 1013 to. The fifth suggestion may be determined based on the number of virtual machines 1013 attached to each host 1012. For example, the newly created virtual machine 1013 is allocated to the host 1012 with the least number of virtual machines 1013. At this time, the host 1012 with the least number of attached virtual machines 1013 is the target host.
[0074] The sixth suggestion may be to allocate the new resource application request of the user end to the target cloud platform, and the target cloud platform is determined from multiple cloud platforms based on performance indicator data and / or resource quotas. In the actual application process of the multi-cloud resource pool 100, when the user end applies to the multi-cloud resource pool 100 for user occupied resources, the administrator can decide which resource pool 1011 resources are allocated to the user end. The sixth suggestion may be generated based on the first utilization rate, performance indicator data and / or resource quota. For example, the administrator may allocate the first resource pool 1011 with the lowest utilization rate to the user end. At this time, the first resource pool 1011 with the lowest utilization rate is the target resource pool. In this way, the administrator can coordinate the management of all resource pools 1011 in the multi-cloud resource pool 100, and can realize resource adjustment between each resource pool 1011, which can improve the operation effect of the multi-cloud resource pool 100.
[0075] In the embodiment of the present application, the first preset period is, for example, one month, that is, a suggestion is calculated and generated once a month. It can be understood that the first preset period is greater than the time interval between two adjacent acquisitions of the resource usage status of the resource pool 1011. It can be seen that within the first preset period, the resource usage status can be obtained multiple times. Specifically, the number of times the resource usage status is obtained within the first preset period can be adjusted by setting the relationship between the duration of the first preset period and the value of the first preset frequency. The embodiment of the present application does not specifically limit this.
[0076] In some implementations, step S100 may also be referred to as a collection service or a cloud platform operation service, step S200 may also be referred to as a data processing service, and step S300 may also be referred to as an AI computing service.
[0077] S400 , sending the first usage rate, the second usage rate, the usage optimization suggestion and / or the allocation suggestion to the user terminal and the multi-cloud resource pool 100 .
[0078] Figure 1 exemplarily shows a method of feeding back a first usage rate and an allocation suggestion to a manager of the multi-cloud resource pool 100, and feeding back a second usage rate and a usage optimization suggestion to a user end.
[0079] In this way, the user end and the administrator of the multi-cloud resource pool 100 can know the actual usage of resources. In addition, the user end can adjust the resource usage process based on the usage allocation suggestion, and timely discover and eliminate the over-allocation of cloud resources. The administrator can allocate resources based on the allocation suggestion to avoid resource waste.
[0080] It should be noted that in steps S100-S400, the performance indicator data and resource quota can be specifically selected by the user end, and the performance indicator data is not limited to CPU utilization, memory utilization and storage utilization, and the resource quota is not limited to the number of CPU cores, memory occupancy and storage occupancy.
[0081] From the above content, it can be seen that an embodiment of the present application provides a method for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment, the method comprising obtaining the resource usage status of the resource pool at a first preset frequency; wherein the resource usage status includes performance indicator data of the resource pool hardware resources in the resource pool, and the resource quota of the user-occupied resources applied for by the user terminal from the resource pool; the performance indicator data includes CPU utilization, memory utilization and / or storage utilization, and the resource quota is used to indicate the quantity limit of the user-occupied resources; based on the performance indicator data and / or resource quota, a first usage rate of the resource pool hardware resources is calculated using an analysis and prediction model configured by the user, and a second usage rate of the user-occupied hardware resources in the user-occupied resources is calculated by the user terminal, and the user-occupied hardware resources belong to the resource pool hardware resources; based on the performance indicator data and / or resource quota within the first preset period, a usage optimization suggestion for the user-occupied resources is generated, and an allocation suggestion for the resource pool is generated; the first usage rate, the second usage rate, the usage optimization suggestion and / or the allocation suggestion are sent to the user terminal and the multi-cloud resource pool. In this way, not only can the utilization rate of resources be known, but the operating status of the multi-cloud resource pool can also be adjusted based on the suggestions, so as to timely discover and eliminate over-allocation of cloud resources and optimize the operating effect of the multi-cloud resource pool.
[0082] In the actual operation process, in order to avoid insufficient resources, the business party often chooses to apply for as many cloud resources as possible, resulting in resource waste. In order to solve this problem, the embodiment of the present application provides a method for dynamic resource allocation, in which a part of dynamic resources is provided, and the dynamic resources can be dynamically allocated to multiple virtual machines 1013 to meet the temporary expansion needs of multiple virtual machines 1013. In this way, high-performance operation can be achieved without configuring a large number of resources for each virtual machine 1013, which can solve the problem that the virtual machine 1013 occupies too many resources but the resource utilization rate is not high most of the time.
[0083] In the embodiment of the present application, before step S100, the following step S500 may also be included.
[0084] S500, when the user terminal applies for user occupied resources from the resource pool, the user occupied resources are divided into fixed resources and dynamic resources.
[0085] Figure 3 A schematic diagram of a user terminal applying for resources from a resource pool provided in an embodiment of the present application.
[0086] like Figure 3 As shown, fixed resources include at least one fixed virtual machine 10131 and fixed hardware resources, and fixed hardware resources are allocated to each fixed virtual machine 10131 so that the fixed virtual machine 10131 uses the fixed hardware resources to process tasks. Dynamic resources include at least one dynamic virtual machine 10132 and dynamic hardware resources. Fixed hardware resources and dynamic hardware resources together constitute user-occupied hardware resources.
[0087] The fixed hardware resources are allocated to each fixed virtual machine 10131 , which means that the fixed virtual machine 10131 runs based on the fixed hardware resources, and the task may be a task that the user terminal expects to run on the fixed virtual machine 10131 .
[0088] It can be understood that the step of dividing the resources occupied by users is applicable to the case where the user terminal applies for multiple virtual machines 1013.
[0089] Figure 3The distribution of resources when the user terminal applies for user occupied resources from the resource pool 1011 is exemplified. Exemplarily, the user occupied resources may include a fixed virtual machine 10131a, a fixed virtual machine 10131b, a dynamic virtual machine 10132, a six-core processor, a 64GB memory, and a 500GB storage. Fixed resources may include a fixed virtual machine 10131a, a fixed virtual machine 10131b, a quad-core processor, a 32GB memory, and a 300GB storage, wherein the quad-core processor, the 32GB memory, and the 300GB storage are fixed hardware resources. Dynamic resources may include a dynamic virtual machine 10132, a dual-core processor, a 32GB memory, and a 200GB storage, wherein the dual-core processor, the 32GB memory, and the 200GB storage are dynamic hardware resources.
[0090] In some implementations, fixed virtual machine 10131a may be allocated with a dual-core processor, 16 GB memory, and 200 GB storage, and fixed virtual machine 10131b may be allocated with a dual-core processor, 16 GB memory, and 100 GB storage. The specific allocation method may be determined by the user end.
[0091] Furthermore, after step S200, the method provided in the embodiment of the present application may also include step S600.
[0092] S600, running the dynamic virtual machine 10132, so that the dynamic virtual machine 10132 uses dynamic hardware resources to process the pending tasks of each fixed virtual machine 10131 in turn.
[0093] When there are too many pending tasks in the fixed virtual machine 10131, the dynamic virtual machine 10132 can be started to share the pending tasks of the fixed virtual machine 10131. Furthermore, the dynamic virtual machine 10132 and the dynamic hardware resources can process the tasks of each fixed virtual machine 10131 in turn as dynamic resources. In this way, only a small part of the dynamic resources need to be retained to meet the temporary expansion needs of multiple fixed virtual machines 10131, saving a lot of resources and improving the overall utilization rate of resources occupied by users. Users do not need to apply for too many cloud resources to avoid the problem of insufficient resources, which reduces the cost of cloud resources. More importantly, the fixed virtual machine 10131 does not need to be restarted, which can improve the user experience.
[0094] In some implementations, dynamic resources may not be formed by dividing the resources occupied by users. Instead, the user terminal may actively apply for the allocation of fixed resources or dynamic resources to the user terminal. This embodiment of the present application does not make any specific limitation on this.
[0095] Figure 4 A schematic diagram of a process for running a dynamic virtual machine provided in an embodiment of the present application.
[0096] like Figure 4 As shown, step S600 may include the following steps.
[0097] S601, for each fixed virtual machine 10131, based on performance indicator data and / or resource quota, use an analysis and prediction model to calculate a third usage rate of the fixed hardware resources occupied by the fixed virtual machine 10131.
[0098] In step S601, the third usage rate can be calculated by using an analytical model. For example, the usage rate of the fixed virtual machine 10131a for the dual-core processor, 16GB memory and 200GB storage is 20%, and the usage rate of the fixed virtual machine 10131b for the dual-core processor, 16GB memory and 100GB storage is 10%.
[0099] It should be noted that step S601 may be executed each time after obtaining performance indicator data and resource quota.
[0100] S602: Calculate an average usage rate based on the third usage rate in the second preset period.
[0101] The second preset period may be greater than the first preset period, and the second preset period is, for example, one day. The step of calculating the average usage rate based on the third usage rate may be: determining the maximum and minimum values of the third usage rate within the second preset period, and then calculating the average value of the maximum and minimum values to obtain the average usage rate.
[0102] In some implementations, the average value of all third usage rates may also be calculated as the average usage rate, which is not specifically limited in the embodiments of the present application.
[0103] S603, drawing a usage rate change curve based on the average usage rate in a third preset period, where the third preset period includes a plurality of second preset periods.
[0104] The third preset period is, for example, one month, and the specific length can be determined by the user terminal.
[0105] S604: Determine the peak period of the fixed virtual machine 10131 using the fixed hardware resources by using the usage rate variation curve corresponding to at least one third preset period.
[0106] In some implementations, some fixed virtual machines 10131 only have a high resource utilization rate during a specific period of time, such as when resource data is summarized at the end of the month, resource utilization is relatively high, and resource utilization is within a reasonable range at other times. Therefore, in the embodiment of the present application, when a fixed virtual machine 10131 temporarily needs to occupy a large amount of resources, the dynamic virtual machine 10132 and dynamic hardware resources can be used to process the pending tasks of the fixed virtual machine 10131 to achieve resource expansion. When the specific period of time ends, the expansion resources (dynamic virtual machine 10132 and dynamic hardware resources) are released, so that the expansion resources can be used to process the pending tasks of other fixed virtual machines 10131 that need temporary expansion.
[0107] Figure 5 A schematic diagram of a usage rate change curve provided in an embodiment of the present application.
[0108] Figure 5 The usage rate change curves include three corresponding third preset periods. Exemplarily, based on the usage rate change curves, it can be determined that the peak period of the user's use of hardware resources by the fixed virtual machine 10131a is from the 25th to the 30th of the month, that is, for the fixed virtual machine 10131a, the specific period with relatively high resource usage is from the 25th to the 30th.
[0109] S605, when the next peak period arrives, run the dynamic virtual machine 10132, and when the next peak period ends, stop running the dynamic virtual machine 10132.
[0110] Understandably, the peak period is between the 25th and 30th of the following month.
[0111] In this way, the dynamic virtual machine 10132 can process the pending tasks of the fixed virtual machine 10131 together with the fixed virtual machine 10131 when the peak period arrives. Furthermore, as the peak periods of different fixed virtual machines 10131 arrive, the dynamic virtual machine 10132 can process the pending tasks of each fixed virtual machine 10131 in turn, providing a flexible expansion and contraction mechanism that can not only improve the user experience, but also save resources.
[0112] In some implementations, dynamic resources can be shared by different clients, that is, different clients share a dynamic resource. In this way, the dynamic virtual machines 10132 in the dynamic resources can process different target tasks in turn based on the dynamic hardware resources, and different target tasks correspond to the fixed virtual machines 10131 of different clients.
[0113] The following is an exemplary introduction to the steps of generating and using optimization suggestions in conjunction with the accompanying drawings.
[0114] The optimization suggestions may include a first suggestion and a second suggestion. The first suggestion may be to reduce the target hardware resources occupied by the target virtual machine or to increase the tasks processed by the target virtual machine. The target virtual machine is a fixed virtual machine 10131 or a dynamic virtual machine 10132. When the target virtual machine is a fixed virtual machine 10131, the target hardware resources are fixed hardware resources, and when the target virtual machine is a dynamic virtual machine 10132, the target hardware resources are dynamic hardware resources. The second suggestion may be to increase the target hardware resources occupied by the target virtual machine or to migrate part of the tasks of the target virtual machine to other target virtual machines. In some implementations, when the target virtual machine is a fixed virtual machine, the aforementioned other target virtual machines may be fixed virtual machines, and when the target virtual machine is a dynamic virtual machine, the aforementioned other target virtual machines may be dynamic virtual machines. The embodiments of the present application do not specifically limit this.
[0115] Figure 6 A first flow chart of generating optimization suggestions provided in an embodiment of the present application.
[0116] like Figure 6 As shown, step S300 may include the following steps.
[0117] S301 , when the target virtual machine is a fixed virtual machine 10131 , for each fixed virtual machine 10131 , determine whether the third usage rate in a first preset period is lower than a first preset threshold.
[0118] The duration of the first preset period can be set by the user terminal. In practical applications, the first preset period can be equal to a complete service cycle, such as 1 month. The first preset threshold can be equal to 30%, which is not specifically limited in the embodiment of the present application.
[0119] S302, when the target virtual machine is the dynamic virtual machine 10132, for each dynamic virtual machine, based on the performance indicator data and / or resource quota, the fourth usage rate of the dynamic hardware resources occupied by it is calculated using the analysis and prediction model, and it is determined whether the fourth usage rate within the first preset period is lower than the first preset threshold.
[0120] Wherein, step S302 can be performed each time after obtaining performance indicator data and resource quota. The introduction of performance indicator data, resource quota and analysis prediction model can refer to the above content, which will not be repeated here.
[0121] S303: If the third usage rate is lower than the first preset threshold, or if the fourth usage rate is lower than the first preset threshold, generate a first suggestion.
[0122] Among them, the third usage rate in the first preset period is lower than the first preset threshold, indicating that the fixed virtual machine 10131 has an overall low usage rate of the fixed hardware resources it occupies, and should reduce the configuration or process more tasks to improve the usage rate. Correspondingly, the fourth usage rate in the first preset period is lower than the first preset threshold, indicating that the dynamic virtual machine 10132 has an overall low usage rate of the dynamic hardware resources it occupies, and should also reduce the configuration or process more tasks. Therefore, a first suggestion can be generated to enable the user end to make adjustments based on the first suggestion to avoid resource waste.
[0123] In actual applications, the first suggestion may carry the identification number of the target virtual machine, so that the user end or the administrator of the multi-cloud resource pool 100 should adjust which virtual machine.
[0124] S304, if the third usage rate is not lower than the first preset threshold, calculate the first number of times the second usage rate exceeds the second preset threshold within the first preset period, and the second preset threshold is greater than the first preset threshold. Alternatively, if the fourth usage rate is not lower than the first preset threshold, calculate the second number of times the fourth usage rate exceeds the second preset threshold within the first preset period.
[0125] If the third usage rate is not lower than the first preset threshold value in the first preset period, and the number of times it is higher than the second preset threshold value exceeds a certain number of times, then a suggestion to increase resource configuration can be generated, or a suggestion to migrate part of the business (service) to other fixed virtual machines 10131 can be generated, that is, a second suggestion. If the fourth usage rate is not lower than the first preset threshold value in the first preset period, and the number of times it is higher than the second preset threshold value exceeds a certain number of times, then a suggestion to increase resource configuration can be generated, or a suggestion to migrate part of the business (service) to other dynamic virtual machines 10132 can be generated.
[0126] Exemplarily, the second preset threshold may be equal to 70%, 80% or 90%, for example, which is not specifically limited in the embodiments of the present application.
[0127] S305: If the first number or the second number is greater than a third preset threshold, generate a second suggestion.
[0128] The third preset threshold may be 5, 10 or 15 times, which is not specifically limited in the present embodiment. In this way, the fixed virtual machine 10131 and the dynamic virtual machine 10132 can be ensured to run safely, and the problems of overheating and / or downtime of the host machine 1012 can be avoided.
[0129] In actual applications, the second suggestion may carry the identification number of the target virtual machine, so that the user end or the administrator of the multi-cloud resource pool 100 should adjust which virtual machine.
[0130] In the embodiment of the present application, the optimization suggestion may further include a third suggestion, and the third suggestion may be to increase the resource quota or to reduce the resource quota.
[0131] Figure 7 A second flow chart of generating optimization suggestions provided in an embodiment of the present application.
[0132] like Figure 7 As shown, step S300 may further include the following steps.
[0133] S306: Determine a peak value of the second usage rate within the first preset period.
[0134] It can be understood that the frequency of obtaining the resource usage status is the first preset frequency. Based on the relationship between the duration of the first preset period and the first preset frequency, it can be determined that the resource usage status will be collected N times within the first preset period, and N second usage rates can be calculated. The peak value of the second usage rate within the first preset period may refer to the maximum value of the N second usage rates. The specific value of N depends on the actual values of the first preset period and the first preset frequency. For example, the first preset period can be 1 month, and the first preset frequency can be 1 time / day, then N can be equal to 30. The embodiment of the present application does not make specific limitations on this.
[0135] S307: Draw a peak curve based on the peak values corresponding to the multiple first preset periods.
[0136] The number of the first preset periods can be determined based on actual conditions. For example, a peak curve is drawn based on peak values corresponding to three first preset periods, or a peak curve is drawn based on peak values corresponding to five first preset periods, which is not specifically limited in the present embodiment.
[0137] S308: Determine whether all peak values are within a first preset range based on the peak curve.
[0138] Exemplarily, the first preset range may be 60%-85%, 75%-85%, 80%-90%, 90%-95% or 90%-100%, which is not specifically limited in the embodiments of the present application.
[0139] S309: If the peak values are not all within the first preset range, generate a third suggestion.
[0140] In the embodiment of the present application, if a peak value is not within the first preset range, a third suggestion can be generated. The user terminal can adjust resource configuration or tasks based on the third suggestion, so that the second usage rate can be within a reasonable range.
[0141] In the embodiment of the present application, the optimization suggestion may further include a fourth suggestion, and the fourth suggestion may be to release the target resource to the resource pool, where the target resource is an unused resource among the resources occupied by the user.
[0142] Furthermore, step S300 may also include the following steps.
[0143] S310, screening user occupied resources, and determining whether there are target resources within a first preset period.
[0144] Among them, by screening, it can be found whether there are target resources in the resources occupied by the user, and the target resources are unused resources in the resources occupied by the user. If the user terminal does not use some resources within the first preset period, it can be indicated that the part of the resources is the target resource.
[0145] S311: If the target resource exists within the first preset period, generate a fourth suggestion.
[0146] In this way, the user can adjust the resource quota based on the fourth suggestion, which can save user-side costs, improve user-side resource utilization, and eliminate over-allocation of cloud resources.
[0147] In the embodiment of the present application, after step S100, the following steps S701-S702 may also be included.
[0148] S701, based on the performance indicator data and / or resource quota within the first preset period, using the analysis and prediction model to determine the target time when the second usage rate exceeds the first preset threshold, the target time is later than the current time.
[0149] Among them, the model for specifically predicting the target time may be an intelligent capacity prediction model, such as an ARIMA model. The user may flexibly select the algorithm adopted by the intelligent capacity prediction model based on actual needs, and the embodiment of the present application does not make any specific limitation on this.
[0150] In the embodiment of the present application, the first preset threshold can be set by the user end, for example, it can be equal to 95%. The period of the predicted target time can also be flexibly set by the user end, for example, the user end can set the timing of predicting the target time to predict the target time at the end of the Tth first preset period, and not predict the target time when the T+1th first preset period arrives, where T is a positive integer greater than or equal to 1.
[0151] In some implementations, step S701 can also be based on performance indicator data and / or resource quotas within M first preset periods, and use an analysis and prediction model to determine the target time when the second usage rate exceeds the first preset threshold, where M is a positive integer greater than or equal to 1. The specific value of M can be flexibly selected by the user end, and the embodiments of the present application do not specifically limit this.
[0152] S702, sending the target time to the user terminal and the multi-cloud resource pool 100.
[0153] In this way, the user end can adjust the resource quota based on the target time.
[0154] In the embodiment of the present application, after step S100, the following steps S801-S802 may also be included.
[0155] S801 , based on performance indicator data and / or resource quota, calculate the fifth usage rate of the resource pool hardware resources in each host machine 1012 using an analysis and prediction model.
[0156] The fifth usage rate refers to the usage rate of the hardware resources owned by the host machine 1012 .
[0157] S802: Send the fifth usage rate to the user terminal and the multi-cloud resource pool 100.
[0158] In this way, the administrators of the user end and the multi-cloud resource pool 100 can know the actual operating status of each host machine 1012 .
[0159] In an embodiment of the present application, the equipment power consumption of the multi-cloud resource pool 100 can also be collected and evaluated. Specifically, energy consumption can be collected from three locations of the multi-cloud resource pool 100, namely, the data center, the core office building, and the site, to calculate the power usage efficiency (Power Usage Effectiveness, PUE) and issue a centralized warning for computer rooms that do not meet the standards.
[0160] Among them, a data center is a physical facility that centrally stores, processes, and manages large amounts of data and computing resources. It can include servers, network equipment, storage devices, and cooling equipment to support the operation of various applications and services. The data center is a core component of cloud computing infrastructure, providing high-performance computing and storage capabilities. The core office building is a data center that connects user terminal devices and remote locations. In cloud computing, a site usually refers to the specific location or geographic area of a data center. A multi-cloud resource pool can be composed of multiple data center sites, which can be distributed in different geographical locations to provide higher availability and fault tolerance.
[0161] The PUE calculation formula can be: PUE=(A+B1+B2+C+D1+D2) / (C+D1) / 0.95.
[0162] Among them, A is the power consumption of low-voltage power distribution equipment of chillers, B1 is the power consumption of building electrical equipment such as lighting, B2 is the power consumption of switching power supply equipment, C is the power consumption of UPS equipment, D1 is the power consumption of air conditioning equipment, and D2 is the power consumption of monitoring equipment. 0.95 is a custom coefficient.
[0163] In some implementations, an early warning may be issued to a computer room whose PUE is greater than a fourth preset threshold, and the management personnel of the multi-cloud resource pool 100 may adjust the resources in each resource pool 1011 based on the early warning to reduce or increase the PUE. The fourth preset threshold is not specifically limited in the present embodiment.
[0164] In some implementations, the data of each collection point may be correlated and analyzed by a standardization algorithm to form a PUE report. The standardization algorithm may be, for example, a Z-Score standardization algorithm or a Min-Max standardization algorithm, which is not specifically limited in the present embodiment.
[0165] Continue to see Figure 1 In the embodiment of the present application, the resource allocation situation can also be obtained, and the resource allocation situation can be fed back to the user end and the multi-cloud resource pool 100. Specifically, the method provided in the embodiment of the present application can collect the host machine allocation situation, that is, the number and IP address of the virtual machines 1013 attached to each host machine 1012, and feed back the collected information to the multi-cloud resource pool 100. It is also possible to collect the resource pool allocation situation, that is, the number and IP address of the host machine 1012 attached to each cloud platform 101, and feed back the collected information to the multi-cloud resource pool 100. So that the managers of the multi-cloud resource pool 100 can fully understand the operation of the multi-cloud resource pool 100.
[0166] From the above content, it can be seen that the method for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment provided by the embodiment of the present application improves the operator's monitoring ability of the multi-cloud resource pool 100. Through the collection and statistical analysis of monitoring data, operators can observe the resource usage of each business party (user end). In addition, the method provided by the embodiment of the present application can guide the business party to dynamically adjust resource configuration so that resource utilization is within a reasonable range, reduce resource over-allocation, alleviate the problem of insufficient resource utilization, and at the same time reduce the device power consumption of the multi-cloud resource pool 100.
[0167] Figure 8 A schematic diagram of the structure of an apparatus for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment provided in an embodiment of the present application.
[0168] like Figure 8 As shown, the embodiment of the present application also provides a device for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment, wherein the multi-cloud resource pool includes multiple cloud platforms, and the cloud platform includes at least one resource pool; the device includes:
[0169] The acquisition module 1001 is used to acquire the resource usage status of the resource pool at a first preset frequency; wherein the resource usage status includes performance indicator data of the hardware resources of the resource pool in the resource pool, and the resource quota of the user occupied resources applied by the user end from the resource pool; the performance indicator data includes CPU utilization, memory utilization and / or storage utilization, and the resource quota is used to indicate the quantity limit of the user occupied resources;
[0170] The analysis and calculation module 1002 is used to calculate the first usage rate of the hardware resources in the resource pool by using the analysis and prediction model configured by the user based on the performance indicator data and / or the resource quota, and calculate the second usage rate of the user-occupied hardware resources in the user-occupied resources by the user end, where the user-occupied hardware resources belong to the hardware resources in the resource pool;
[0171] The suggestion generation module 1003 is used to generate a suggestion for optimizing the use of resources occupied by the user and to generate a suggestion for allocating the resource pool based on the performance indicator data and / or the resource quota within the first preset period;
[0172] The sending module 1004 is used to send the first usage rate, the second usage rate, the usage optimization suggestion and / or the allocation suggestion to the user terminal and the multi-cloud resource pool.
[0173] In a specific implementation, the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps of each embodiment of the method for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment provided by the present invention. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0174] It is easy to understand that those skilled in the art can combine, split, reorganize, etc. the embodiments of the present application to obtain other embodiments based on the several embodiments provided in the present application, and these embodiments do not exceed the protection scope of the present application.
[0175] The above specific implementation methods further explain in detail the purpose, technical solutions and beneficial effects of the embodiments of the present application. It should be understood that the above are only specific implementation methods of the embodiments of the present application and are not used to limit the protection scope of the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the embodiments of the present application should be included in the protection scope of the embodiments of the present application.
Claims
1. A method for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment, characterized in that: The multi-cloud resource pool includes multiple cloud platforms, and the cloud platform includes at least one resource pool; the method includes: When the user terminal applies for user occupied resources from the resource pool, the user occupied resources are divided into fixed resources and dynamic resources; wherein the fixed resources include at least one fixed virtual machine and fixed hardware resources, and the fixed hardware resources are allocated to each of the fixed virtual machines so that the fixed virtual machines use the fixed hardware resources to process tasks; the dynamic resources include at least one dynamic virtual machine and dynamic hardware resources, and the fixed hardware resources and the dynamic hardware resources together constitute the user occupied hardware resources; Acquiring the resource usage status of the resource pool at a first preset frequency; wherein the resource usage status includes performance indicator data of the resource pool hardware resources in the resource pool, and the resource quota of the user occupied resources applied by the user terminal from the resource pool; the performance indicator data includes CPU utilization, memory utilization and / or storage utilization, and the resource quota is used to indicate the quantity limit of the resources occupied by the user; Based on the performance indicator data and / or the resource quota, a first usage rate of the hardware resources of the resource pool is calculated using an analysis and prediction model configured by a user, and a second usage rate of the user-occupied hardware resources in the user-occupied resources is calculated by the user end, and the user-occupied hardware resources belong to the hardware resources of the resource pool; Based on the performance indicator data and / or the resource quota within a first preset period, generate a usage optimization suggestion for the resources occupied by the user, and generate an allocation suggestion for the resource pool; the usage optimization suggestion includes a first suggestion and a second suggestion, the first suggestion is to reduce the target hardware resources occupied by the target virtual machine or increase tasks, wherein the target virtual machine is the fixed virtual machine or the dynamic virtual machine, when the target virtual machine is the fixed virtual machine, the target hardware resources are the fixed hardware resources, and when the target virtual machine is the dynamic virtual machine, the target hardware resources are the dynamic hardware resources; the second suggestion is to increase the target hardware resources occupied by the target virtual machine or migrate part of the tasks of the target virtual machine to other target virtual machines; The step of generating a usage optimization suggestion for the resources occupied by the user based on the performance indicator data and / or the resource quota within the first preset period includes: When the target virtual machine is the fixed virtual machine, for each of the fixed virtual machines, determining whether a third usage rate in the first preset period is lower than a first preset threshold, the third usage rate being calculated by using the analysis and prediction model on the fixed hardware resources occupied by the fixed virtual machine; When the target virtual machine is the dynamic virtual machine, for each of the dynamic virtual machines, based on the performance indicator data and / or the resource quota, the fourth usage rate of the dynamic hardware resources occupied by the dynamic virtual machine is calculated using the analysis and prediction model, and it is determined whether the fourth usage rate within the first preset period is lower than the first preset threshold value; If the third usage rates are all lower than the first preset threshold, or if the fourth usage rates are all lower than the first preset threshold, generating the first suggestion; If the third usage rates are not all lower than the first preset threshold, calculate the first number of times that the third usage rate exceeds the second preset threshold within the first preset period, and the second preset threshold is greater than the first preset threshold; or, if the fourth usage rates are not all lower than the first preset threshold, calculate the second number of times that the fourth usage rate exceeds the second preset threshold within the first preset period; If the first number or the second number is greater than a third preset threshold, generating the second suggestion; The first usage rate, the second usage rate, the usage optimization suggestion and / or the allocation suggestion are sent to the user terminal and the multi-cloud resource pool.
2. The method for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment according to claim 1, characterized in that: After the step of calculating the first usage rate of the hardware resources in the resource pool using the analysis and prediction model configured by the user based on the performance indicator data and / or the resource quota, the method further includes: The dynamic virtual machine is run so that the dynamic virtual machine utilizes the dynamic hardware resources to process the pending tasks of each of the fixed virtual machines in turn.
3. The method for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment according to claim 2, characterized in that: The steps of running the dynamic virtual machine include: For each of the fixed virtual machines, based on the performance indicator data and / or the resource quota, the third usage rate of the fixed hardware resources occupied by the virtual machine is calculated using the analysis and prediction model; Calculating an average usage rate based on the third usage rate within the second preset period; Based on the average usage rate in a third preset period, drawing a usage rate change curve, wherein the third preset period includes a plurality of the second preset periods; Determine the peak time period of the fixed virtual machine using the fixed hardware resource by using the usage rate change curve corresponding to at least one of the third preset periods; When the next peak period arrives, the dynamic virtual machine is run, and when the next peak period ends, the dynamic virtual machine is stopped.
4. The method for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment according to claim 1, characterized in that: The usage optimization suggestion further includes a third suggestion, and the third suggestion is to increase the resource quota or to reduce the resource quota; The step of generating a usage optimization suggestion for the resources occupied by the user based on the performance indicator data and / or the resource quota within the first preset period includes: determining a peak value of the second usage rate within the first preset period; Drawing a peak curve based on the peak values corresponding to the plurality of first preset periods; Based on the peak curve, determining whether the peak values are all within a first preset range; If the peak values are not all within the first preset range, the third suggestion is generated.
5. The method for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment according to claim 1, characterized in that: The usage optimization suggestion further includes a fourth suggestion, wherein the fourth suggestion is to release target resources to the resource pool, and the target resources are unused resources among the resources occupied by the user; The step of generating a usage optimization suggestion for the resources occupied by the user based on the performance indicator data and / or the resource quota within the first preset period further includes: Screening the resources occupied by the user to determine whether the target resources exist within the first preset period; If the target resource exists within the first preset period, the fourth suggestion is generated.
6. The method for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment according to claim 1, characterized in that: After the step of acquiring the resource usage status of the resource pool at a first preset frequency, the method further includes: Based on the performance indicator data and / or the resource quota within the first preset period, using the analysis and prediction model to determine a target time when the second usage rate exceeds a first preset threshold, the target time being later than the current time; The target time is sent to the user terminal and the multi-cloud resource pool.
7. The method for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment according to claim 1, characterized in that: The resource pool includes at least one host machine, each of which is used to provide hardware resources of the resource pool; After the step of acquiring the resource usage status of the resource pool at a first preset frequency, the method further includes: Based on the performance indicator data and / or the resource quota, using the analysis and prediction model to calculate a fifth usage rate of the resource pool hardware resources provided by each of the host machines; The fifth usage rate is sent to the user terminal and the multi-cloud resource pool.
8. The method for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment according to claim 7, characterized in that: The allocation suggestions include a fifth suggestion and a sixth suggestion. The fifth suggestion is to allocate the newly created virtual machine to a target host machine, and the target host machine is determined from at least one of the host machines based on the performance indicator data and / or the resource quota; the sixth suggestion is to allocate the new resource application request from the user terminal to a target cloud platform, and the target cloud platform is determined from multiple cloud platforms based on the performance indicator data and / or the resource quota.
9. A device for energy efficiency utilization and management in a heterogeneous multi-cloud resource pool environment, characterized in that: The multi-cloud resource pool includes multiple cloud platforms, and the cloud platform includes at least one resource pool; the device includes: A suggestion generation module, when the user terminal applies for user occupied resources from the resource pool, the suggestion generation module is used to divide the user occupied resources into fixed resources and dynamic resources; wherein the fixed resources include at least one fixed virtual machine and fixed hardware resources, and the fixed hardware resources are allocated to each of the fixed virtual machines so that the fixed virtual machines use the fixed hardware resources to process tasks; the dynamic resources include at least one dynamic virtual machine and dynamic hardware resources, and the fixed hardware resources and the dynamic hardware resources together constitute the user occupied hardware resources; an acquisition module, configured to acquire the resource usage status of the resource pool at a first preset frequency; wherein the resource usage status includes performance indicator data of the resource pool hardware resources in the resource pool, and a resource quota of the user occupied resources applied by the user terminal from the resource pool; the performance indicator data includes CPU utilization, memory utilization and / or storage utilization, and the resource quota is used to indicate the quantity limit of the resources occupied by the user; An analysis and calculation module, configured to calculate, based on the performance indicator data and / or the resource quota, a first usage rate of the hardware resources of the resource pool using an analysis and prediction model configured by a user, and calculate a second usage rate of the user-occupied hardware resources in the user-occupied resources by the user terminal, the user-occupied hardware resources belonging to the hardware resources of the resource pool; The suggestion generation module is also used to generate a usage optimization suggestion for the resources occupied by the user and an allocation suggestion for the resource pool based on the performance indicator data and / or the resource quota within a first preset period; the usage optimization suggestion includes a first suggestion and a second suggestion, the first suggestion is to reduce the target hardware resources occupied by the target virtual machine or increase tasks, wherein the target virtual machine is the fixed virtual machine or the dynamic virtual machine, when the target virtual machine is the fixed virtual machine, the target hardware resources are the fixed hardware resources, and when the target virtual machine is the dynamic virtual machine, the target hardware resources are the dynamic hardware resources; the second suggestion is to increase the target hardware resources occupied by the target virtual machine or migrate part of the tasks of the target virtual machine to other target virtual machines; The suggestion generation module is specifically used for: when the target virtual machine is the fixed virtual machine, for each of the fixed virtual machines, determining whether the third usage rate in the first preset period is lower than the first preset threshold, wherein the third usage rate is calculated by using the analysis and prediction model on the fixed hardware resources occupied by the fixed virtual machine; When the target virtual machine is the dynamic virtual machine, for each of the dynamic virtual machines, based on the performance indicator data and / or the resource quota, the fourth usage rate of the dynamic hardware resources occupied by the dynamic virtual machine is calculated using the analysis and prediction model, and it is determined whether the fourth usage rate within the first preset period is lower than the first preset threshold value; If the third usage rates are all lower than the first preset threshold, or if the fourth usage rates are all lower than the first preset threshold, generating the first suggestion; If the third usage rates are not all lower than the first preset threshold, calculate the first number of times that the third usage rate exceeds the second preset threshold within the first preset period, and the second preset threshold is greater than the first preset threshold; or, if the fourth usage rates are not all lower than the first preset threshold, calculate the second number of times that the fourth usage rate exceeds the second preset threshold within the first preset period; If the first number or the second number is greater than a third preset threshold, generating the second suggestion; A sending module is used to send the first usage rate, the second usage rate, the usage optimization suggestion and / or the allocation suggestion to the user terminal and the multi-cloud resource pool.
