Method and device for adjusting cloud resource configuration
By filtering reference services and target services in the cloud resource adjustment platform and generating adjustment parameters based on multiple information, the problem of inadequate adjustment of cloud resource configuration is solved, and more flexible and efficient cloud resource management is achieved.
Patent Information
- Application Number
- CN202411214853.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-10
AI Technical Summary
The existing cloud resource configuration adjustment methods lack flexibility when multiple services are deployed in different cloud resources, and fail to fully consider the impact of configuration adjustment on different business operating states, resulting in unreasonable configuration adjustments.
By filtering out the reference business system and target services in the cloud resource adjustment platform, generating cloud resource configuration adjustment parameters based on cloud resource information, thresholds, business levels and monitoring information, adjusting the cloud platform configuration of target services, ensuring reasonable configuration adjustments sex.
It improves the rationality of cloud resource allocation adjustment, avoids the adjustment impact on important businesses, optimizes the cost of cloud resource usage, and improves the flexibility and efficiency of configuration adjustment.
Smart Images

Figure CN119105871A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the computer field, and more specifically, to a method and device for adjusting cloud resource configuration. Background Art
[0002] With the development of cloud computing technology, the use of cloud resources is becoming more and more common, and the control of cloud resource costs is becoming more and more important. The current method of controlling cloud resource costs is to monitor the comparison between the cloud resource costs used by tenants and the tenants' budget values. When the budget is exceeded, the number of tenant cloud resources is reduced or certain configurations of the tenant's cloud resources are reduced until the cloud resource expenditure meets the budget requirements. This method is not flexible enough when tenants have multiple businesses deployed on different cloud resources. It does not take into account the impact of configuration adjustments on the operating status of different businesses, and the adjustment of cloud resource configuration is not reasonable. Summary of the invention
[0003] The embodiments of the present application provide a method and device for adjusting cloud resource configuration, so as to at least solve the problem that the adjustment of cloud resource configuration in the related art is not reasonable.
[0004] According to an embodiment of the present application, a method for adjusting cloud resource configuration is provided, which is applied to a cloud resource adjustment platform, wherein the cloud resource adjustment platform is connected to multiple business systems, each of which runs multiple businesses, and the cloud resource adjustment platform is also connected to multiple cloud platforms that provide cloud resources for the multiple businesses. The method includes:
[0005] According to the cloud resource information and cloud resource threshold corresponding to each business system in the multiple business systems, a reference business system for which cloud resource configuration is to be adjusted is screened out from the multiple business systems, wherein the cloud resource information is used to indicate the total cost consumed by the current cloud resource configuration on the corresponding business system, and the cloud resource threshold is used to indicate the cost limit of the cloud resource configuration on the corresponding business system;
[0006] According to the service level of each reference service among the multiple reference services run by the reference service system and the preset service level, a target service for which cloud resource configuration adjustment is allowed is selected from the multiple reference services, wherein the service level is used to indicate the importance of the corresponding reference service in the reference service system;
[0007] Generate cloud resource configuration adjustment parameters for the target business according to the cloud resource configuration information and cloud resource monitoring information of the reference business system, wherein the cloud resource configuration information is used to indicate the cost consumed by the current cloud resource configuration of the reference business system, and the cloud resource monitoring information is used to indicate the cost consumed by the cloud resource configuration put into use in the current cloud resource configuration of the reference business system;
[0008] The cloud platform configuration of the target business is adjusted in the multiple cloud platforms according to the cloud resource configuration adjustment parameters.
[0009] As an optional implementation manner, the step of selecting a reference business system for which cloud resource configuration is to be adjusted from the multiple business systems according to the cloud resource information and cloud resource threshold corresponding to each business system in the multiple business systems includes:
[0010] Comparing the cloud resource information corresponding to each business system with the cloud resource threshold to obtain a first comparison result, wherein the first comparison result is used to indicate a size relationship between the cloud resource information corresponding to each business system and the cloud resource threshold;
[0011] A business system whose first comparison result is a target comparison result is extracted from the multiple business systems as the reference business system, wherein the target comparison result is a first comparison result whose indicated size relationship is that the cloud resource information is greater than or equal to a cloud resource threshold.
[0012] As an optional implementation manner, before selecting a reference business system for adjusting cloud resource configuration from the multiple business systems according to the cloud resource information and cloud resource threshold corresponding to each business system in the multiple business systems, the method further includes:
[0013] Extracting, from the multiple cloud platforms, the virtual machine resource amounts and unit costs of the virtual machine resources used by each business system on each cloud platform;
[0014] Calculate the product of the virtual machine resource amount of the virtual machine resources used by each business system on each cloud platform and the unit cost of the virtual machine resources to obtain the business system, cloud platform and virtual machine resource cost with corresponding relationship;
[0015] The sum of the virtual machine resource costs of each business system on the multiple cloud platforms is calculated to obtain the cloud resource information corresponding to each business system.
[0016] As an optional implementation manner, the step of selecting a target service for which cloud resource configuration is to be adjusted from the multiple reference services according to the service level and the preset service level of each reference service among the multiple reference services run by the reference service system includes:
[0017] Comparing the service level of each reference service with the preset service level to obtain a second comparison result, wherein the second comparison result is used to indicate the high-low relationship between the service level of each reference service and the preset service level, and the reference service corresponding to the higher service level is more important in the reference service system;
[0018] A reference service whose second comparison result is a reference comparison result is extracted from the multiple reference services as the target service, wherein the reference comparison result is a second comparison result indicating a high-low relationship that the service level is lower than or equal to the preset service level.
[0019] As an optional implementation manner, before selecting the target business for which cloud resource configuration is to be adjusted from the multiple reference businesses according to the business level and the preset business level of each reference business in the multiple reference businesses run by the reference business system, the method further includes:
[0020] Acquire service identifiers of multiple reference services run by the reference service system;
[0021] Allocating the service level to each reference service according to the importance of each reference service in the reference service system, wherein the more important the reference service is in the reference service system, the higher the service level is allocated to it;
[0022] The service identifier and the service level having a corresponding relationship are recorded for the reference service system.
[0023] As an optional implementation manner, generating the cloud resource configuration adjustment parameters of the target service according to the cloud resource configuration information and the cloud resource monitoring information of the reference service system includes:
[0024] Calculate the difference between the type configuration information and the type monitoring information corresponding to each cloud resource type in the reference business system to obtain cloud resource types and target values having corresponding relationships, wherein the cloud resource configuration information includes the cloud resource types and the type configuration information having corresponding relationships, the cloud resource monitoring information includes the cloud resource types and the type monitoring information having corresponding relationships, the type configuration information is used to indicate the cost consumed by the corresponding cloud resource type in the current cloud resource configuration of the reference business system, and the type monitoring information is used to indicate the cost consumed by the resources put into use by the corresponding cloud resource type in the current cloud resource configuration of the reference business system;
[0025] Comparing the target value corresponding to each of the cloud resource types with the preset value corresponding to each of the cloud resource types to obtain a third comparison result, wherein the third comparison result is used to indicate a size relationship between the target value corresponding to each of the cloud resource types and the preset value corresponding to each of the cloud resource types;
[0026] Extracting the cloud resource type for which the third comparison result is a candidate comparison result from the cloud resource types as the target cloud resource type, wherein the candidate comparison result is the third comparison result for which the indicated size relationship is that the target value is greater than or equal to a preset value;
[0027] Based on the difference between the target value corresponding to the target cloud resource type and the corresponding preset value, as well as the difference between the cloud resource information corresponding to the reference business system and the corresponding cloud resource threshold, the target adjustment amount corresponding to the target cloud resource type is generated to obtain the cloud resource configuration adjustment parameters, wherein the cloud resource configuration adjustment parameters include the target business, the target cloud resource type and the target adjustment amount that have a corresponding relationship.
[0028] As an optional implementation manner, before generating the cloud resource configuration adjustment parameters of the target business according to the cloud resource configuration information and cloud resource monitoring information of the target business, the method further includes:
[0029] Extracting, from the multiple cloud platforms, the type resource amount, type usage rate, and type unit cost of various cloud resource types used by the reference business system on each cloud platform;
[0030] Calculate the product of the type resource amount and type unit cost of various cloud resource types used by the reference business system on each cloud platform to obtain cloud resource types, cloud platforms, and type costs with corresponding relationships, and calculate the product of the type resource amount, type utilization rate, and type unit cost of various cloud resource types used by the reference business system on each cloud platform to obtain cloud resource types, cloud platforms, and type usage costs with corresponding relationships;
[0031] Calculate the sum of the type resource costs of the various cloud resource types on the multiple cloud platforms, and obtain the cloud resource types and the type configuration information with corresponding relationships as the cloud resource configuration information of the reference business system; and calculate the sum of the type usage fees of the various cloud resource types on the multiple cloud platforms, and obtain the cloud resource types and the type monitoring information with corresponding relationships as the cloud resource monitoring information of the reference business system.
[0032] According to another embodiment of the present application, a cloud resource configuration adjustment device is provided, which is applied to a cloud resource adjustment platform, wherein the cloud resource adjustment platform is connected to multiple business systems, each of which runs multiple businesses, and the cloud resource adjustment platform is also connected to multiple cloud platforms that provide cloud resources for the multiple businesses. The device includes:
[0033] A first screening module is used to screen out a reference business system for which cloud resource configuration is to be adjusted from the multiple business systems according to cloud resource information and cloud resource thresholds corresponding to each business system in the multiple business systems, wherein the cloud resource information is used to indicate a total cost consumed by the current cloud resource configuration on the corresponding business system, and the cloud resource threshold is used to indicate a cost limit on the cloud resource configuration by the corresponding business system;
[0034] A second screening module is used to screen out a target business that allows adjustment of cloud resource configuration from the multiple reference businesses according to the business level of each reference business in the multiple reference businesses run by the reference business system and a preset business level, wherein the business level is used to indicate the importance of the corresponding reference business in the reference business system;
[0035] A generating module, configured to generate cloud resource configuration adjustment parameters of the target business according to the cloud resource configuration information and cloud resource monitoring information of the reference business system, wherein the cloud resource configuration information is used to indicate the cost consumed by the current cloud resource configuration of the reference business system, and the cloud resource monitoring information is used to indicate the cost consumed by the cloud resource configuration put into use in the current cloud resource configuration of the reference business system;
[0036] An adjustment module is used to adjust the cloud platform configuration of the target business in the multiple cloud platforms according to the cloud resource configuration adjustment parameters.
[0037] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0038] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0039] Through the present application, a cloud resource adjustment platform is set up, and the cloud resource adjustment platform is connected to multiple business systems. Multiple businesses are run in each business system. The cloud resource adjustment platform is also connected to multiple cloud platforms that provide cloud resources for multiple businesses. The reference business system whose cloud resource configuration is to be adjusted is screened out from the multiple business systems according to the cloud resource information corresponding to each business system in the multiple business systems, which is used to indicate the total cost consumed by the current cloud resource configuration on the corresponding business system, and the cloud resource threshold used to indicate the cost limit of the cloud resource configuration of the corresponding business system. Then, according to the business level and preset business level of each reference business in the multiple reference businesses run by the reference business system, the target business that allows the cloud resource configuration to be adjusted is screened out from the multiple reference businesses. According to the cloud resource configuration information of the reference business system, which is used to indicate the cost consumed by the current cloud resource configuration of the reference business system, and the cloud resource monitoring information, which is used to indicate the cost consumed by the cloud resource configuration put into use in the current cloud resource configuration of the reference business system, the cloud resource configuration adjustment parameters of the target business are generated. According to the cloud resource configuration adjustment parameters, the cloud platform configuration of the target business is adjusted in multiple cloud platforms, that is, the reference business system whose cloud resource configuration is to be adjusted is screened out according to the cloud resource consumption costs and cloud resource limit costs corresponding to each business system. In the process of adjusting the cloud resource configuration of the reference business system, the target business that is allowed to adjust the cloud resource configuration is screened according to the importance of each reference business of the reference business system in the reference business system, so as to avoid the adjustment of the cloud resource configuration of important businesses affecting the entire operation of the reference business system and avoiding unreasonable adjustment of the cloud resource configuration. Further, according to the cost consumed by the current cloud resource configuration of the reference business system and the cost consumed by the cloud resource configuration put into use in the current cloud resource configuration of the reference business system, the cloud resource configuration adjustment parameters for the target business are generated. The cloud resource configuration adjustment parameters are obtained according to the specific usage of the cloud resources of the reference business system. By using these parameters, the cloud platform configuration of the target business is further improved, so as to further improve the rationality of the cloud resource configuration adjustment. Therefore, the problem of unreasonable adjustment of the cloud resource configuration can be solved, so as to achieve the effect of improving the rationality of the adjustment of the cloud resource configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a hardware structure block diagram of a server device of a cloud resource configuration adjustment method according to an embodiment of the present application;
[0041] Figure 2 is a flow chart of a method for adjusting cloud resource configuration according to an embodiment of the present application;
[0042] Figure 3 is a schematic diagram of a method for collecting hybrid multi-cloud data according to an embodiment of the present application;
[0043] Figure 4 It is a schematic diagram of a module implementation of a hybrid cloud resource cost prediction and optimization method according to an embodiment of the present application;
[0044] Figure 5 is a schematic diagram of a method for adjusting cloud resource configuration based on multi-cloud billing data according to an embodiment of the present application;
[0045] Figure 6 It is a schematic diagram of implementing a cloud resource configuration scheduling adjustment according to an embodiment of the present application;
[0046] Figure 7 It is a structural block diagram of a cloud resource configuration adjustment device according to an embodiment of the present application. DETAILED DESCRIPTION
[0047] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0048] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0049] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a cloud resource configuration adjustment method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0050] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for adjusting the cloud resource configuration in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0051] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0052] In this embodiment, a method for adjusting cloud resource configuration is provided, which is applied to a cloud resource adjustment platform. The cloud resource adjustment platform is connected to multiple business systems, each of which runs multiple businesses. The cloud resource adjustment platform is also connected to multiple cloud platforms that provide cloud resources for the multiple businesses. Figure 2 is a flow chart of a method for adjusting cloud resource configuration according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:
[0053] Step S202, based on the cloud resource information and cloud resource threshold corresponding to each business system in the multiple business systems, a reference business system for which cloud resource configuration is to be adjusted is screened out from the multiple business systems, wherein the cloud resource information is used to indicate the total cost consumed by the current cloud resource configuration on the corresponding business system, and the cloud resource threshold is used to indicate the cost limit of the cloud resource configuration on the corresponding business system;
[0054] Step S204, according to the service level of each reference service in the multiple reference services run by the reference service system and the preset service level, selecting a target service for which cloud resource configuration adjustment is allowed from the multiple reference services, wherein the service level is used to indicate the importance of the corresponding reference service in the reference service system;
[0055] Step S206, generating cloud resource configuration adjustment parameters of the target business according to the cloud resource configuration information and cloud resource monitoring information of the reference business system, wherein the cloud resource configuration information is used to indicate the cost consumed by the current cloud resource configuration of the reference business system, and the cloud resource monitoring information is used to indicate the cost consumed by the cloud resource configuration put into use in the current cloud resource configuration of the reference business system;
[0056] Step S208: adjusting the cloud platform configuration of the target business in the multiple cloud platforms according to the cloud resource configuration adjustment parameters.
[0057] Through the above steps, a cloud resource adjustment platform is set up, the cloud resource adjustment platform is connected to multiple business systems, multiple businesses are run in each business system, and the cloud resource adjustment platform is also connected to multiple cloud platforms that provide cloud resources for multiple businesses. According to the cloud resource information corresponding to each business system in the multiple business systems for indicating the total cost consumed by the current cloud resource configuration on the corresponding business system and the cloud resource threshold for indicating the cost limit of the cloud resource configuration of the corresponding business system, a reference business system whose cloud resource configuration is to be adjusted is screened out from the multiple business systems, and then according to the business level and preset business level of each reference business in the multiple reference businesses run by the reference business system for indicating the importance of the corresponding reference business in the reference business system, a target business that allows adjustment of cloud resource configuration is screened out from the multiple reference businesses, and according to the cloud resource configuration information of the reference business system for indicating the cost consumed by the current cloud resource configuration of the reference business system and the cloud resource monitoring information for indicating the cost consumed by the cloud resource configuration put into use in the current cloud resource configuration of the reference business system, cloud resource configuration adjustment parameters for the target business are generated, and then the adjustment parameters are adjusted according to the adjustment parameters. According to the cloud resource configuration adjustment parameters, the cloud platform configuration of the target business is adjusted in multiple cloud platforms, that is, the reference business system whose cloud resource configuration is to be adjusted is screened out according to the cloud resource consumption costs and cloud resource limit costs corresponding to each business system. In the process of adjusting the cloud resource configuration of the reference business system, the target business that is allowed to adjust the cloud resource configuration is screened according to the importance of each reference business of the reference business system in the reference business system, so as to avoid the adjustment of the cloud resource configuration of important businesses affecting the entire operation of the reference business system and avoiding unreasonable adjustment of the cloud resource configuration. Further, according to the cost consumed by the current cloud resource configuration of the reference business system and the cost consumed by the cloud resource configuration put into use in the current cloud resource configuration of the reference business system, the cloud resource configuration adjustment parameters for the target business are generated. The cloud resource configuration adjustment parameters are obtained according to the specific usage of the cloud resources of the reference business system. By using these parameters, the cloud platform configuration of the target business is further improved, so as to further improve the rationality of the cloud resource configuration adjustment. Therefore, the problem of unreasonable adjustment of the cloud resource configuration can be solved, so as to achieve the effect of improving the rationality of the adjustment of the cloud resource configuration.
[0058] Optionally, in an embodiment of the present application, multiple businesses running in each of the multiple business systems include but are not limited to having different cloud resource requirements, and therefore multiple cloud platforms are required to provide cloud resources for the multiple businesses.
[0059] In the embodiment provided in step S202, based on the cloud resource information and cloud resource thresholds corresponding to each business system in the multiple business systems, a reference business system for adjusting the cloud resource configuration is screened out from the multiple business systems, including but not limited to comparing the intermediate information and cloud resource thresholds of the multiple business systems to obtain reference comparison information, wherein the intermediate information of the cloud resource information is used to indicate the average value of the total cost consumed by the current cloud resource configuration of each business system on the multiple business systems; when the reference comparison information is used to indicate that the intermediate information is greater than the cloud resource threshold, an unreasonable threshold alarm information is generated and the cloud resource information corresponding to each business system is compared with the intermediate information, and the business system whose corresponding cloud resource information is greater than the intermediate information is extracted from the multiple business systems as the reference business system, wherein the unreasonable threshold alarm information is used to indicate that the cloud resource setting is unreasonable; when the reference comparison information is used to indicate that the intermediate information is less than or equal to the cloud resource threshold, the cloud resource information corresponding to each business system is compared with the cloud resource threshold, and the business system whose corresponding cloud resource information is greater than the cloud resource threshold is extracted from the multiple business systems as the reference business system. Through the above steps, unreasonable adjustments to the cloud resource configurations of multiple business systems due to unreasonable cost limits on cloud resource configurations by business systems are avoided. At the same time, when the cloud resource thresholds are set unreasonable, the cloud resource configuration adjustment work is not completely abandoned. Instead, preliminary adjustments to the cloud resource configuration are made within a smaller scope to improve the efficiency of cloud resource configuration adjustment while ensuring reasonable adjustments to the cloud resource configuration.
[0060] Optionally, in an embodiment of the present application, the cloud resource threshold includes but is not limited to being manually determined and then input into the cloud resource adjustment platform.
[0061] In the embodiment provided in step S204, based on the business level of each reference business in the multiple reference businesses run by the reference business system and the preset business level, target businesses that allow adjustment of cloud resource configuration are screened out from the multiple reference businesses, including but not limited to comparing the business level of each reference business with the preset business level when the proportion of the number of reference business systems to the total number of connected multiple business systems is greater than the target proportion, taking the reference business with a business level lower than the preset level as the first target business, and taking the reference business with a business level equal to the preset level or one level higher than the preset level as the second target business, the target business includes the first target business and the second target business, and when adjusting the cloud platform configuration of the target business, the cloud platform configuration of the first target business is adjusted first, and when the cloud resource information of the corresponding reference business system still does not meet the cloud resource threshold requirement after adjusting the cloud platform configuration of all first target businesses, the cloud platform configuration of the second target business is adjusted; when the proportion of the number of reference business systems to the total number of connected multiple business systems is less than or equal to the target proportion, comparing the business level of each reference business with the preset business level, and taking the reference business with a business level lower than or equal to the preset level as the target business.
[0062] In the embodiment provided in step S206, the cloud resource configuration information includes but is not limited to cloud resource types and type configuration information with corresponding relationships, the cloud resource monitoring information includes cloud resource types and type monitoring information with corresponding relationships, the type configuration information is used to indicate the cost consumed by the corresponding cloud resource type in the current cloud resource configuration of the reference business system, and the type monitoring information is used to indicate the cost consumed by the resources put into use by the corresponding cloud resource type in the current cloud resource configuration of the reference business system. According to the cloud resource types with corresponding relationships, the type configuration information and the type monitoring information, it can be determined which types of cloud resources of the target business are to be adjusted and the corresponding amount of adjustment.
[0063] In the embodiment provided in step S208, adjusting the cloud platform configuration of the target business in the multiple cloud platforms according to the cloud resource configuration adjustment parameters includes but is not limited to adjusting the cloud platform configuration of the multiple target businesses from a low level to a high level according to the business level of the target business when the target business includes multiple target businesses, calculating the current cloud resource information of the business system where the current target business is located after the cloud platform configuration adjustment of the target business of each level is completed, and stopping the adjustment of the cloud platform configuration of the remaining target businesses among the multiple target businesses when it is detected that the corresponding cloud resource information after adjustment meets the cloud resource threshold.
[0064] As an optional implementation manner, the step of selecting a reference business system for which cloud resource configuration is to be adjusted from the multiple business systems according to the cloud resource information and cloud resource threshold corresponding to each business system in the multiple business systems includes:
[0065] Comparing the cloud resource information corresponding to each business system with the cloud resource threshold to obtain a first comparison result, wherein the first comparison result is used to indicate a size relationship between the cloud resource information corresponding to each business system and the cloud resource threshold;
[0066] A business system whose first comparison result is a target comparison result is extracted from the multiple business systems as the reference business system, wherein the target comparison result is a first comparison result whose indicated size relationship is that the cloud resource information is greater than or equal to a cloud resource threshold.
[0067] Through the above steps, the reference business systems that need to adjust the cloud resource configuration are screened out according to the comparison results of cloud resource information and cloud resource thresholds, and the business systems that need to be configured with cloud resources are accurately and reasonably determined, which improves the rationality of the adjustment of cloud resource configuration to a certain extent.
[0068] As an optional implementation manner, before selecting a reference business system for adjusting cloud resource configuration from the multiple business systems according to the cloud resource information and cloud resource threshold corresponding to each business system in the multiple business systems, the method further includes:
[0069] Extracting, from the multiple cloud platforms, the virtual machine resource amounts and unit costs of the virtual machine resources used by each business system on each cloud platform;
[0070] Calculate the product of the virtual machine resource amount of the virtual machine resources used by each business system on each cloud platform and the unit cost of the virtual machine resources to obtain the business system, cloud platform and virtual machine resource cost with corresponding relationship;
[0071] The sum of the virtual machine resource costs of each business system on the multiple cloud platforms is calculated to obtain the cloud resource information corresponding to each business system.
[0072] Optionally, in an embodiment of the present application, the unit price of each virtual machine resource on each cloud platform may vary due to different cloud platforms, and the amount of virtual machine resources on the cloud platform used by each business of each business system may also vary due to different needs of each business.
[0073] As an optional implementation, Figure 3 is a schematic diagram of a method for collecting hybrid multi-cloud data according to an embodiment of the present application, such as Figure 3As shown, data from different cloud environments are collected through the northbound REST interface or SDK provided by the hybrid multi-cloud (as shown in the figure, cloud 1, cloud 2, cloud 3...) including resource specification data (such as the CPU, memory, storage configuration, GPU data of the virtual machine) and resource monitoring data (such as the actual utilization rate data of the CPU, memory, storage, and GPU of the virtual machine). Then, the differentiated data of different clouds are processed into data in a unified format and saved for subsequent billing and cost analysis.
[0074] As an optional implementation manner, the step of selecting a target service for which cloud resource configuration is to be adjusted from the multiple reference services according to the service level and the preset service level of each reference service among the multiple reference services run by the reference service system includes:
[0075] Comparing the service level of each reference service with the preset service level to obtain a second comparison result, wherein the second comparison result is used to indicate the high-low relationship between the service level of each reference service and the preset service level, and the reference service corresponding to the higher service level is more important in the reference service system;
[0076] A reference service whose second comparison result is a reference comparison result is extracted from the multiple reference services as the target service, wherein the reference comparison result is a second comparison result indicating a high-low relationship that the service level is lower than or equal to the preset service level.
[0077] Through the above steps, by comparing the business level used to indicate the importance of the corresponding reference business in the reference business system with the preset business level, a reference business with less importance is selected as the target business for adjusting the cloud resource configuration, thereby avoiding the impact of the adjustment of the cloud resource configuration of the important business on the operation of the important business of the reference business system and improving the rationality of the cloud resource configuration adjustment.
[0078] As an optional implementation manner, before selecting the target business for which cloud resource configuration is to be adjusted from the multiple reference businesses according to the business level and the preset business level of each reference business in the multiple reference businesses run by the reference business system, the method further includes:
[0079] Acquire service identifiers of multiple reference services run by the reference service system;
[0080] Allocating the service level to each reference service according to the importance of each reference service in the reference service system, wherein the more important the reference service is in the reference service system, the higher the service level is allocated to it;
[0081] The service identifier and the service level having a corresponding relationship are recorded for the reference service system.
[0082] Through the above steps, a business level is assigned to the reference business in the reference business system. Then, the importance of the corresponding reference business in the reference business system can be learned based on the business level, so that the importance of the reference business can be taken into consideration in the process of determining the cloud resource configuration adjustment plan, thereby reducing the impact of the cloud resource configuration adjustment process on the operation of the business system.
[0083] As an optional implementation manner, generating the cloud resource configuration adjustment parameters of the target service according to the cloud resource configuration information and the cloud resource monitoring information of the reference service system includes:
[0084] Calculate the difference between the type configuration information and the type monitoring information corresponding to each cloud resource type in the reference business system to obtain cloud resource types and target values having corresponding relationships, wherein the cloud resource configuration information includes the cloud resource types and the type configuration information having corresponding relationships, the cloud resource monitoring information includes the cloud resource types and the type monitoring information having corresponding relationships, the type configuration information is used to indicate the cost consumed by the corresponding cloud resource type in the current cloud resource configuration of the reference business system, and the type monitoring information is used to indicate the cost consumed by the resources put into use by the corresponding cloud resource type in the current cloud resource configuration of the reference business system;
[0085] Comparing the target value corresponding to each of the cloud resource types with the preset value corresponding to each of the cloud resource types to obtain a third comparison result, wherein the third comparison result is used to indicate a size relationship between the target value corresponding to each of the cloud resource types and the preset value corresponding to each of the cloud resource types;
[0086] Extracting the cloud resource type for which the third comparison result is a candidate comparison result from the cloud resource types as the target cloud resource type, wherein the candidate comparison result is the third comparison result for which the indicated size relationship is that the target value is greater than or equal to a preset value;
[0087] Based on the difference between the target value corresponding to the target cloud resource type and the corresponding preset value, as well as the difference between the cloud resource information corresponding to the reference business system and the corresponding cloud resource threshold, the target adjustment amount corresponding to the target cloud resource type is generated to obtain the cloud resource configuration adjustment parameters, wherein the cloud resource configuration adjustment parameters include the target business, the target cloud resource type and the target adjustment amount that have a corresponding relationship.
[0088] Through the above steps, the difference between the type configuration information and type monitoring information corresponding to each cloud resource type in the reference business system is compared with the preset value of the corresponding cloud resource type. If the preset value requirement is not met, the target adjustment amount of the corresponding cloud resource type is generated based on the difference between the preset value and the difference and the difference between the cloud resource information of the reference business system and the cloud resource threshold, thereby accurately determining the specific adjustment direction of the cloud resource configuration of the target business and improving the adjustment efficiency of the cloud resource configuration.
[0089] As an optional implementation manner, before generating the cloud resource configuration adjustment parameters of the target business according to the cloud resource configuration information and cloud resource monitoring information of the target business, the method further includes:
[0090] Extracting, from the multiple cloud platforms, the type resource amount, type usage rate, and type unit cost of various cloud resource types used by the reference business system on each cloud platform;
[0091] Calculate the product of the type resource amount and type unit cost of various cloud resource types used by the reference business system on each cloud platform to obtain cloud resource types, cloud platforms, and type costs with corresponding relationships, and calculate the product of the type resource amount, type utilization rate, and type unit cost of various cloud resource types used by the reference business system on each cloud platform to obtain cloud resource types, cloud platforms, and type usage costs with corresponding relationships;
[0092] Calculate the sum of the type resource costs of the various cloud resource types on the multiple cloud platforms, and obtain the cloud resource types and the type configuration information with corresponding relationships as the cloud resource configuration information of the reference business system; and calculate the sum of the type usage fees of the various cloud resource types on the multiple cloud platforms, and obtain the cloud resource types and the type monitoring information with corresponding relationships as the cloud resource monitoring information of the reference business system.
[0093] As an optional implementation, the embodiment of the present application also provides a hybrid cloud resource cost prediction and optimization method. Figure 4 Schematic diagram of a module implementation of a hybrid cloud resource cost prediction and optimization method according to an embodiment of the present application. Figure 4As shown, this application adopts a hybrid multi-cloud data collection module, a hybrid multi-cloud resource marking module, a hybrid multi-cloud resource billing module, a hybrid multi-cloud cost analysis module and a hybrid multi-cloud resource scheduling module to realize the cost analysis of hybrid multi-cloud resources, and combines optimization suggestions to realize automatic scheduling of resources and reduce operating costs. Specifically, the specification data and monitoring data of the hybrid multi-cloud resources are collected through the hybrid multi-cloud data collection module; the hybrid multi-cloud resource marking module is used to mark different tenant attributes and business levels for the virtual machine resources of the hybrid multi-cloud. The tenant attribute is used to distinguish which tenant or department the multi-cloud virtual machine belongs to (such as the R&D department, the testing department, etc.), and the business level attribute is used to mark the importance of the business carried by the virtual machine (the business level attribute is an integer number, starting from 1, and the larger the number, the more important the business carried by the virtual machine); the hybrid multi-cloud billing module sets the billing policy for the hybrid multi-cloud resources and generates billing data based on the data collected by the hybrid multi-cloud data collection module; the hybrid multi-cloud cost analysis module analyzes the hybrid multi-cloud billing data generated by the billing module according to a preset analysis algorithm, and gives resource optimization suggestions, such as CPU, memory, and storage reduction suggestions for virtual machines; the hybrid multi-cloud resource scheduling module schedules the cloud resources of the hybrid multi-cloud environment according to the optimization suggestions obtained by the cost analysis module, and performs actual reduction operations, thereby reducing future operating costs.
[0094] As an optional implementation, Figure 5 is a schematic diagram of a method for adjusting cloud resource configuration based on multi-cloud billing data according to an embodiment of the present application, such as Figure 5As shown, resource billing is implemented through the hybrid multi-cloud billing module based on the standard data collected and processed by the hybrid multi-cloud data collection module, including two functions: the billing policy setting submodule and the billing data generation submodule. The billing policy setting submodule is used to collect resource specification unit price data (i.e., unit cost of virtual machine resources) of virtual machines from different clouds. For example, the price collected from the virtual machine of cloud 1 is: 10 yuan / month, memory 10 yuan / month, storage 5 yuan / month, GPU 10 yuan / month, and the price collected from the virtual machine of cloud 2 is: 20 yuan / month, memory 20 yuan / month, storage 10 yuan / month, GPU 10 yuan / month. The collection schemes of other clouds are similar. The billing data generation submodule generates the multi-cloud resource cost Cost(tenant) (i.e., cloud resource information) for each tenant (i.e., each business system in multiple business systems) and the specification billing data Cost(flavor) of the hybrid multi-cloud resources corresponding to a single virtual machine and the actual usage billing data Cost(monitor) of the hybrid multi-cloud resources based on the billing unit price data of different clouds collected by the billing policy setting submodule and the hybrid multi-cloud utilization monitoring data collected by the hybrid multi-cloud data collection module. Cost(flavor) = resource specification size (i.e., virtual machine resource quantity) * resource specification unit price, Cost(monitor) = resource specification size * resource specification unit price * actual resource usage rate, Cost(tenant) = ∑Cost(flavor), that is, the sum of the specification costs of all virtual machines under a tenant. For example, the resource specifications of cloud 1 virtual machine are CPU specification 2 cores, actual utilization rate 20%, unit price 10 yuan / month; memory specification 2G, actual utilization rate 50%, unit price 10 yuan / month; storage specification 100G, actual utilization rate 60%, unit price 5 yuan / month; GPU specification 10G, actual utilization rate 60%, unit price 10 yuan / month, then the cost of this virtual machine is: CPUCost(flavor)=2*10=20 yuan, CPUCost(monitor)=2*10*0 .2=4 yuan; Memory Cost (flavor)=2*10=20 yuan, Memory Cost (monitor)=2*10*0.5=10 yuan; Storage Cost (flavor)=100*5=500 yuan, Storage Cost (monitor)=100*5*0.6=300 yuan; GPU Cost (flavor)=10*10=100 yuan, GPU Cost (monitor)=10*10*0.6=60 yuan. Then, the hybrid multi-cloud cost analysis module performs cost analysis based on the billing data of the hybrid multi-cloud billing module and gives optimization suggestions. The cost analysis module accepts the hybrid multi-cloud resource specification fee data calculated by the hybrid multi-cloud billing module and the actual usage billing data of the hybrid multi-cloud resources, and gives optimization suggestions based on the optimization rules preset by the hybrid multi-cloud cost analysis module. The optimization rules include the following dimensions:
[0095] Optimization rule 1: Tenant cost decision rule, based on the calculated hybrid multi-cloud cost Cost(tenant) of the current tenant, determine whether the preset tenant cost threshold (i.e., cloud resource threshold) has been reached. If Cost(tenant) is greater than the preset cost threshold of the tenant, then enter the next optimization scheduling stage (i.e., determine that the tenant is a reference business system). Otherwise, it is considered that the hybrid multi-cloud resources of the current tenant have not yet reached the level to be optimized.
[0096] Optimization rule 2: virtual machine business priority scheduling rule. After selecting the tenant range to be optimized, the business tag (i.e., business level) of the hybrid multi-cloud virtual machine resources of the tenant to be optimized is determined. If its business tag is less than the preset business level (i.e., the preset business level), it is considered that the current hybrid multi-cloud virtual machine business level can participate in the next scheduling (i.e., it is determined to be the target business), so as to avoid affecting the operation of key businesses when adjusting the virtual machines carrying key business data;
[0097] Optimization rule 3: virtual machine cost decision rule. If the cost analysis data of the virtual machine CPU, memory, and storage = Cost (flavor) - Cost (monitor) is greater than the preset threshold, the cloud resource is considered to be optimized, and corresponding CPU, memory, or storage optimization suggestions are given. Among them, Cost (flavor) represents the specification cost of a specific specification of hybrid multi-cloud virtual machine resources (CPU, memory, storage, GPU, etc.), and Cost (monitor) represents the actual usage billing data of a specific specification of hybrid multi-cloud virtual machine resources (CPU, memory, storage, GPU, etc.).
[0098] Optionally, in the embodiments of the present application, Figure 6 is a schematic diagram of a cloud resource configuration scheduling adjustment implementation according to an embodiment of the present application, such as Figure 6 As shown, the hybrid multi-cloud resource scheduling module receives the optimization suggestions of the hybrid multi-cloud cost analysis module, converts the optimization suggestions into actual cloud resource scheduling instructions, and calls the resource interface (REST / SDK, etc.) of the underlying hybrid multi-cloud platform to complete the actual resource reduction operation on multi-cloud resources (such as cloud 1, etc.).
[0099] Through the above steps, multi-cloud resource cost optimization for multi-tenant models in a hybrid multi-cloud environment can be achieved. A cost analysis decision model is designed (comprehensively evaluating multiple dimensions such as hybrid multi-cloud tenant costs, hybrid multi-cloud resource business priorities, and actual costs of hybrid multi-cloud virtual machines) to perform cost optimization analysis of hybrid multi-cloud resources. Based on the cost analysis results, optimization suggestions are given and the CPU, memory, storage and other configurations of hybrid multi-cloud resources are automatically adjusted to reduce the waste of cloud resources and reduce users' operating costs.
[0100] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0101] In this embodiment, a cloud resource configuration adjustment device is also provided, which is applied to a cloud resource adjustment platform. The cloud resource adjustment platform is connected to multiple business systems, each of which runs multiple businesses. The cloud resource adjustment platform is also connected to multiple cloud platforms that provide cloud resources for the multiple businesses. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and those that have been explained will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0102] Figure 7 is a structural block diagram of a cloud resource configuration adjustment device according to an embodiment of the present application, such as Figure 7 As shown, the device comprises:
[0103] A first screening module 702 is used to screen out a reference business system for which cloud resource configuration is to be adjusted from the multiple business systems according to cloud resource information and cloud resource thresholds corresponding to each business system in the multiple business systems, wherein the cloud resource information is used to indicate the total cost consumed by the current cloud resource configuration on the corresponding business system, and the cloud resource threshold is used to indicate the cost limit of the cloud resource configuration of the corresponding business system;
[0104] A second screening module 704 is used to screen out a target business that allows adjustment of cloud resource configuration from the multiple reference businesses according to the business level of each reference business in the multiple reference businesses run by the reference business system and a preset business level, wherein the business level is used to indicate the importance of the corresponding reference business in the reference business system;
[0105] A generating module 706 is used to generate a cloud resource configuration adjustment parameter of the target business according to the cloud resource configuration information and cloud resource monitoring information of the reference business system, wherein the cloud resource configuration information is used to indicate the cost consumed by the current cloud resource configuration of the reference business system, and the cloud resource monitoring information is used to indicate the cost consumed by the cloud resource configuration put into use in the current cloud resource configuration of the reference business system;
[0106] The adjustment module 708 is used to adjust the cloud platform configuration of the target business in the multiple cloud platforms according to the cloud resource configuration adjustment parameters.
[0107] Through the present application, a cloud resource adjustment platform is set up, and the cloud resource adjustment platform is connected to multiple business systems. Multiple businesses are run in each business system. The cloud resource adjustment platform is also connected to multiple cloud platforms that provide cloud resources for multiple businesses. The reference business system whose cloud resource configuration is to be adjusted is screened out from the multiple business systems according to the cloud resource information corresponding to each business system in the multiple business systems, which is used to indicate the total cost consumed by the current cloud resource configuration on the corresponding business system, and the cloud resource threshold used to indicate the cost limit of the cloud resource configuration of the corresponding business system. Then, according to the business level and preset business level of each reference business in the multiple reference businesses run by the reference business system, the target business that allows the cloud resource configuration to be adjusted is screened out from the multiple reference businesses. According to the cloud resource configuration information of the reference business system, which is used to indicate the cost consumed by the current cloud resource configuration of the reference business system, and the cloud resource monitoring information, which is used to indicate the cost consumed by the cloud resource configuration put into use in the current cloud resource configuration of the reference business system, the cloud resource configuration adjustment parameters of the target business are generated. According to the cloud resource configuration adjustment parameters, the cloud platform configuration of the target business is adjusted in multiple cloud platforms, that is, the reference business system whose cloud resource configuration is to be adjusted is screened out according to the cloud resource consumption costs and cloud resource limit costs corresponding to each business system. In the process of adjusting the cloud resource configuration of the reference business system, the target business that is allowed to adjust the cloud resource configuration is screened according to the importance of each reference business of the reference business system in the reference business system, so as to avoid the adjustment of the cloud resource configuration of important businesses affecting the entire operation of the reference business system and avoiding unreasonable adjustment of the cloud resource configuration. Further, according to the cost consumed by the current cloud resource configuration of the reference business system and the cost consumed by the cloud resource configuration put into use in the current cloud resource configuration of the reference business system, the cloud resource configuration adjustment parameters for the target business are generated. The cloud resource configuration adjustment parameters are obtained according to the specific usage of the cloud resources of the reference business system. By using these parameters, the cloud platform configuration of the target business is further improved, so as to further improve the rationality of the cloud resource configuration adjustment. Therefore, the problem of unreasonable adjustment of the cloud resource configuration can be solved, so as to achieve the effect of improving the rationality of the adjustment of the cloud resource configuration.
[0108] As an optional implementation, the first screening module includes:
[0109] A first comparison unit, configured to compare the cloud resource information corresponding to each business system with the cloud resource threshold to obtain a first comparison result, wherein the first comparison result is used to indicate a size relationship between the cloud resource information corresponding to each business system and the cloud resource threshold;
[0110] A first extraction unit is used to extract a business system whose first comparison result is a target comparison result from the multiple business systems as the reference business system, wherein the target comparison result is a first comparison result whose indicated size relationship is that the cloud resource information is greater than or equal to a cloud resource threshold.
[0111] Optionally, the device further comprises:
[0112] A first extraction module is used to extract, from the multiple cloud platforms, the virtual machine resource amounts and unit costs of the virtual machine resources used by each business system on each cloud platform;
[0113] A first calculation module is used to calculate the product of the virtual machine resource amount of the virtual machine resources used by each business system on each cloud platform and the unit cost of the virtual machine resources to obtain the business system, cloud platform and virtual machine resource cost with corresponding relationship;
[0114] The second calculation module is used to calculate the sum of the virtual machine resource costs of each business system on the multiple cloud platforms to obtain the cloud resource information corresponding to each business system.
[0115] As an optional implementation, the second screening module includes:
[0116] A second comparison unit is used to compare the service level of each reference service with the preset service level to obtain a second comparison result, wherein the second comparison result is used to indicate the high-low relationship between the service level of each reference service and the preset service level, and the reference service corresponding to the higher service level is more important in the reference service system;
[0117] A second extraction unit is used to extract the reference business whose second comparison result is the reference comparison result from the multiple reference businesses as the target business, wherein the reference comparison result is the second comparison result whose indicated high-low relationship is that the business level is lower than or equal to the preset business level.
[0118] Optionally, the device further comprises:
[0119] An acquisition module, used for acquiring service identifiers of a plurality of reference services run by the reference service system;
[0120] An allocation module, configured to allocate the service level to each reference service according to the importance of each reference service in the reference service system, wherein a more important reference service in the reference service system is allocated a higher service level;
[0121] The recording module is used to record the service identifier and the service level having a corresponding relationship for the reference service system.
[0122] As an optional implementation, the generating module includes:
[0123] a calculation unit, configured to calculate the difference between the type configuration information and the type monitoring information corresponding to each cloud resource type in the reference business system, and obtain a cloud resource type and a target value having a corresponding relationship, wherein the cloud resource configuration information includes the cloud resource type and the type configuration information having a corresponding relationship, the cloud resource monitoring information includes the cloud resource type and the type monitoring information having a corresponding relationship, the type configuration information is used to indicate the cost consumed by the corresponding cloud resource type in the current cloud resource configuration of the reference business system, and the type monitoring information is used to indicate the cost consumed by the resources put into use by the corresponding cloud resource type in the current cloud resource configuration of the reference business system;
[0124] a third comparison unit, used to compare the target value corresponding to each of the cloud resource types with the preset value corresponding to each of the cloud resource types, to obtain a third comparison result, wherein the third comparison result is used to indicate a size relationship between the target value corresponding to each of the cloud resource types and the preset value corresponding to each of the cloud resource types;
[0125] A third extraction unit is used to extract the cloud resource type whose third comparison result is a candidate comparison result from the cloud resource type as the target cloud resource type, wherein the candidate comparison result is a third comparison result whose indicated size relationship is that the target value is greater than or equal to a preset value;
[0126] A generation unit is used to generate a target adjustment amount corresponding to the target cloud resource type according to a difference between the target value corresponding to the target cloud resource type and the corresponding preset value, and a difference between the cloud resource information corresponding to the reference business system and the corresponding cloud resource threshold, so as to obtain the cloud resource configuration adjustment parameters, wherein the cloud resource configuration adjustment parameters include the target business, the target cloud resource type and the target adjustment amount having a corresponding relationship.
[0127] Optionally, the device further comprises:
[0128] A second extraction module is used to extract, from the multiple cloud platforms, the type resource amount, type usage rate and type unit cost of various cloud resource types used by the reference business system on each cloud platform;
[0129] The third calculation module is used to calculate the product of the type resource amount and the type unit cost of various cloud resource types used by the reference business system on each cloud platform to obtain the cloud resource type, cloud platform and type cost with corresponding relationships, and calculate the product of the type resource amount, type utilization rate and type unit cost of various cloud resource types used by the reference business system on each cloud platform to obtain the cloud resource type, cloud platform and type usage cost with corresponding relationships;
[0130] The fourth calculation module is used to calculate the sum of the type resource costs of the various cloud resource types on the multiple cloud platforms, and obtain the cloud resource types and the type configuration information with corresponding relationships as the cloud resource configuration information of the reference business system, and calculate the sum of the type usage fees of the various cloud resource types on the multiple cloud platforms, and obtain the cloud resource types and the type monitoring information with corresponding relationships as the cloud resource monitoring information of the reference business system.
[0131] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0132] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0133] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0134] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0135] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0136] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0137] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0138] An embodiment of the present application also provides a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.
[0139] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0140] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0141] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for adjusting cloud resource configuration, It is characterized in that Applied to a cloud resource adjustment platform, the cloud resource adjustment platform is connected to a plurality of business systems, each of the business systems runs a plurality of businesses, and the cloud resource adjustment platform is also connected to a plurality of cloud platforms that provide cloud resources for the plurality of businesses, the method comprising: According to the cloud resource information and cloud resource threshold corresponding to each business system in the multiple business systems, a reference business system for which cloud resource configuration is to be adjusted is screened out from the multiple business systems, wherein the cloud resource information is used to indicate the total cost consumed by the current cloud resource configuration on the corresponding business system, and the cloud resource threshold is used to indicate the cost limit of the cloud resource configuration on the corresponding business system; According to the service level of each reference service among the multiple reference services run by the reference service system and the preset service level, a target service for which cloud resource configuration adjustment is allowed is selected from the multiple reference services, wherein the service level is used to indicate the importance of the corresponding reference service in the reference service system; Generate cloud resource configuration adjustment parameters for the target business according to the cloud resource configuration information and cloud resource monitoring information of the reference business system, wherein the cloud resource configuration information is used to indicate the cost consumed by the current cloud resource configuration of the reference business system, and the cloud resource monitoring information is used to indicate the cost consumed by the cloud resource configuration put into use in the current cloud resource configuration of the reference business system; The cloud platform configuration of the target business is adjusted in the multiple cloud platforms according to the cloud resource configuration adjustment parameters.
2. The method according to claim 1, It is characterized in that The step of selecting a reference business system for which cloud resource configuration is to be adjusted from the multiple business systems according to the cloud resource information and cloud resource thresholds corresponding to each business system in the multiple business systems includes: Comparing the cloud resource information corresponding to each business system with the cloud resource threshold to obtain a first comparison result, wherein the first comparison result is used to indicate a size relationship between the cloud resource information corresponding to each business system and the cloud resource threshold; A business system whose first comparison result is a target comparison result is extracted from the multiple business systems as the reference business system, wherein the target comparison result is a first comparison result whose indicated size relationship is that the cloud resource information is greater than or equal to a cloud resource threshold.
3. The method according to claim 2, It is characterized in that Before selecting a reference business system for adjusting cloud resource configuration from the multiple business systems according to the cloud resource information and cloud resource thresholds corresponding to each of the multiple business systems, the method further includes: Extracting, from the multiple cloud platforms, the virtual machine resource amounts and unit costs of the virtual machine resources used by the respective business systems on the respective cloud platforms; Calculate the product of the virtual machine resource amount of the virtual machine resources used by each business system on each cloud platform and the unit cost of the virtual machine resources to obtain the business system, cloud platform and virtual machine resource cost with corresponding relationship; The sum of the virtual machine resource costs of each business system on the multiple cloud platforms is calculated to obtain the cloud resource information corresponding to each business system.
4. The method according to claim 1, It is characterized in that The step of selecting a target service for which cloud resource configuration is to be adjusted from the multiple reference services according to the service level and the preset service level of each reference service among the multiple reference services run by the reference service system includes: Comparing the service level of each reference service with the preset service level to obtain a second comparison result, wherein the second comparison result is used to indicate the high-low relationship between the service level of each reference service and the preset service level, and the reference service corresponding to the higher service level is more important in the reference service system; A reference service whose second comparison result is a reference comparison result is extracted from the multiple reference services as the target service, wherein the reference comparison result is a second comparison result indicating a high-low relationship that the service level is lower than or equal to the preset service level.
5. The method according to claim 4, It is characterized in that Before selecting the target service for which cloud resource configuration is to be adjusted from the multiple reference services according to the service level and the preset service level of each reference service among the multiple reference services run by the reference service system, the method further includes: Acquire service identifiers of multiple reference services run by the reference service system; Allocating the service level to each reference service according to the importance of each reference service in the reference service system, wherein the more important the reference service is in the reference service system, the higher the service level is allocated to it; The service identifier and the service level having a corresponding relationship are recorded for the reference service system.
6. The method according to claim 1, It is characterized in that The step of generating the cloud resource configuration adjustment parameters of the target service according to the cloud resource configuration information and the cloud resource monitoring information of the reference service system includes: Calculate the difference between the type configuration information and the type monitoring information corresponding to each cloud resource type in the reference business system to obtain cloud resource types and target values having corresponding relationships, wherein the cloud resource configuration information includes the cloud resource types and the type configuration information having corresponding relationships, the cloud resource monitoring information includes the cloud resource types and the type monitoring information having corresponding relationships, the type configuration information is used to indicate the cost consumed by the corresponding cloud resource type in the current cloud resource configuration of the reference business system, and the type monitoring information is used to indicate the cost consumed by the resources put into use by the corresponding cloud resource type in the current cloud resource configuration of the reference business system; Comparing the target value corresponding to each of the cloud resource types with the preset value corresponding to each of the cloud resource types to obtain a third comparison result, wherein the third comparison result is used to indicate a size relationship between the target value corresponding to each of the cloud resource types and the preset value corresponding to each of the cloud resource types; Extracting the cloud resource type for which the third comparison result is a candidate comparison result from the cloud resource types as the target cloud resource type, wherein the candidate comparison result is the third comparison result for which the indicated size relationship is that the target value is greater than or equal to a preset value; Based on the difference between the target value corresponding to the target cloud resource type and the corresponding preset value, as well as the difference between the cloud resource information corresponding to the reference business system and the corresponding cloud resource threshold, the target adjustment amount corresponding to the target cloud resource type is generated to obtain the cloud resource configuration adjustment parameters, wherein the cloud resource configuration adjustment parameters include the target business, the target cloud resource type and the target adjustment amount that have a corresponding relationship.
7. The method according to claim 6, It is characterized in that Before generating the cloud resource configuration adjustment parameters of the target service according to the cloud resource configuration information and the cloud resource monitoring information of the target service, the method further includes: Extracting, from the multiple cloud platforms, the type resource amount, type usage rate, and type unit cost of various cloud resource types used by the reference business system on each cloud platform; Calculate the product of the type resource amount and type unit cost of various cloud resource types used by the reference business system on each cloud platform to obtain cloud resource types, cloud platforms, and type costs with corresponding relationships, and calculate the product of the type resource amount, type utilization rate, and type unit cost of various cloud resource types used by the reference business system on each cloud platform to obtain cloud resource types, cloud platforms, and type usage costs with corresponding relationships; Calculate the sum of the type resource costs of the various cloud resource types on the multiple cloud platforms, and obtain the cloud resource types and the type configuration information with corresponding relationships as the cloud resource configuration information of the reference business system; and calculate the sum of the type usage fees of the various cloud resource types on the multiple cloud platforms, and obtain the cloud resource types and the type monitoring information with corresponding relationships as the cloud resource monitoring information of the reference business system.
8. A cloud resource configuration adjustment device, It is characterized in that Applied to a cloud resource adjustment platform, the cloud resource adjustment platform is connected to multiple business systems, each of the business systems runs multiple businesses, and the cloud resource adjustment platform is also connected to multiple cloud platforms that provide cloud resources for the multiple businesses. The device includes: A first screening module is used to screen out a reference business system for which cloud resource configuration is to be adjusted from the multiple business systems according to cloud resource information and cloud resource thresholds corresponding to each business system in the multiple business systems, wherein the cloud resource information is used to indicate a total cost consumed by the current cloud resource configuration on the corresponding business system, and the cloud resource threshold is used to indicate a cost limit on the cloud resource configuration by the corresponding business system; A second screening module is used to screen out a target business that allows adjustment of cloud resource configuration from the multiple reference businesses according to the business level of each reference business in the multiple reference businesses run by the reference business system and a preset business level, wherein the business level is used to indicate the importance of the corresponding reference business in the reference business system; A generating module, configured to generate cloud resource configuration adjustment parameters of the target business according to the cloud resource configuration information and cloud resource monitoring information of the reference business system, wherein the cloud resource configuration information is used to indicate the cost consumed by the current cloud resource configuration of the reference business system, and the cloud resource monitoring information is used to indicate the cost consumed by the cloud resource configuration put into use in the current cloud resource configuration of the reference business system; An adjustment module is used to adjust the cloud platform configuration of the target business in the multiple cloud platforms according to the cloud resource configuration adjustment parameters.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.
