CN113867926A - Cloud environment management method, cloud environment management platform and storage medium - Google Patents

Cloud environment management method, cloud environment management platform and storage medium Download PDF

Info

Publication number
CN113867926A
CN113867926A CN202010617016.2A CN202010617016A CN113867926A CN 113867926 A CN113867926 A CN 113867926A CN 202010617016 A CN202010617016 A CN 202010617016A CN 113867926 A CN113867926 A CN 113867926A
Authority
CN
China
Prior art keywords
cloud environment
idle
state
cloud
state evaluation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010617016.2A
Other languages
Chinese (zh)
Inventor
顾谊
陈飞飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN202010617016.2A priority Critical patent/CN113867926A/en
Priority to PCT/CN2021/087767 priority patent/WO2022001295A1/en
Publication of CN113867926A publication Critical patent/CN113867926A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5011Pool

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a cloud environment management method, a cloud environment management platform and a storage medium. If the cloud environment is determined to be in an idle state according to the use index of the cloud environment, the cloud environment can be recycled. In this way, the reclaimed cloud environment can be applied by other users for other research and development activities. According to the cloud environment management method provided by the embodiment of the invention, the idle cloud environment is integrally recovered, the reuse of the idle cloud environment is realized, the infinite cyclic utilization of cloud environment resources can be realized under the condition that actual resources are limited, the utilization rate of the cloud environment resources is favorably improved, and a guarantee is provided for enterprise research and development innovation.

Description

