A cloud environment management method, cloud environment management platform and storage medium
By obtaining the usage data of the cloud environment, identifying idle status and recycling, the problem of limited resources of the cloud platform is solved, efficient utilization and reuse of cloud environment resources is achieved, and corporate R&D efficiency is improved.
Patent Information
- Application Number
- CN202010617016.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-30
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2040-06-30
AI Technical Summary
When cloud platform resources are limited, how to ensure the effective allocation and utilization of cloud environment resources required for R&D activities to improve enterprise R&D efficiency.
By obtaining the usage data of the cloud environment, determining its usage indicators and status, identifying the idle cloud environment, and recycling and reuse it, the infinite recycling of cloud environment resources is achieved.
It has improved the utilization rate of cloud environment resources, reduced resource waste, helped enterprises to develop and innovate, and achieved efficient turnover and reuse of resources.
Smart Images

Figure CN113867926B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to, but are not limited to, the field of computers. Specifically, they relate to, but are not limited to, a cloud environment management method, a cloud environment management platform, and a storage medium. Background Art
[0002] In recent years, cloud computing technology has rapidly developed. It provides standardized cloud environments on a single cloud platform and automates application deployment based on these environments, allowing users to access cloud environments on demand through application. This application model has rapidly gained recognition and adoption. Currently, automated deployment of application environments is available for users at the bare metal layer, IaaS (Infrastructure as a Service) layer, PaaS (Platform-as-a-Service) layer, and SaaS (Software-as-a-Service) layer. In many enterprises, with centralized resource management, R&D users can simply access cloud environments through a unified cloud management platform to conduct various R&D activities, significantly improving R&D efficiency. However, cloud platforms have limited resources, making unlimited cloud environment allocation impossible. Therefore, ensuring the continued progress of R&D activities has become a pressing issue. Summary of the Invention
[0003] The cloud environment management method, cloud environment management platform, and storage medium provided by the embodiments of the present invention mainly solve the technical problem of how to ensure the cloud environment required for R&D activities when cloud platform resources are limited.
[0004] To solve the above technical problems, an embodiment of the present invention provides a cloud environment management method, including:
[0005] Obtaining cloud environment usage data, which can represent the current usage of the cloud environment;
[0006] Determine usage indicators for the cloud environment based on usage data of the cloud environment;
[0007] Determine the current state of the cloud environment based on its usage metrics;
[0008] If the cloud environment is currently idle, the cloud environment will be recycled.
[0009] An embodiment of the present invention further provides a cloud environment management platform, the cloud environment management platform including a processor, a memory and a communication bus;
[0010] The communication bus is used to realize the connection and communication between the processor and the memory;
[0011] The processor is used to execute one or more programs stored in the memory to implement the steps of the above-mentioned cloud environment management method.
[0012] An embodiment of the present invention further provides a storage medium storing a cloud environment recycling program. The cloud environment recycling program can be executed by one or more processors to implement the steps of the above-mentioned cloud environment management method.
[0013] According to the cloud environment management method, cloud environment management platform and storage medium provided by the embodiment of the present invention, by obtaining the usage data of the cloud environment, then determining the usage indicators of the cloud environment based on the usage data of the cloud environment, and determining the current status of the cloud environment based on the usage indicators of the cloud environment. If it is determined that the cloud environment is currently in an idle state based on the usage indicators of the cloud environment, the cloud environment can be recycled. In this way, the recycled cloud environment can be applied by other users for other research and development activities. Through the cloud environment management method provided by the embodiment of the present invention, the idle cloud environment is recycled as a whole, and the reuse of the idle cloud environment is realized. It can realize the infinite recycling of cloud environment resources when the actual resources are limited, which is conducive to improving the utilization rate of cloud environment resources and providing guarantees for enterprise research and development innovation.
[0014] Other features and corresponding beneficial effects of the present invention are described in the latter part of the specification, and it should be understood that at least some of the beneficial effects become obvious from the description in the specification of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A flow chart of the cloud environment management method provided in the first embodiment of the present invention;
[0016] Figure 2 A flowchart of the cloud environment management platform provided in the first embodiment of the present invention evaluating the current state of the cloud environment;
[0017] Figure 3 A flowchart of the cloud environment management platform provided in the first embodiment of the present invention setting a status assessment policy according to a policy setting instruction input by a manager;
[0018] Figure 4 An interactive interface of the cloud environment management platform shown in the first embodiment of the present invention;
[0019] Figure 5 This is another interactive interface of the cloud environment management platform shown in the first embodiment of the present invention;
[0020] Figure 6 A flow chart of the cloud environment management method provided in the second embodiment of the present invention;
[0021] Figure 7This is a schematic diagram of the principle of performing status assessment based on two status assessment strategies shown in the second embodiment of the present invention;
[0022] Figure 8 This is a hardware structure diagram of the cloud environment management platform provided in Example 3 of the present invention. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the following is a further detailed description of the embodiments of the present invention through specific implementation methods in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0024] Example 1:
[0025] In order to solve the problem in related technologies that, after the cloud environment is allocated, subsequent R&D activities are unable to obtain the required cloud environment due to limited resources on the cloud platform, thus affecting the R&D and innovation effects of enterprises, this embodiment provides a cloud environment management method. Figure 1 A flowchart showing a cloud environment management method is shown below:
[0026] S102: The cloud environment management platform obtains usage data of the cloud environment.
[0027] In this embodiment, the usage data obtained by the cloud environment management platform is data that can represent the current usage of the corresponding cloud environment. It is understandable that the cloud environment's CPU resource occupancy, memory resource occupancy, and storage resource occupancy can, to a certain extent, represent the current usage of the cloud environment. For example, at time t1, the cloud environment's memory resource occupancy rate in the data obtained by the cloud environment platform is 32%, while at the current time, the cloud environment's memory resource occupancy rate is 58%, which means that the cloud environment has been used from time t1 to the current time. On the other hand, the cloud environment's network traffic can also represent the cloud environment's usage. In addition, the cloud environment's user login status can also, to a certain extent, reflect the cloud environment's user usage. Therefore, in this embodiment, the usage data obtained by the cloud environment management platform that can represent the cloud environment's current usage includes at least one of the above-mentioned data.
[0028] If the usage data that the cloud environment management platform needs to obtain includes data that can reflect at least one of the cloud environment's CPU resource occupancy, memory resource occupancy, and storage resource occupancy, or includes data that can reflect the cloud environment's network process, then data collection needs to be performed in the corresponding cloud environment. In some examples of this embodiment, the cloud environment management platform can deploy an information collection agent in the corresponding cloud environment, allowing the information collection agent to help collect usage data that can characterize at least one of the cloud environment's CPU resource occupancy, memory resource occupancy, and storage resource occupancy in the cloud environment, and feed the collected data back to the cloud environment management platform. In one example of this embodiment, the cloud environment management platform can obtain the communication address of the corresponding cloud environment, such as the cloud environment's IP address, and the user name and login password for logging into the corresponding cloud environment, and then log in to the corresponding cloud environment according to the cloud environment's communication address, user name, and login password, and deploy the information collection agent in the corresponding cloud environment.
[0029] If the usage data the cloud environment management platform needs to collect includes data reflecting cloud environment logins, data collection can be performed without the cloud environment itself. In some cases, the cloud environment management platform already records user login information, so the cloud environment can directly obtain this type of usage data without the need for an information collection agent.
[0030] S104: The cloud environment management platform determines a usage indicator of the cloud environment based on the usage data of the cloud environment.
[0031] After obtaining the usage data of the cloud environment, the cloud environment management platform can process the usage data and then abstract the usage indicators of the cloud environment. In some examples of this embodiment, the usage data obtained by the cloud environment management platform includes some invalid data or some obviously erroneous data. Therefore, the cloud environment management platform will clean and filter the obtained usage data to filter out invalid data or obviously erroneous data, and then analyze and process the remaining data to abstract the usage indicators of the cloud environment.
[0032] In some examples of this embodiment, the cloud environment usage indicator includes at least one of CPU utilization, memory utilization, total network traffic, login frequency, and last access duration. "Login frequency" refers to the number or frequency of logins to the cloud environment within a recent preset period of time, and "last access duration" refers to the time difference between the last time the cloud environment was accessed and the current time.
[0033] It goes without saying that if the usage data is processed to obtain the cloud environment's CPU utilization, the pre-acquired usage data should include data representing the cloud environment's CPU resource usage. If the usage data is processed to obtain the cloud environment's memory utilization, the pre-acquired usage data should include data representing the cloud environment's memory resource usage. If the usage data is processed to obtain the cloud environment's total network traffic, the pre-acquired usage data should include data representing the cloud environment's network traffic. Therefore, if the cloud environment's usage metrics include at least one of CPU utilization, memory utilization, and total network traffic, the cloud environment management platform must deploy an information collection agent within the cloud environment before acquiring the cloud environment's usage data. If the usage data is processed to obtain the cloud environment's login frequency and / or recent access duration, the pre-acquired usage data should include data representing the cloud environment's login status.
[0034] S106: The cloud environment management platform determines the current state of the cloud environment based on the usage indicators of the cloud environment.
[0035] After the cloud environment management platform determines the cloud environment's usage indicators, it can evaluate the cloud environment's current state based on the usage indicators. In this embodiment, the cloud environment's usage status includes an idle state and a non-idle state. The so-called non-idle state is actually an active state. It is worth noting that in this embodiment, if a cloud environment is determined to be idle, it does not mean that the cloud environment is absolutely idle; it only indicates that the cloud environment is idle under the evaluation criteria used by the cloud environment management platform.
[0036] If only one usage metric is used to assess the status of a cloud environment, the cloud environment platform can set a threshold for that usage metric, also known as an idle standard value. The platform then uses the value of that usage metric as the current idle value for the cloud environment. If the value of that usage metric meets the idle standard value, the cloud environment can be considered idle and eligible for recycling. In other words, as long as the value of the corresponding usage metric meets the threshold, the cloud environment can be considered idle.
[0037] However, in more examples, two or even more usage indicators are combined when evaluating the status of the cloud environment, but these usage indicators may have different weights and measures. Therefore, when evaluating the status of a cloud environment, the cloud environment management platform needs to convert these usage indicators with different weights and measures into a unified standard for evaluation. This is actually a normalization process for different usage indicators of the cloud environment. In some examples of this embodiment, the cloud environment management platform can convert all usage indicators into percentages: for example, a maximum value is set for different usage indicators, and then the ratio of the cloud environment usage indicator value to the maximum value is determined. In this way, the values of all usage indicators are converted to values between 0 and 1. Of course, a similar method can also be used to convert the values of all usage indicators into 1-100 or 1-1000, and the size of each usage indicator can be measured according to the percentage system or the thousandth system.
[0038] It should be understood that different usage metrics are weighted differently in different scenarios or for different enterprises. Therefore, in some cases, different usage metrics may not be weighted exactly the same when evaluating the status of a cloud environment. For example, in one example, an administrator may set a requirement that as long as CPU utilization, memory utilization, and login frequency meet the requirements, the cloud environment is considered idle, while the recent access duration and total network traffic are not considered important. Alternatively, the recent access duration and total network traffic can be weighted as 0 when evaluating the status of the cloud environment.
[0039] In some examples of this embodiment, the cloud environment management platform can refer to Figure 2 The following process is used to evaluate the current state of the cloud environment:
[0040] S202: Determine the current idle value of the cloud environment according to the usage indicators and status assessment strategy of the cloud environment.
[0041] The higher the idle value of a cloud environment, the more likely it is to be idle and the more likely it is to be reclaimed. The status assessment strategy includes the weight of each usage indicator in determining the idle value of the cloud environment. In one example of this embodiment, after the cloud environment management platform converts the various usage indicators of the cloud environment into a unified metric, it can determine the idle value of the cloud environment based on the weight of each indicator:
[0042]
[0043] Where n is the total number of usage indicators used to evaluate the current state of the cloud environment, W i is the value of the i-th usage indicator after being converted to a unified measurement, P i is the weight of the i-th usage indicator, and S is the idle value of the cloud environment.
[0044] It is understandable that other methods may be used to calculate the idle value of the cloud environment, such as the method provided in the second embodiment.
[0045] S204: Determine whether the current idle value of the cloud environment reaches the idle standard value corresponding to the status assessment policy.
[0046] If the judgment result is yes, then go to S206, otherwise go to S208.
[0047] Each status assessment strategy has a corresponding idle standard value. If the idle value of a cloud environment under the status assessment strategy reaches the idle standard value, it means that the cloud environment is in an idle state. Otherwise, it means that the cloud environment is currently in a non-idle state.
[0048] S206: Determine that the cloud environment is currently in an idle state.
[0049] S208: Determine whether the cloud environment is currently in a non-idle state.
[0050] In some examples of this embodiment, the cloud environment may adopt only one state assessment strategy to assess the current state of the cloud environment, but in other examples of this embodiment, the cloud environment may adopt at least two state assessment strategies simultaneously to assess the current state of the cloud environment. The usage indicators in each state assessment strategy are not exactly the same, but may partially overlap. Of course, even if two state assessment strategies include some of the same usage indicators, the weights of these usage indicators in the two state assessment strategies may also be different. For example, in one example, the cloud environment management platform adopts state assessment strategy a and state assessment strategy b to assess the state of the cloud environment, wherein the usage indicators focused on by state assessment strategy a include CPU utilization, memory utilization, and the length of the most recent access, while the usage indicators focused on by state assessment strategy b include CPU utilization and the total network traffic. Both state assessment strategies include CPU utilization, but the weights of CPU utilization in the two state assessment strategies are different.
[0051] In some cases, the various status assessment policies have an "or" logic relationship. That is, as long as the idle value of the cloud environment under any of the status assessment policies reaches the idle standard value corresponding to that status assessment policy, it is considered that the cloud environment is idle and can be recycled. In other cases, the various status assessment policies have an "and" logic relationship. That is, if the idle value of the cloud environment under only one of the status assessment policies reaches the corresponding idle standard value, it does not mean that the cloud environment is idle. Instead, the cloud environment must reach the corresponding idle standard value under all status assessment policies to be considered idle.
[0052] In this embodiment, the status assessment strategy can be set by the administrator. For example, in some examples of this embodiment, the cloud environment management platform can include a human-computer interaction device (display device and input device). The administrator can input the policy setting instruction to the cloud environment management platform through the input device. After receiving the policy setting instruction input by the administrator, the cloud environment management platform determines the status assessment strategy according to the instruction. Figure 3 :
[0053] S302: The cloud environment management platform receives a policy setting instruction through an input device.
[0054] In some examples of this embodiment, the policy setting instructions include the level requirements of each usage indicator of the cloud environment that can be recycled, and the weight of each usage indicator in determining the idle value of the cloud environment. It should be understood that in some cases, the cloud environment management platform has a friendly human-computer interaction interface that can guide users when the administrator issues the policy setting instructions. For example, Figure 4 In an interactive interface of the cloud environment management platform shown in FIG, the cloud environment management platform provides optional usage indicators through a display device. When setting a status assessment strategy, the administrator can select the usage indicators that the status assessment strategy focuses on from these usage indicators, and then Figure 5 The interactive interface shown indicates the weight of the selected usage indicator and the idle level requirement.
[0055] S304: The cloud environment management platform determines a status assessment policy according to the policy setting instructions.
[0056] After receiving the user's policy setting instructions, the cloud environment management platform can parse the policy setting instructions and then generate a status assessment policy.
[0057] In addition, if the administrator sets more than one status assessment strategy, he or she should also specify to the cloud environment management platform the logical relationship between each status assessment strategy when used to assess the cloud environment status.
[0058] S108: If the cloud environment is currently in an idle state, the cloud environment management platform recycles the cloud environment.
[0059] After determining that a cloud environment is idle, the cloud environment management platform can recycle the cloud environment. It should be understood that recycling the cloud environment actually means recycling all the resources of the cloud environment together: the cloud environment management platform releases all resources in the cloud environment, and then puts the recycled resources into the corresponding resource pool of the cloud platform for allocation when a cloud environment application is received in the future.
[0060] In some examples of this embodiment, if the cloud environment management platform determines that a cloud environment is currently in a non-idle state, it can predict the time when the cloud environment enters the idle state, that is, predict the recycling time when the cloud environment enters the recyclable state.
[0061] It should be understood that for any cloud environment, from the time it is allocated for use, to the time it enters its peak usage period, and finally to the end of use, the user's usage of the cloud environment generally follows certain patterns. Therefore, based on the historical idle value of a cloud environment, the time when the cloud environment enters an idle state can be predicted. For example, in some examples, when the cloud environment management platform determines that the idle value of a cloud environment is less than the standard value of the corresponding status assessment policy, the current idle value of the cloud environment can be recorded and stored. In this way, when the cloud environment management platform needs to predict the recycle time of a cloud environment, it can make a prediction based on the recorded historical idle values. In some examples of this embodiment, when predicting the recycle time of a cloud environment, a prediction model can be used. The prediction model can be composed of one or more prediction functions. In some examples of this embodiment, a prediction model only has one prediction function. The cloud environment management platform inputs the historical idle value of the cloud environment into the prediction function to obtain the recycle time of the cloud environment. In some other examples of this embodiment, a prediction model includes two or more prediction functions at the same time, and these prediction functions can be used separately. Therefore, before the cloud environment management platform predicts the recovery time of a certain cloud environment, it needs to first select one of the prediction functions of the prediction model as the final prediction function, and then use the final prediction function to determine the recovery time of the cloud environment.
[0062] The cloud environment management method provided by the embodiment of the present invention evaluates the status of the cloud environment, thereby identifying the cloud environments that are currently idle, and then releases and recycles the resources of these idle cloud environments, thereby avoiding resource waste, improving resource utilization and turnover, and helping enterprises improve R&D efficiency.
[0063] Example 2:
[0064] In order to make those skilled in the art better understand the advantages and details of the solution provided by the embodiment of the present invention, this embodiment will continue to illustrate the cloud environment management solution based on the above embodiment and with examples. Figure 6 A flow chart is shown:
[0065] S602: Collect usage data of the cloud environment.
[0066] In this embodiment, the usage data collected by the cloud environment management platform must at least ensure that the following cloud environment usage indicators can be subsequently determined: CPU utilization, memory utilization, total network traffic, login frequency, and recent access duration. Of course, in other examples of this embodiment, the usage data collected by the cloud environment management platform also includes data that can reflect the utilization of cloud environment storage resources or data that can reflect the usage of cloud environment I / O interfaces.
[0067] S604: Process the cloud environment usage data to obtain cloud environment usage indicators.
[0068] The cloud environment management platform cleans and processes the collected usage data, filters out invalid data or obviously erroneous data, and then analyzes and processes the remaining usage data to abstract the usage indicators of the cloud environment.
[0069] Assume that there are two cloud environments, E1 and E2. The usage indicators of these two cloud environments are shown in Table 1:
[0070] Table 1
[0071]
[0072] S608: Determine the idle value of the cloud environment under each state assessment strategy according to the usage indicator of the cloud environment.
[0073] In this embodiment, assume that the administrator sets two status assessment policies, namely, Status Assessment Policy A and Status Assessment Policy B, with a logical relationship of "OR," to evaluate the idle state of the cloud environment. The idle standard values corresponding to these two status assessment policies are both 55. In some examples of this embodiment, the cloud environment management platform classifies each usage indicator into an idle level based on its value. For example, see Table 2:
[0074] Table 2
[0075] Idle Level CPU utilization Memory utilization Total network traffic Login frequency Last visit duration high C<5% M<10% N<1(M) L<10 T>48(h) middle C<10% M<20% N<5(M) L<20 T>24(h) Low C<20% M<30% N<10(M) L<30 T>8(h)
[0076] As shown in Table 2, for the CPU utilization metric, if it's below 20% (and greater than or equal to 10%), the idle level is considered low. If it's below 10% (and greater than or equal to 5%), the idle level is medium. And if it's below 5%, the idle level is high. The idle level classification for other usage metrics is similar. For example, for login frequency, if the number of logins within the most recent preset time period is less than 10, the idle level is considered high. If the number of logins is between 10 and 20, the idle level is considered medium. I won't go into details here.
[0077] Table 3 shows the contents of the two status assessment strategies respectively:
[0078] Table 3
[0079]
[0080] As shown in Table 3, state assessment strategy a focuses only on three usage metrics: CPU utilization, memory utilization, and recent access duration. Its idle level requirements for these three metrics are high, medium, and low, with weights of 0.9, 0.9, and 0.6, respectively. State assessment strategy b, on the other hand, focuses on four usage metrics: memory utilization, total network traffic, login frequency, and recent access duration. Its idle level requirements for these four metrics are medium, high, high, and low, with weights of 0.8, 0.4, 0.6, and 0.1, respectively.
[0081] In this embodiment, the total score under a status assessment policy is 100. If there are n usage indicators, the score corresponding to each usage indicator is 100 / n. For example, in status assessment policy a, the score for each usage indicator is 100 / 3, while in status assessment policy b, the score for each usage indicator is 25. Under a status assessment policy, if a usage indicator of a cloud environment meets the idle state requirement of the status assessment policy for that usage indicator, the cloud environment will receive the score corresponding to that usage indicator. Otherwise, the score corresponding to that usage indicator of the cloud environment will be 0. For example, under status assessment policy b, if the recent access duration of a cloud environment meets the minimum requirement of status assessment policy b, the cloud environment will receive a score of 20.
[0082] In this embodiment, the idle value of a cloud environment under a state assessment strategy can be determined according to the following formula:
[0083]
[0084] Among them, S is the idle value of the cloud environment under the status assessment strategy, n is the total number of indicators used under the status assessment strategy, V i is the score corresponding to the i-th usage indicator. It can be understood that V i The value of is either 100 / n or 0; P i is the weight of the i-th usage indicator.
[0085] The following is the calculation of the idle values of the two cloud environments E1 and E2 in Table 1 under the two status assessment strategies:
[0086] First, for cloud environment E1, its idle value under state assessment strategy a
[0087]
[0088] Its idle value under state assessment strategy b
[0089]
[0090] For cloud environment E2, its idle value under status assessment strategy a is
[0091]
[0092] Its idle value under state assessment strategy b
[0093]
[0094] S610: Determine whether the idle value under a certain status assessment policy in the cloud environment reaches the idle standard value corresponding to the status assessment policy.
[0095] If the judgment result is yes, proceed to S612, otherwise continue to execute S614.
[0096] As can be seen, the idle value of cloud environment E1 under state assessment strategy a is greater than the idle standard value of state assessment strategy a, so cloud environment E1 is in an idle state. However, the idle values of cloud environment E2 under both state assessment strategies a and b are less than the corresponding idle standard values, so cloud environment E2 is in a non-idle state.
[0097] Figure 7 Figure 2 shows a schematic diagram of the principles for evaluating the cloud environment state based on usage indicators k1, k2, k3, and k4 under state assessment strategies a and b, respectively. After determining usage indicators k1, k2, k3, and k4 based on the cloud environment's usage data, the idle level for each usage indicator is determined according to Table 2. The idle value of the cloud environment is then determined using state assessment strategies a and b, respectively. Finally, the cloud environment's state is determined based on the logical relationship between the two state assessment strategies.
[0098] S612: Reclaim the cloud environment.
[0099] After judgment, it can be determined that the cloud environment E1 needs to be recycled, so the cloud environment management platform releases all resources of the cloud environment E1 and recycles the cloud environment E1 as a whole.
[0100] S614: Determine the fitting difference of each prediction function in the prediction model according to the historical idle value of the cloud environment.
[0101] Since cloud environment E2 cannot be recycled temporarily, the cloud environment management platform records the idle values of cloud environment E2 under status assessment strategies a and b respectively, and then predicts the recycling time of cloud environment E2 based on all recorded historical idle values.
[0102] In this embodiment, the prediction model M is:
[0103]
[0104] The cloud environment management platform can store the historical idle values y of the cloud environment E2 t1 、y t2 、y t3 ...y tm Input each prediction function of the prediction model M respectively, obtain the predicted idle value corresponding to each prediction function, and then determine the fitting difference Ac corresponding to each prediction function according to the following formula:
[0105]
[0106] Among them, y t1 、y t2 、y t3 ...y tm They are the idle values of cloud environment E2 at time t1, time t2, time t3, ... time tn, m times, and time tm is the closest to the current time. c is the fitting difference of the prediction function, y i is the idle value at the i-th moment; y t is the predicted idle value obtained by inputting the historical idle value into the prediction function, and u is the accuracy factor.
[0107] S616: Select a prediction function with the smallest fitting difference as the final prediction function.
[0108] After determining the fit difference Ac of each prediction function, a prediction function may be selected from each prediction function based on the fit difference as the final prediction function. In some examples of this embodiment, the cloud environment management platform may select the prediction function with the smallest fit difference as the final prediction function. However, in other examples of this embodiment, the cloud environment management platform may select a prediction function with a fit difference less than a preset threshold as the final prediction function. If there are two or more prediction functions in the prediction model M with a fit difference less than the preset threshold, the cloud environment management platform may also randomly select one of these prediction functions as the final prediction function.
[0109] S618: Predicting the reclaim time of the cloud environment based on the final prediction function and the historical idle value of the cloud environment.
[0110] After selecting the final prediction function, the cloud environment management platform can determine the recycle time of the cloud environment E2 based on the final prediction function, the recorded historical idle values of the cloud environment E2 under status assessment strategies a and b, and the logical relationship between status assessment strategies a and b.
[0111] The cloud environment platform management solution provided in this embodiment collects information representing the resource usage of the cloud environment and analyzes this information to determine the status of the cloud environment, thereby realizing the recycling of idle cloud environments, reducing the waste of enterprise cloud environment resources, improving resource utilization and turnover, and helping enterprises improve R&D efficiency. In addition, the status assessment strategy and the idle standard value of the status assessment strategy in this embodiment support dynamic adjustment to meet the different cloud environment recycling scenarios of enterprises. It can accurately customize the dynamic recycling of various cloud environments, thereby more efficiently identifying and intelligently recycling cloud environment resources, and maximizing resource utilization.
[0112] At the same time, the cloud environment management platform can also predict the recovery time of cloud environments that cannot be recovered at present, so as to provide more reference information for the allocation and recovery of cloud environments, and further optimize the management of cloud environments.
[0113] Example 3:
[0114] The present embodiment provides a storage medium comprising a volatile or non-volatile, removable or non-removable medium implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules, or other data). Storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.
[0115] The storage medium may store one or more computer programs that can be read, compiled and executed by one or more processors. In this embodiment, the storage medium may store a cloud environment management program, which can be executed by one or more processors to implement the process of any one of the cloud environment management methods introduced in the aforementioned embodiments.
[0116] This embodiment also provides a computer program product, including a computer readable device, on which the computer program as shown above is stored. In this embodiment, the computer readable device may include the computer readable storage medium as shown above. For example, the computer program product includes a cloud environment management platform, such as Figure 8 As shown, the cloud environment management platform 8 includes a processor 81, a memory 82, and a communication bus 83 for connecting the processor 81 and the memory 82. The memory 82 may be the storage medium storing the cloud environment management program. The processor 81 may read the cloud environment management program, compile it, and execute the process of implementing the cloud environment management method described in the above embodiment:
[0117] Processor 81 first obtains cloud environment usage data, which can represent the current usage of the cloud environment. It then determines a cloud environment usage indicator based on the cloud environment usage data, and then determines the current state of the cloud environment based on the cloud environment usage indicator. If the cloud environment is currently idle, processor 81 reclaims the cloud environment.
[0118] In some examples of this embodiment, the usage indicators of the cloud environment include at least one of CPU utilization, memory utilization, total network traffic, login frequency, and recent access duration. The login frequency is the number of times or frequency that the cloud environment has been logged in within the recent preset time period, and the recent access duration is the time difference between the last time the cloud environment was accessed and the current time.
[0119] If the cloud environment usage indicator includes at least one of CPU utilization, memory utilization, and total network traffic, then before obtaining the cloud environment usage data, processor 81 needs to first obtain the communication address, user name, and login password corresponding to the cloud environment, and then deploy an information collection agent in the cloud environment based on the communication address, user name, and login password. When processor 81 obtains the cloud environment usage data, it can receive the cloud environment usage data sent by the information collection agent.
[0120] In some examples of this embodiment, when processor 81 determines the current state of the cloud environment based on the cloud environment's usage indicators, it may determine the cloud environment's current idle value based on the cloud environment's usage indicators and a status assessment policy. A higher idle value indicates a higher likelihood that the cloud environment will be reclaimed. The status assessment policy includes a weight assigned to each usage indicator in determining the cloud environment's idle value. If the cloud environment's current idle value reaches an idle standard value corresponding to the status assessment policy, processor 81 determines that the cloud environment is currently in an idle state.
[0121] Optionally, before determining the current state of the cloud environment based on the cloud environment usage indicators, the processor 81 may also receive a policy setting instruction via an input device and determine a state assessment policy based on the policy setting instruction. The policy setting instruction may include the level requirements for each usage indicator of the cloud environment that can be reclaimed, as well as the weight of each usage indicator in determining the cloud environment idle value.
[0122] In some examples of this embodiment, if the cloud environment is currently in a non-idle state, the processor 81 will further predict the reclaim time of the cloud environment based on the prediction model in combination with the historical idle value of the cloud environment.
[0123] For example, in some examples, the prediction model includes at least two prediction functions. When the processor 81 predicts the recovery time of the cloud environment based on the prediction model combined with the historical idle value of the cloud environment, it can first determine the fitting difference corresponding to each prediction function based on the historical idle value of the cloud environment, and then select a prediction function as the final prediction function for the cloud environment based on the fitting difference; and then predict the recovery time of the cloud environment based on the final prediction function and the historical idle value of the cloud environment.
[0124] In some examples of this embodiment, there are at least two state assessment policies. When processor 81 determines the current state of the cloud environment based on the cloud environment's usage indicators, for each state assessment policy, processor 81 determines the current idle value of the cloud environment under that state assessment policy based on the cloud environment's usage indicators and the state assessment policy, and determines whether the idle value of the cloud environment under that state assessment policy reaches the corresponding idle standard value for that state assessment policy. If the idle value of the cloud environment under at least one state assessment policy reaches the corresponding idle standard value, processor 81 determines that the cloud environment is currently in an idle state.
[0125] The cloud environment management platform and storage medium provided in this embodiment obtain the usage data of the cloud environment, and then determine the usage indicators of the cloud environment based on the usage data of the cloud environment, and determine the current status of the cloud environment based on the usage indicators of the cloud environment. If it is determined that the cloud environment is currently idle based on the usage indicators of the cloud environment, the cloud environment can be recycled. In this way, the recycled cloud environment can be applied by other users for other research and development activities. Through the cloud environment management method provided in the embodiment of the present invention, the idle cloud environment is recycled as a whole, and the reuse of the idle cloud environment is realized. It can realize the infinite recycling of cloud environment resources when actual resources are limited, which is conducive to improving the utilization rate of cloud environment resources and providing guarantees for enterprise research and development innovation.
[0126] It can be seen that those skilled in the art should understand that all or some of the steps, systems, and functional modules / units in the methods disclosed above can be implemented as software (which can be implemented using computer program code executable by a computing device), firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component can have multiple functions, or a function or step can be performed by several physical components in cooperation. Some or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit.
[0127] In addition, it is well known to those skilled in the art that communication media generally contain computer-readable instructions, data structures, computer program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media. Therefore, the present invention is not limited to any specific hardware and software combination.
[0128] The above content is a further detailed description of the embodiments of the present invention in conjunction with specific implementation methods, and the specific implementation of the present invention cannot be considered to be limited to these descriptions. For those skilled in the art of the present invention, without departing from the concept of the present invention, several simple deductions or substitutions can be made, which should be considered to fall within the scope of protection of the present invention.
Claims
1. A cloud environment management method, comprising: Obtain the communication address, user name, and login password corresponding to the cloud environment; Deploy an information collection agent in the cloud environment according to the communication address, user name and login password; receiving usage data of the cloud environment sent by the information collection agent, where the usage data can represent a current usage of the cloud environment; determining a usage indicator of the cloud environment based on usage data of the cloud environment; Receiving a policy setting instruction through an input device, the policy setting instruction including an idle level requirement for each of the usage indicators of the cloud environment that can be reclaimed, and a weight of each of the usage indicators in determining an idle value of the cloud environment; determining a state assessment strategy based on the strategy setting instructions; Determining a current state of the cloud environment based on usage indicators of the cloud environment; The determining of the current state of the cloud environment according to the usage indicator of the cloud environment includes: determining a current idle value of the cloud environment based on usage indicators and a status assessment strategy of the cloud environment, wherein a higher the idle value, the higher the likelihood that the cloud environment will be reclaimed; the status assessment strategy includes a weight of each usage indicator in determining the idle value of the cloud environment; If the current idle value of the cloud environment reaches the idle standard value corresponding to the state assessment policy, it is determined that the cloud environment is currently in an idle state; If the cloud environment is currently in an idle state, reclaiming the cloud environment; The usage indicators of the cloud environment include at least two of CPU utilization, memory utilization, total network traffic, login frequency, and recent access duration. The login frequency is the number of times or frequency that the cloud environment has been logged in within a recent preset time period, and the recent access duration is the time difference between the time when the cloud environment was last accessed and the current time.
2. The cloud environment management method according to claim 1, wherein: If the cloud environment is currently in a non-idle state, the cloud environment management method further includes: The reclaim time of the cloud environment is predicted according to the prediction model and the historical idle value of the cloud environment.
3. The cloud environment management method according to claim 2, wherein: The prediction model includes at least two prediction functions, and predicting the reclaim time of the cloud environment based on the prediction model and the historical idle value of the cloud environment includes: Determining a fitting difference corresponding to each prediction function based on the historical idle value of the cloud environment; selecting a prediction function as a final prediction function for the cloud environment according to the fitting difference; The reclaim time of the cloud environment is predicted according to the final prediction function and the historical idle value of the cloud environment.
4. The cloud environment management method according to claim 1, wherein: There are at least two status assessment strategies, and determining the current status of the cloud environment based on the usage indicators of the cloud environment includes: For each status assessment policy, determining the current idle value of the cloud environment under the status assessment policy based on the usage indicator of the cloud environment and the status assessment policy, and determining whether the idle value of the cloud environment under the status assessment policy reaches the idle standard value corresponding to the status assessment policy; If the idle value of the cloud environment under at least one state assessment strategy reaches a corresponding idle standard value, it is determined that the cloud environment is currently in an idle state.
5. A cloud environment management platform, comprising a processor, a memory, and a communication bus; The communication bus is used to realize the connection and communication between the processor and the memory; The processor is configured to execute one or more programs stored in the memory to implement the steps of the cloud environment management method according to any one of claims 1 to 4.
6. A storage medium, characterized in that The storage medium stores a cloud environment recycling program, and the cloud environment recycling program can be executed by one or more processors to implement the steps of the cloud environment management method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Resource dynamic adjustment method and device in cloud computing system
CN106528266A