Cloud environment management method, cloud environment management platform and storage medium
Technical Field
The embodiment of the invention relates to the field of computers, in particular to a cloud environment management method, a cloud environment management platform and a storage medium.
Background
In recent years, cloud computing technology is rapidly developed, a standard cloud environment is provided on the same cloud platform, automatic application deployment is realized on the basis, a user can acquire the cloud environment as required in an application mode, and the application mode is rapidly accepted and adopted by people. Application environment automation deployment based on a bare metal layer, an Infrastructure as a Service (IaaS) layer, a Platform as a Service (PaaS) layer, and a Software as a Service (SaaS) layer has been provided for users. In many enterprises, after resource centralized management, research and development users can perform various research and development activities only by acquiring cloud environments through a unified cloud management platform, so that the research and development efficiency is greatly improved. However, resources under the cloud platform are limited, and the cloud environment distribution cannot be performed without limit, and how to guarantee the development activities under the condition becomes a problem to be solved urgently.
Disclosure of Invention
The cloud environment management method, the cloud environment management platform and the storage medium provided by the embodiment of the invention mainly solve the technical problems that: how to guarantee the cloud environment required for research and development activities in the case of limited cloud platform resources.
In order to solve the above technical problem, an embodiment of the present invention provides a cloud environment management method, including:
acquiring use data of the cloud environment, wherein the use data can represent the current use condition of the cloud environment;
determining the use index of the cloud environment according to the use data of the cloud environment;
determining the current state of the cloud environment according to the use index of the cloud environment;
and if the cloud environment is in an idle state at present, recovering the cloud environment.
The embodiment of the invention also provides a cloud environment management platform, which comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection 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 described above.
The embodiment of the invention also provides a storage medium, wherein the storage medium stores a cloud environment recovery program, and the cloud environment recovery program can be executed by one or more processors to realize the steps of the cloud environment management method.
According to the cloud environment management method, the cloud environment management platform and the storage medium provided by the embodiment of the invention, the use data of the cloud environment is obtained, then the use index of the cloud environment is determined according to the use data of the cloud environment, and the current state of the cloud environment is determined according to the use index of the cloud environment. If the cloud environment is determined to be in an idle state according to the use index of the cloud environment, the cloud environment can be recycled. In this way, the reclaimed cloud environment can be applied by other users for other research and development activities. According to the cloud environment management method provided by the embodiment of the invention, the idle cloud environment is integrally recovered, the reuse of the idle cloud environment is realized, the infinite cyclic utilization of cloud environment resources can be realized under the condition that actual resources are limited, the utilization rate of the cloud environment resources is favorably improved, and a guarantee is provided for enterprise research and development innovation.
Additional features and corresponding advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a flowchart of a cloud environment management method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a cloud environment management platform evaluating a current state of a cloud environment according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a cloud environment management platform according to a policy setting instruction input by a manager, where the policy setting instruction is set according to a state evaluation policy;
fig. 4 is an interactive interface of a cloud environment management platform according to a first embodiment of the present invention;
fig. 5 is another interactive interface of the cloud environment management platform shown in the first embodiment of the present invention;
fig. 6 is a flowchart of a cloud environment management method according to a second embodiment of the present invention;
fig. 7 is a schematic diagram illustrating a principle of state evaluation based on two state evaluation policies according to a second embodiment of the present invention;
fig. 8 is a schematic diagram of a hardware structure of a cloud environment management platform according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention are described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The first embodiment is as follows:
in order to solve the problem that subsequent research and development activities are difficult to acquire a required cloud environment after the cloud environment is allocated due to limited resources under a cloud platform in the related art, and the research and development innovation effect of an enterprise is affected, this embodiment provides a cloud environment management method, please refer to a flowchart of the cloud environment management method shown in fig. 1:
s102: the cloud environment management platform acquires the use data of the cloud environment.
In this embodiment, the usage data acquired by the cloud environment management platform is data capable of representing a current usage situation of the corresponding cloud environment. It can be understood that the occupation of the CPU resources, the memory resources, and the storage resources in the cloud environment may represent the current usage of the cloud environment to some extent, for example, at time t1, the occupancy of the memory resources in the cloud environment in the data acquired by the cloud environment platform is 32%, and at current time the occupancy of the memory resources in the cloud environment is 58%, which indicates that the cloud environment is used from time t1 to current time. In another aspect, network traffic of a cloud environment may also characterize the use of the cloud environment. In addition, the situation that the cloud environment is logged in by the user can also reflect the situation that the cloud environment is used by the user to a certain extent. Therefore, in this embodiment, the usage data that can characterize the current usage of the cloud environment, acquired by the cloud environment management platform, includes at least one of the above data.
If the usage data that the cloud environment management platform needs to acquire includes data that can represent at least one of an occupation situation of a cloud environment CPU resource, an occupation situation of a memory resource, and an occupation situation of a storage resource, or includes data that can represent a cloud environment network flow, data acquisition needs to be performed in a corresponding cloud environment. In some examples of this embodiment, the cloud environment management platform may deploy the information acquisition agent in a corresponding cloud environment, so that the information acquisition agent helps to acquire usage data capable of representing at least one of CPU resource occupation, memory resource occupation, and storage resource occupation in the cloud environment, and feed back the acquired data to the cloud environment management platform. In an example of this embodiment, the cloud environment management platform may obtain a communication address of the corresponding cloud environment, for example, an I P address of the cloud environment, and a user name and a login password for logging in the corresponding cloud environment, then log in the corresponding cloud environment according to the communication address, the user name, and the login password of the cloud environment, and deploy the information acquisition agent in the corresponding cloud environment.
If the usage data required to be acquired by the cloud environment management platform includes data capable of reflecting the login condition of the cloud environment, data acquisition in the cloud environment is not required. In some examples, the cloud environment management platform originally records information of a user logging in the cloud environment, so that the cloud environment can directly acquire the usage data without an information collection agent.
S104: and the cloud environment management platform determines the use index of the cloud environment according to the use data of the cloud environment.
After the cloud environment management platform acquires the usage data of the cloud environment, the usage data can be processed, and then usage indexes of the cloud environment are obtained in an abstract mode.
In some examples of this embodiment, the usage index of the cloud environment includes at least one of a CPU utilization, a memory utilization, a network traffic sum, a login frequency, and a last access duration. The "login frequency" refers to the number of times or frequency that the cloud environment is logged in within a last preset time period, and the "last access time period" refers to a time difference between a time when the cloud environment is accessed last time and a current time.
The method includes the steps that if the use data are required to be processed to obtain the CPU utilization rate of the cloud environment, the use data obtained in advance by the cloud environment comprise data representing the CPU resource occupation condition of the cloud environment; if the memory utilization rate of the cloud environment is obtained after the required use data are processed, the use data acquired in advance by the cloud environment should include data representing the occupation condition of the memory resources of the cloud environment; if the sum of the network traffic of the cloud environment is required to be obtained after the usage data is processed, the usage data acquired in advance by the cloud environment should include data capable of representing the network traffic of the cloud environment. Therefore, if the usage index of the cloud environment includes at least one of a CPU utilization rate, a memory utilization rate, and a network traffic sum, before the cloud environment management platform acquires the usage data of the cloud environment, an information collection agent needs to be deployed in the cloud environment. If the login frequency and/or the latest access duration of the cloud environment are required to be obtained after the usage data are processed, the usage data which should be obtained in advance by the cloud environment include data representing the login situation of the cloud environment.
S106: and the cloud environment management platform determines the current state of the cloud environment according to the use index of the cloud environment.
After the cloud environment management platform determines the usage index of the cloud environment, the current state of the cloud environment can be evaluated according to the usage index, and in this embodiment, the usage state of the cloud environment includes an idle state and a non-idle state. The non-idle state is actually the use state. It should be noted that, in this embodiment, if a cloud environment is determined to be in an idle state, it does not mean that the cloud environment is in an absolute idle state, which only indicates that the cloud environment is in an idle state under the evaluation criteria adopted by the cloud environment management platform.
If only one use index is adopted for evaluation when the state of the cloud environment is evaluated, the cloud environment platform can set a threshold value, which can also be called an idle standard value, for the use index, and then the value of the use index in the cloud environment is used as the requirement that the current idle value of the cloud environment reaches the idle standard value, so that the cloud environment can be judged to be in a recoverable idle state. In other words, as long as the value of the usage index corresponding to the cloud environment meets the requirement of the index threshold, it can be determined that the cloud environment is in an idle state.
However, in more examples, two or more usage indicators may be combined when evaluating the state of the cloud environment, but the usage indicators may have different metrics, so that when evaluating the state of one cloud environment, the cloud environment management platform needs to convert the usage indicators of the different metrics into a unified standard to participate in evaluation, which is actually a normalization process for different usage indicators of the cloud environment. In some examples of this embodiment, the cloud environment management platform may convert all usage metrics to a percentage: for example, the values of all the usage indexes are converted to values between 0 and 1 by setting a maximum value for the different usage indexes and then determining the ratio of the cloud environment usage index value to the maximum value. Of course, in a similar manner, all the usage index values may be converted to 1-100 or 1-1000, and the usage index values are measured in percent or per thousand.
It should be appreciated that under different circumstances, or for different enterprises, the degree of weight of each usage index may also be different, and thus, in some examples, the weights of different usage indexes may not be identical when evaluating cloud environment conditions. For example, in an example, the administrator sets the requirement, and as long as the CPU utilization, the memory utilization, and the login frequency meet the requirement, it may be determined that the cloud environment is in an idle state, and the latest access duration and the sum of the network traffic are not concerned. Or, it may be considered that the weight of the latest access duration and the sum of the network traffic when the cloud environment state is evaluated is 0.
In some examples of the present embodiment, the cloud environment management platform may evaluate the current state of the cloud environment with reference to the flow illustrated in fig. 2:
s202: and determining the current idle value of the cloud environment according to the use index of the cloud environment and the state evaluation strategy.
The higher the idle value of a cloud environment, the more likely it is that the cloud environment is in an idle state, and the more likely it is to be recycled. The state evaluation strategy comprises the weight occupied by each use index when determining the cloud environment idle value. In an example of this embodiment, after the cloud environment management platform converts each usage index of the cloud environment into the same metric, the idle value of the cloud environment may be determined according to the weight occupied by each index:
Figure BDA0002561697640000041
wherein n is the total number of the use indexes used for evaluating the current state of the cloud environment, and WiFor the i-th use indicator to be converted to a value after the unified metrology, PiS is the idle value of the cloud environment as the weight of the ith usage index.
It is understood that other ways, such as the way provided in embodiment two, can also be adopted when calculating the cloud environment idle value.
S204: and judging whether the current idle value of the cloud environment reaches an idle standard value corresponding to the state evaluation strategy.
If the determination result is yes, the process proceeds to S206, otherwise, the process proceeds to S208.
Each state evaluation strategy has a corresponding idle standard value, if the idle value of a cloud environment under the state evaluation strategy reaches the idle standard value, the cloud environment is in an idle state, otherwise, the cloud environment is in a non-idle state.
S206: determining that the cloud environment is currently in an idle state.
S208: determining that the cloud environment is currently in a non-idle state.
In some examples of this embodiment, the cloud environment may employ only one state evaluation policy to evaluate the current state of the cloud environment, but in other examples of this embodiment, the cloud environment may employ at least two state evaluation policies to evaluate the current state of the cloud environment simultaneously. The usage indicators in each state evaluation strategy are not exactly the same, but may be partially overlapped. Of course, even if some two state evaluation policies include the same partial usage index, the usage indexes may be weighted differently between the two state evaluation policies. For example, in one example, the cloud environment management platform adopts a state evaluation policy a and a state evaluation policy b to evaluate the state of the cloud environment, where the usage indicators concerned by the state evaluation policy a include CPU utilization, memory utilization, and a latest access time, and the usage indicators concerned by the state evaluation policy b include CPU utilization and a network traffic sum, and the two state evaluation policies both include CPU utilization, but the weights of the CPU utilization in the two state evaluation policies are different.
In some cases, the state evaluation policies are in an or logical relationship, that is, as long as an idle value of the cloud environment under any one of the state evaluation policies reaches an idle standard value corresponding to the state evaluation policy, it indicates that the cloud environment is in an idle state and can be currently recycled. In other cases, the state evaluation policies are in an and logical relationship, that is, the cloud environment is only determined to be in an idle state when the idle value under one of the state evaluation policies reaches the corresponding idle standard value, and cannot be said to be in the idle state.
In this embodiment, the state evaluation policy may be set by a manager, for example, in some examples of this embodiment, the cloud environment management platform may include a human-computer interaction device (a display device and an input device), the manager may input a policy setting instruction to the cloud environment management platform through the input device, and the cloud environment management platform determines the state evaluation policy according to the instruction after receiving the policy setting instruction input by the manager. Please refer to fig. 3:
s302: the cloud environment management platform receives a policy setting instruction through an input device.
In some examples of the embodiment, the policy setting instruction includes a level requirement of each usage index of the cloud environment that can be recycled, and a weight that each usage index occupies when determining the cloud environment idle value. It should be understood that, in some cases, the cloud environment management platform has a friendly human-computer interaction interface, and can guide the user when the administrator issues the policy setting instruction, for example, in an interaction interface of the cloud environment management platform shown in fig. 4, the cloud environment management platform gives selectable usage indexes through a display device, and when the administrator sets a status evaluation policy, the administrator can select a usage index concerned by the status evaluation policy from the usage indexes, and then indicate the weight of the selected usage index and the idle level requirement in the interaction interface shown in fig. 5.
S304: and the cloud environment management platform determines a state evaluation strategy according to the strategy setting instruction.
After receiving the policy setting instruction of the user, the cloud environment management platform may analyze the policy setting instruction and then generate a state evaluation policy.
In addition, if the administrator sets more than one state evaluation policy, it should also specify to the cloud environment management platform the logical relationship of the state evaluation policies with each other when used to evaluate the cloud environment state.
S108: and if the cloud environment is in an idle state at present, the cloud environment management platform recovers the cloud environment.
After determining that a cloud environment is in an idle state, the cloud environment management platform may recover the cloud environment, and it should be understood that recovering the cloud environment is actually recovering all resources of the cloud environment together: and releasing all resources in the cloud environment by the cloud environment management platform, and then putting the recovered resources into a resource pool corresponding to the cloud platform for distribution when a cloud environment application is subsequently received.
In some examples of this embodiment, if the cloud environment management platform determines that a certain cloud environment is currently in a non-idle state, the time when the cloud environment enters the idle state may be predicted, that is, the recovery time when the cloud environment enters the recoverable state may be predicted.
It should be understood that, from the time of being allocated for use, to the time of entering a peak period of use, and to the time of ending use, the use of the cloud environment by the user is generally in accordance with a certain rule. Therefore, the time when the cloud environment enters the idle state can be predicted based on the idle value of the cloud environment history. For example, in some examples, when the cloud environment management platform determines that an idle value of a cloud environment is less than a standard value of a corresponding state evaluation policy, a current idle value of the cloud environment may be recorded and stored. Therefore, when the cloud environment management platform needs to predict the recovery time of a certain cloud environment, prediction can be performed according to each recorded historical idle value. In some examples of the embodiment, the prediction of the cloud environment recovery time may be performed in combination with a prediction model. In some examples of this embodiment, only one prediction function is provided in one prediction model, and the cloud environment management platform inputs the historical idle value of the cloud environment into the prediction function, so as to obtain the recovery time of the cloud environment. In other examples of this embodiment, two or more prediction functions are included in one prediction mode, and these prediction functions may be used separately, so that before predicting the recovery time of a certain cloud environment, the cloud environment management platform needs to select one of the prediction functions of the prediction model as a final prediction function, and then can determine the recovery time of the cloud environment by using the final prediction function.
According to the cloud environment management method provided by the embodiment of the invention, the cloud environment in the idle state at present is identified by evaluating the state of the cloud environment, and then the resources of the idle cloud environment are released and recovered, so that the resource waste is avoided, the utilization rate and the turnover rate of the resources are improved, and the research and development efficiency of enterprises are assisted.
Example two:
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, the present embodiment will continue to describe the cloud environment management solution with reference to the example on the basis of the foregoing embodiment, please refer to a flowchart shown in fig. 6:
s602: usage data of the cloud environment is collected.
In this embodiment, the usage data collected by the cloud environment management platform at least ensures that the following usage indexes of the cloud environment can be determined subsequently: CPU utilization rate, memory utilization rate, network flow sum, login frequency and latest access duration. Of course, in some other examples of this embodiment, the usage data collected by the cloud environment management platform further includes data that can represent the utilization rate of the cloud environment storage resources, or further includes data that can represent the usage condition of the cloud environment IO interface.
S604: and processing the use data of the cloud environment to obtain the use index of the cloud environment.
And the cloud environment management platform cleans the collected use data, screens out invalid data or obviously wrong data, and analyzes and processes the rest use data to abstract out the use indexes of the cloud environment.
Assume that there are two cloud environments, E1 and E2, and the usage indexes of the two cloud environments are shown in table 1:
TABLE 1
Figure BDA0002561697640000061
S608: and determining idle values of the cloud environment under each state evaluation strategy according to the use indexes of the cloud environment.
In this embodiment, it is assumed that the administrator sets two state evaluation policies with a logical relationship of "or" to evaluate the idle state of the cloud environment, which are a state evaluation policy a and a state evaluation policy b. The idle standard values for both state evaluation strategies are 55. In some examples of this embodiment, the cloud environment management platform divides each usage index into idle levels according to the size of each usage index value, for example, please refer to table 2:
TABLE 2
Idle level CPU utilization Memory utilization Network traffic summation Frequency of log-in Last access duration
Height of C<5% M<10% N<1(M) L<10 T>48(h)
In C<10% M<20% N<5(M) L<20 T>24(h)
Is low in C<20% M<30% N<10(M) L<30 T>8(h)
As can be seen from table 2, for the usage index, which is the CPU utilization, if the idle level of the usage index is lower than 20% (and not lower than 10%), the idle level of the usage index is medium if the idle level of the usage index is lower than 10% (and not lower than 5%), and if the idle level of the usage index is lower than 5%, the idle level of the usage index is considered to be high. For example, for the login frequency, if the login time within the last preset time period is less than 10 times, the idle level of the usage index is considered to reach high, and if the login time is between 10 and 20, the idle level of the usage index is considered to reach medium … …, which is not described herein again.
The contents of two state evaluation policies are shown in table 3, respectively:
TABLE 3
Figure BDA0002561697640000071
As can be seen from table 3, the state evaluation policy a only focuses on three usage indicators, namely, the CPU utilization, the memory utilization, and the latest access duration, and the idle level requirements of the three usage indicators are high, medium, and low, and the weights are 0.9, and 0.6, respectively. And the state evaluation strategy b pays attention to four use indexes, namely memory utilization rate, network flow sum, login frequency and latest access duration, the idle level requirements of the four use indexes are respectively medium, high and low, and the weights are respectively 0.8, 0.4, 0.6 and 0.1.
In this embodiment, the total score under one state evaluation policy is 100, and if there are n usage indexes, the score corresponding to each usage index is 100/n, for example, in the state evaluation policy a, the score of each usage index is 100/3, and in the state evaluation policy b, the score of each usage index is 25. Under a state evaluation strategy, if a use index of the cloud environment meets the idle state requirement of the state evaluation strategy on the use index, the cloud environment can obtain a score corresponding to the use index, otherwise, the score corresponding to the use index of the cloud environment is 0. For example, under the state evaluation policy b, if the latest access duration of a cloud environment reaches the low level required by the state evaluation policy b, the cloud environment may obtain 20 points corresponding to the cloud environment.
In this embodiment, an idle value of a cloud environment under a state evaluation policy may be determined according to the following formula:
Figure BDA0002561697640000072
wherein S is an idle value of the cloud environment under the state evaluation strategy, n is a total number of using indexes under the state evaluation strategy, and ViFor the score corresponding to the i-th usage index, it can be understood that ViIs either 100/n or 0; piIs the weight of the ith usage index.
The idle values for the two cloud environments E1 and E2 in table 1 are calculated below for their two state evaluation strategies:
first, for cloud environment E1, its idle value under State evaluation policy a
Figure BDA0002561697640000081
Its idle value under the State evaluation policy b
Figure BDA0002561697640000082
For cloud environment E2, its idle value under State evaluation policy a
Figure BDA0002561697640000083
Its idle value under the State evaluation policy b
Figure BDA0002561697640000084
S610: and judging whether the idle value of the cloud environment under a certain state evaluation strategy reaches an idle standard value corresponding to the state evaluation strategy.
If yes, the process proceeds to S612, otherwise, the process continues to S614.
As can be seen, the idle value of the cloud environment E1 under the state evaluation policy a is greater than the idle criterion value of the state evaluation policy a, so the cloud environment E1 is in the idle state. However, the idle values of the cloud environment E2 under the state evaluation policies a and b are both smaller than the corresponding idle criterion values, so the cloud environment E2 is in the non-idle state.
Fig. 7 shows a schematic diagram of evaluating cloud environment states under a state evaluation policy a and a state evaluation policy b based on the usage index k1, the usage index k2, the usage index k3, and the usage index k 4. After the usage index k1, the usage index k2, the usage index k3 and the usage index k4 are determined based on the usage data of the cloud environment, the idle level of each usage index is determined according to table 2, then the idle value of the cloud environment is determined according to the state evaluation strategy a and the state evaluation strategy b, and finally the state of the cloud environment is determined based on the logical relationship of the two state evaluation strategies.
S612: and recycling the cloud environment.
The cloud environment E1 can be determined to need to be recycled through judgment, so that the cloud environment management platform releases all resources of the cloud environment E1 and recycles the cloud environment E1 integrally.
S614: and determining the fitting difference degree of each prediction function in the prediction model according to the historical idle value of the cloud environment.
Since the cloud environment E2 cannot be recycled temporarily, the cloud environment management platform records the idle values of the cloud environment E2 under the status evaluation policies a and b, respectively, and then predicts the recycling time of the cloud environment E2 according to all the recorded historical idle values.
In this embodiment, the prediction model M is:
Figure BDA0002561697640000085
the cloud environment management platform can store various historical idle values y of the cloud environment E2t1、yt2、yt3……ytmRespectively inputting the prediction functions of the prediction model M to respectively obtain a prediction idle value corresponding to each prediction function, and then determining the fitting difference Ac corresponding to each prediction function according to the following formula:
Figure BDA0002561697640000086
wherein, yt1、yt2、yt3……ytmThe idle values of the cloud environment E2 at m times, i.e., time t1, time t2, and time t3, time … … tn, respectively, and time tm is closest to the current time. A. thecIs the degree of difference of fit of the prediction function, yiThe idle value at the ith moment; y istU is an accuracy factor for the predicted idle value obtained by inputting the historical idle value into the prediction function.
S616: and selecting one prediction function with the minimum fitting difference as a final prediction function.
After the fitting difference Ac of each prediction function is determined, one of the prediction functions may be selected as a final prediction function according to the fitting difference, and in some examples of this embodiment, the cloud environment management platform may select a prediction function with the smallest fitting difference as the final prediction function. However, in some other examples of the present embodiment, the cloud environment management platform may select, as the final prediction function, a prediction function with a fitting difference smaller than a preset threshold, and if two or more prediction functions with fitting differences smaller than the preset threshold are provided in the prediction model M, the cloud environment management platform may also randomly select one of the prediction functions as the final prediction function.
S618: and predicting the recovery time of the cloud environment according to the final prediction function and the historical idle value of the cloud environment.
After selecting the final prediction function, the cloud environment management platform may determine the recovery time of the cloud environment E2 based on the final prediction function, the recorded historical idle values of the cloud environment E2 under the state evaluation policies a and b, and the logical relationship of the state evaluation policies a and b.
According to the cloud environment platform management scheme provided by the embodiment, the information of the resource use condition of the characterization cloud environment is collected and analyzed, and the state of the cloud environment is determined, so that the recovery of the idle cloud environment is realized, the waste of cloud environment resources of enterprises is reduced, the utilization rate and the turnover rate of the resources are improved, and the enterprise research and development efficiency is improved. In addition, the idle standard values of the state evaluation strategy and the state evaluation strategy in the embodiment support dynamic adjustment to meet different cloud environment recovery scenes of an enterprise, and dynamic recovery of various cloud environments can be accurately customized, so that cloud environment resources are recovered more efficiently and intelligently, and the resource utilization rate is improved to the maximum.
Meanwhile, the cloud environment management platform can predict the recovery time of the cloud environment which cannot be recovered at present, so that more information which can be referred to can be provided for distribution, recovery and the like of the cloud environment, and the management of the cloud environment is further optimized.
Example three:
the present embodiments provide a storage medium including volatile or non-volatile, removable or non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, computer program modules or other data. Storage media includes, but is 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 disk Read-Only Memory), Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer.
In this embodiment, the storage medium may store a cloud environment management program, and the cloud environment management program may be used by the one or more processors to execute a process for implementing any one of the cloud environment management methods described in the foregoing embodiments.
The present embodiments also provide a computer program product comprising a computer readable means on which a computer program as shown above is stored. The computer readable means in this embodiment may include a computer readable storage medium as shown above. For example, the computer program product includes a cloud environment management platform, as shown in fig. 8: 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, wherein the memory 82 may be the aforementioned storage medium storing the cloud environment management program. The processor 81 may read the cloud environment management program, compile and execute a process of implementing the cloud environment management method described in the foregoing embodiment:
the processor 81 first obtains usage data of the cloud environment, and the usage data can represent the current usage of the cloud environment. Determining the use index of the cloud environment according to the use data of the cloud environment, and determining the current state of the cloud environment according to the use index of the cloud environment; if the cloud environment is currently in an idle state, the processor 81 recycles the cloud environment.
In some examples of this embodiment, the usage index of the cloud environment includes at least one of a CPU utilization rate, a memory utilization rate, a network traffic sum, a login frequency, and a latest access time duration, where the login frequency is a login frequency or a login frequency of the cloud environment within a latest preset time duration, and the latest access time duration is a time difference between a time when the cloud environment is accessed last and a current time.
If the usage index of the cloud environment includes at least one of a CPU utilization rate, a memory utilization rate, and a network traffic sum, before the processor 81 acquires the usage data of the cloud environment, it is further required to acquire a communication address, a user name, and a login password corresponding to the cloud environment, and then deploy the information acquisition agent in the cloud environment according to the communication address, the user name, and the login password. When acquiring the usage data of the cloud environment, the processor 81 may receive the usage data of the cloud environment transmitted by the information collection agent.
In some examples of the embodiment, when the processor 81 determines the current state of the cloud environment according to the usage index of the cloud environment, the current idle value of the cloud environment may be determined according to the usage index of the cloud environment and a state evaluation policy, where the higher the idle value is, the higher the possibility of representing that the cloud environment is recycled is, and the state evaluation policy includes a weight occupied by each usage index when 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 evaluation policy, the processor 81 determines that the cloud environment is currently in an idle state.
Optionally, before determining the current state of the cloud environment according to the usage index of the cloud environment, the processor 81 may also receive a policy setting instruction through the input device, and determine the state evaluation policy according to the policy setting instruction. The strategy setting instruction comprises the grade requirements of all the use indexes of the cloud environment which can be recycled and the weight occupied by all the use indexes when the idle value of the cloud environment is determined.
In some examples of this embodiment, if the cloud environment is currently in a non-idle state, the processor 81 may also predict the recycling time of the cloud environment according to the prediction model in combination with the historical idle values of the cloud environment.
For example, in some examples, the prediction model includes at least two prediction functions, and when the processor 81 predicts the recovery time of the cloud environment according to the prediction model in combination with the idle value of the cloud environment history, the fitting difference degree corresponding to each prediction function may be determined according to the idle value of the cloud environment history, and then one prediction function may be selected as the final prediction function for the cloud environment according to the fitting difference degree; and predicting the recovery time of the cloud environment according to the final prediction function and the historical idle value of the cloud environment.
In some examples of the embodiment, the number of the state evaluation policies is at least two, and when the processor 81 determines the current state of the cloud environment according to the usage index of the cloud environment, for each state evaluation policy, it determines an idle value of the cloud environment under the state evaluation policy according to the usage index of the cloud environment and the state evaluation policy, and determines whether the idle value of the cloud environment under the state evaluation policy reaches an idle standard value corresponding to the state evaluation policy. If the idle value of the cloud environment under the at least one state evaluation policy reaches the corresponding idle standard value, the processor 81 determines that the cloud environment is currently in the idle state.
According to the cloud environment management platform and the storage medium provided by the embodiment, the use data of the cloud environment is obtained, then the use index of the cloud environment is determined according to the use data of the cloud environment, and the current state of the cloud environment is determined according to the use index of the cloud environment. If the cloud environment is determined to be in an idle state according to the use index of the cloud environment, the cloud environment can be recycled. In this way, the reclaimed cloud environment can be applied by other users for other research and development activities. According to the cloud environment management method provided by the embodiment of the invention, the idle cloud environment is integrally recovered, the reuse of the idle cloud environment is realized, the infinite cyclic utilization of cloud environment resources can be realized under the condition that actual resources are limited, the utilization rate of the cloud environment resources is favorably improved, and a guarantee is provided for enterprise research and development innovation.
It will be apparent to those skilled in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software (which may be implemented in computer program code executable by a computing device), firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
In addition, communication media typically embodies 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 includes any information delivery media as known to one of ordinary skill in the art. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is a more detailed description of embodiments of the present invention, and the present invention is not to be considered limited to such descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (10)

1. A cloud environment management method, comprising:
obtaining use data of a cloud environment, wherein the use data can represent the current use condition of the cloud environment;
determining a usage index of the cloud environment according to the usage data of the cloud environment;
determining the current state of the cloud environment according to the use index of the cloud environment;
and if the cloud environment is in an idle state at present, recovering the cloud environment.
2. The cloud environment management method according to claim 1, wherein the usage index of the cloud environment includes at least one of a CPU utilization rate, a memory utilization rate, a network traffic sum, a login frequency, and a latest access time length, the login frequency is a number of times or a frequency that the cloud environment is logged in within a latest preset time length, and the latest access time length is a time difference between a time when the cloud environment is accessed last time and a current time.
3. The cloud environment management method according to claim 2, wherein if the usage index of the cloud environment includes at least one of a CPU utilization rate, a memory utilization rate, and a network traffic sum, before the obtaining the usage data of the cloud environment, the method further includes:
acquiring a communication address, a user name and a login password corresponding to the cloud environment;
deploying an information acquisition agent in the cloud environment according to the communication address, the user name and the login password;
the obtaining usage data of the cloud environment comprises:
and receiving the use data of the cloud environment sent by the information acquisition agent.
4. The cloud environment management method of any of claims 1-3, wherein said determining a current state of said cloud environment based on said usage index of said cloud environment comprises:
determining a current idle value of the cloud environment according to the use indexes of the cloud environment and a state evaluation strategy, wherein the higher the idle value is, the higher the possibility of representing the cloud environment to be recycled is, and the state evaluation strategy comprises the weight occupied by each use index when the idle value of the cloud environment is determined;
and if the current idle value of the cloud environment reaches an idle standard value corresponding to the state evaluation strategy, determining that the cloud environment is in an idle state currently.
5. The cloud environment management method of claim 4, wherein prior to determining the current state of the cloud environment based on the usage index of the cloud environment, further comprising:
receiving a strategy setting instruction through an input device, wherein the strategy setting instruction comprises an idle grade requirement of each use index of a recyclable cloud environment and a weight occupied by each use index when determining an idle value of the cloud environment;
and determining the state evaluation strategy according to the strategy setting instruction.
6. The cloud environment management method of claim 4, wherein if said cloud environment is currently in a non-idle state, said cloud environment management method further comprises:
and predicting the recovery time of the cloud environment according to a prediction model and the historical idle value of the cloud environment.
7. The cloud environment management method of claim 6, wherein said prediction model comprises at least two prediction functions, and said predicting the recovery time of said cloud environment according to said prediction model in combination with said historical idle values of said cloud environment comprises:
determining the fitting difference degree corresponding to each prediction function according to 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 degree;
and predicting the recovery time of the cloud environment according to the final prediction function and the historical idle value of the cloud environment.
8. The cloud environment management method of claim 4, wherein said state evaluation policy has at least two, and said determining a current state of said cloud environment based on said usage index of said cloud environment comprises:
for each state evaluation strategy, determining an idle value of the cloud environment under the state evaluation strategy according to the use index of the cloud environment and the state evaluation strategy, and determining whether the idle value of the cloud environment under the state evaluation strategy reaches an idle standard value corresponding to the state evaluation strategy;
and if the idle value of the cloud environment under at least one state evaluation strategy reaches the corresponding idle standard value, determining that the cloud environment is in an idle state currently.
9. A cloud environment management platform comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection 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 of any of claims 1 to 8.
10. A storage medium storing a cloud environment recycling program executable by one or more processors to implement the steps of the cloud environment management method according to any one of claims 1 to 8.
CN202010617016.2A 2020-06-30 2020-06-30 Cloud environment management method, cloud environment management platform and storage medium Pending CN113867926A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010617016.2A CN113867926A (en) 2020-06-30 2020-06-30 Cloud environment management method, cloud environment management platform and storage medium
PCT/CN2021/087767 WO2022001295A1 (en) 2020-06-30 2021-04-16 Cloud environment management method, cloud environment management platform, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010617016.2A CN113867926A (en) 2020-06-30 2020-06-30 Cloud environment management method, cloud environment management platform and storage medium

Publications (1)

Publication Number Publication Date
CN113867926A true CN113867926A (en) 2021-12-31

Family

ID=78981611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010617016.2A Pending CN113867926A (en) 2020-06-30 2020-06-30 Cloud environment management method, cloud environment management platform and storage medium

Country Status (2)

Country Link
CN (1) CN113867926A (en)
WO (1) WO2022001295A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115242602A (en) * 2022-07-20 2022-10-25 北京天一恩华科技股份有限公司 Network equipment life cycle management method, device, equipment and medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831016B (en) * 2012-08-01 2014-10-01 浪潮(北京)电子信息产业有限公司 Physical machine recycle method of cloud computing and device thereof
CN106020969A (en) * 2016-05-05 2016-10-12 云神科技投资股份有限公司 High-performance cloud computing hybrid computing system and method
CN106528266B (en) * 2016-10-28 2020-01-14 柏域信息科技(上海)有限公司 Method and device for dynamically adjusting resources in cloud computing system
TWI598744B (en) * 2017-03-16 2017-09-11 廣達電腦股份有限公司 Management systems of cloud resources and management methods thereof
CN109491808A (en) * 2018-11-09 2019-03-19 国网山东省电力公司信息通信公司 A kind of cloud service management system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115242602A (en) * 2022-07-20 2022-10-25 北京天一恩华科技股份有限公司 Network equipment life cycle management method, device, equipment and medium
CN115242602B (en) * 2022-07-20 2023-11-14 北京天一恩华科技股份有限公司 Network equipment life cycle management method, device, equipment and medium

Also Published As

Publication number Publication date
WO2022001295A1 (en) 2022-01-06

Similar Documents

Publication Publication Date Title
CN111178380B (en) Data classification method and device and electronic equipment
US9443082B2 (en) User evaluation
CN107341029B (en) Method and device for acquiring system resource deployment strategy and electronic equipment
CN111414070B (en) Case power consumption management method and system, electronic device and storage medium
CN113010260A (en) Elastic expansion method and system for container quantity
US10565021B2 (en) Automated capacity management in distributed computing systems
CN105022668B (en) Job scheduling method and system
CN108616553B (en) Method and device for resource scheduling of cloud computing resource pool
CN112148468A (en) Resource scheduling method and device, electronic equipment and storage medium
CN111381970A (en) Cluster task resource allocation method and device, computer device and storage medium
CN113867926A (en) Cloud environment management method, cloud environment management platform and storage medium
CN107357649B (en) Method and device for determining system resource deployment strategy and electronic equipment
CN109274991B (en) Memory management method and system of smart television
CN110851286B (en) Thread management method and device, electronic equipment and storage medium
CN115994029A (en) Container resource scheduling method and device
CN110932926B (en) Container cluster monitoring method, system and device
CN106855824B (en) Task stopping method and device and electronic equipment
CN114844791A (en) Cloud service automatic management and distribution method and system based on big data and storage medium
CN114490078A (en) Dynamic capacity reduction and expansion method, device and equipment for micro-service
CN114253663A (en) Virtual machine resource scheduling method and device
CN110399216B (en) Method, system and device for distributing power consumption of whole machine box and readable storage medium
KR101407765B1 (en) Virtual machine allocation apparatus with conditional probability inference for transport information service in cloud environment and method thereof
CN111164595A (en) System and method for preventing excessive user authentication token usage in an enterprise computer environment
CN111142898A (en) Data leakage-proof terminal upgrading method and system based on group intelligent mode
US20230354101A1 (en) Resource allocation device, resource allocation method, and control circuit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination