Disclosure of Invention
One of the purposes of the invention is to provide an energy-saving system for enhancing a cloud computing environment, which can solve the technical problems in the prior art. The energy consumption of node processing equipment such as physical computing equipment, virtual computing equipment and the like in the cloud computing environment can be effectively reduced, the efficiency of scheduling, migration and combination of the virtual machines is further improved, and the safety of the cloud computing environment is enhanced.
The technical scheme adopted by the invention to solve the technical problems is as follows: an enhanced cloud computing environment energy saving system, comprising: the client sends a cloud computing request and is received by the cloud computing environment platform; and a cloud computing environment C comprising: the cloud computing environment platform analyzes, evaluates and obtains the workload included in the request, and determines an energy-saving strategy according to the comparison of the workload; the node computing equipment receives the scheduling executed by the cloud computing environment platform according to the energy-saving strategy, then executes the workload, and after the computing processing is finished, transmits the processing result back to the cloud computing environment platform; and the cloud computing environment platform further sends the result of the cloud computing request to the client.
According to another aspect of the invention, the enhanced cloud computing environment energy saving system further comprises: the cloud computing environment C in the enhanced cloud computing environment energy-saving system further comprises: a history database, and the cloud computing environment C is configured to: receiving, by the cloud computing environment platform, a cloud computing request sent from a client; the cloud computing environment platform carries out security authentication on the computing request, and the following operations are executed after the authentication is passed; analyzing, evaluating and acquiring the workload included in the request by the cloud computing environment platform; the cloud computing environment platform analyzes and judges whether the cloud computing request is requested to be processed or not by calling the historical database, if the cloud computing request is processed, the cloud computing environment platform directly calls a previous processing result from the historical database and sends a cloud computing request result subjected to computing processing to the client; if not previously processed, continue; updating the capacity, the capacity and the priority of each node computing device by the cloud computing environment platform; comparing, by the cloud computing environment platform, the workload included in the request with the information processing margin in the existing node computing device one by one, according to the priority of the existing node computing device; if the former is smaller than the latter, the cloud computing environment platform encrypts the workload included in the request according to the priority and then delivers the encrypted workload to the selected node computing equipment, and after the computing processing is finished, the encrypted workload is delivered back to the cloud computing environment platform; then, the following decryption is performed; if the former is larger than the latter, the cloud computing environment platform configures the host and the virtual machine in the node computing equipment and/or migrates and/or combines the virtual machine to reduce the total number of the used node computing equipment, encrypts the workload included in the request and delivers the encrypted workload to the selected node computing equipment, and after the computing processing is finished, delivers the encrypted workload to the cloud computing environment platform; then, the following decryption is performed; decrypting, by the cloud computing environment platform, the data; and sending the result of the cloud computing request subjected to computing processing to the client by the cloud computing environment platform.
According to another aspect of the invention, the enhanced cloud computing environment energy saving system further comprises: the node computing device in the enhanced cloud computing environment energy-saving system is configured to: identifying a virtual machine to be migrated in the case that a workload included in the request is greater than an information processing margin in the existing node computing device; obtaining the use parameters Par of the central processing unit of the host i to be tested to be migrated
iThe parameter Par
iThe sum is the quadratic sum of the difference between the currently processed workload of the central processor of host i and the host distribution mean, and then the quotient of the sum and the number of hosts, i.e.:
wherein represents the current processing workload of the central processing unit of host i, B represents the host distribution average, and M represents the number of hosts, which is a positive integer of at least 2; repeating the previous operation for the same virtual machine to be migrated until M hosts; for the jth virtual machine to be migrated, repeating the previous two steps until M hosts, and repeating the execution until N virtual machines to be migrated, namely executing M (N-1) times, wherein N represents the number of the virtual machines to be migrated, and the value of N is a positive integer of at least 2; for each virtual machine to be migrated and each host, an array Ary of central processor usage parameters is created:
selecting the minimum from each row, creating an array of minima of use parameters Ary of the central processor
MIN,
Computing Ary
MINCorresponding to the preferred migratable virtual machine and the preferred host, and performs a scheduled allocation migration.
According to another aspect of the invention, the enhanced cloud computing environment energy saving system further comprises: the node computing device in the enhanced cloud computing environment energy-saving system is configured to: under the condition that the workload included in the request is larger than the information processing allowance in the existing node computing equipment, calculating the number of virtual machines with unit processing capacity to be scheduled according to the workload included in the request; decomposing a plurality of virtual machines of unit processing capacity to be scheduled into groups; determining whether the virtual machine needs to be migrated according to the number of the packets; if the critical value is exceeded, the requirement is needed, otherwise, the requirement is not needed; if the node computing equipment in the low power consumption state is enough, migrating the virtual machine in the previous step to the node computing equipment in the low power consumption state according to the performances and capacities of a central processing unit, a static memory and a dynamic memory of the node computing equipment in the low power consumption state; if the data is insufficient, according to the performances and capacities of a central processing unit, a static memory and a dynamic memory of the node computing equipment in the low power consumption state, the signing performance and capacity are divided by the unit processing capacity, and data of an integral number of unit processing capacities are transmitted to the node computing equipment in the low power consumption state by adopting a rounding and tailing removing method.
According to another aspect of the invention, wherein the low power consumption state comprises a sleep, standby, running to a delayed wait state.
According to another aspect of the present invention, wherein the calculating the number of virtual machines of the unit processing capacity to be scheduled according to the workload included in the request further comprises: the number is obtained in the following manner
Wherein D
kRepresenting the number of virtual machines, E
kA numerical value representing the amount of tasks of the virtual machine, and E representing the number of servers.
According to another aspect of the invention, the enhanced cloud computing environment energy saving system further comprises: the client comprises a user, a desktop or portable PC, a terminal with PC functionality or a user equipment UE in communication technology.
According to another aspect of the invention, the enhanced cloud computing environment energy saving system further comprises: the cloud computing environment platform firstly identifies the information type in the request, removes the request header information in the request, and reserves, evaluates and acquires the information to be processed in the request.
According to another aspect of the invention, the enhanced cloud computing environment energy saving system further comprises: the priority of the existing node computing device is determined based on the performance and capacity of a central processor, a static memory and a dynamic memory of the node computing device, and the parameters are updated to the cloud computing environment platform regularly.
According to another aspect of the invention, the enhanced cloud computing environment energy saving system further comprises: the information processing margin in the existing node computing device is obtained by subtracting the workload at the current time point from a preset threshold of the existing node computing device, wherein the preset threshold is a ratio obtained by multiplying the total performance and capacity of the node computing device by a certain ratio, and the ratio is at least 80%.
The energy-saving system for enhancing the cloud computing environment can effectively reduce energy consumption of node processing equipment such as physical computing equipment and virtual computing equipment in the cloud computing environment, further improve the efficiency of scheduling, migration and combination of virtual machines, and enhance the safety of the cloud computing environment.
Detailed Description
In the following description, reference is made to the accompanying drawings that show, by way of illustration, several specific embodiments. It will be understood that: other embodiments are contemplated and may be made without departing from the scope or spirit of the present disclosure. The following detailed description is, therefore, not to be taken in a limiting sense.
According to an exemplary embodiment of the invention, fig. 1 illustrates a method for enhancing energy saving of a cloud computing environment, comprising the following steps:
receiving a cloud computing request sent from a client;
the cloud computing environment platform analyzes, evaluates and acquires the workload included in the request;
according to the comparison of the workload, determining an energy-saving strategy and scheduling resources to execute the workload, and after the calculation processing is finished, delivering the workload back to the cloud computing environment platform; and
and the cloud computing environment platform sends the result of the cloud computing request to the client.
FIG. 2 illustrates a schematic diagram of an enhanced cloud computing environment energy saving system, according to an exemplary embodiment of the present invention. Wherein the system contains a client 1, and a cloud computing environment C for communicating and interacting with the client 1. The cloud computing environment C includes a cloud computing environment platform 1 and a plurality of node computing devices 2-6. The cloud computing environment platform 1 can reasonably call the node computing devices, and after optimization, a small number of node computing devices can be used for reducing the energy consumption of the whole system.
Accordingly, the enhanced cloud computing environment energy saving system comprises:
the client sends a cloud computing request and is received by the cloud computing environment platform; and
a cloud computing environment C comprising:
the cloud computing environment platform analyzes, evaluates and obtains the workload included in the request, and determines an energy-saving strategy according to the comparison of the workload;
the node computing equipment receives the scheduling executed by the cloud computing environment platform according to the energy-saving strategy, then executes the workload, and after the computing processing is finished, transmits the processing result back to the cloud computing environment platform; and
the cloud computing environment platform further sends the result of the cloud computing request to the client.
FIG. 3 illustrates a flow chart of a method for enhancing energy savings in a cloud computing environment, according to an exemplary embodiment of the present invention. Specifically, the method comprises the following steps:
in step S1, receiving a cloud computing request sent from a client;
in step S2, the cloud computing environment platform performs security authentication on the computing request, and executes step S3 after the authentication is passed;
in step S3, the cloud computing environment platform analyzes, evaluates, and obtains the workload included in the request;
in step S4, the cloud computing environment platform determines whether the cloud computing request has been previously requested to be processed by invoking the history database analysis, and if so, directly invokes the previous processing result from the history database, and performs step S10; if not previously processed, go to step S5;
in step S5, the cloud computing environment platform updates the capability, capacity and priority of each node computing device;
in step S6, the cloud computing environment platform compares the workload included in the request with the information processing margin in the existing node computing device one by one according to the priority of the existing node computing device;
in step S7, if the former is smaller than the latter, the workload included in the request is encrypted according to the priority and delivered to the selected node computing device, and after the computing process is finished, the workload is delivered back to the cloud computing environment platform; then step S9 is executed;
in step S8, if the former is greater than the latter, the configuration of the host and the virtual machine in the node computing device and/or the migration and/or combination of the virtual machine are performed to reduce the total number of the node computing devices used, and the workload included in the request is encrypted and delivered to the selected node computing device, and after the computing process is finished, the workload is delivered back to the cloud computing environment platform; then step S9 is executed;
in step S9, the cloud computing environment platform decrypts the data;
in step S10, the cloud computing environment platform sends the result of the computing-processed cloud computing request to the client.
Accordingly, the cloud computing environment C in the enhanced cloud computing environment energy saving system further comprises a history database, and the cloud computing environment C is configured to:
receiving, by the cloud computing environment platform, a cloud computing request sent from a client;
the cloud computing environment platform carries out security authentication on the computing request, and the following operations are executed after the authentication is passed;
analyzing, evaluating and acquiring the workload included in the request by the cloud computing environment platform;
the cloud computing environment platform analyzes and judges whether the cloud computing request is requested to be processed or not by calling the historical database, if the cloud computing request is processed, the cloud computing environment platform directly calls a previous processing result from the historical database and sends a cloud computing request result subjected to computing processing to the client; if not previously processed, continue;
updating the capacity, the capacity and the priority of each node computing device by the cloud computing environment platform;
comparing, by the cloud computing environment platform, the workload included in the request with the information processing margin in the existing node computing device one by one, according to the priority of the existing node computing device;
if the former is smaller than the latter, the cloud computing environment platform encrypts the workload included in the request according to the priority and then delivers the encrypted workload to the selected node computing equipment, and after the computing processing is finished, the encrypted workload is delivered back to the cloud computing environment platform; then, the following decryption is performed;
if the former is larger than the latter, the cloud computing environment platform configures the host and the virtual machine in the node computing equipment and/or migrates and/or combines the virtual machine to reduce the total number of the used node computing equipment, encrypts the workload included in the request and delivers the encrypted workload to the selected node computing equipment, and after the computing processing is finished, delivers the encrypted workload to the cloud computing environment platform; then, the following decryption is performed;
decrypting, by the cloud computing environment platform, the data;
and sending the result of the cloud computing request subjected to computing processing to the client by the cloud computing environment platform.
Specifically, the client may be a user, a desktop or portable PC, a terminal with a PC function, a mobile device such as a mobile phone or a mobile phone, or a user equipment UE in communication technology.
Specifically, the cloud computing environment platform first identifies the information type in the request, removes the request header information therein, and retains, evaluates and acquires the to-be-processed information included in the request, that is, the workload of the to-be-computed processing.
Specifically, the priority of the existing node computing device is determined based on the performance and capacity of the central processor, the static memory and the dynamic memory of the node computing device, and the parameters are updated to the cloud computing environment platform periodically.
The information processing margin in the existing node computing device is the preset threshold of the existing node computing device minus the workload at the current time point, where the preset threshold is the total performance and capacity of the node computing device multiplied by a certain proportion, such as 80%, to ensure normal operation without causing the node computing device to run at full capacity or exceed the operational capacity or causing the node computing device to have a reduced life span due to long-term high utilization.
In addition, the node computing device includes, but is not limited to, a host including a virtual machine, and may further include other information processing devices located at the node, such as a scheduling computing device.
FIG. 4 illustrates a flow diagram of a process for configuring and/or migrating and/or combining virtual machines in a node computing device to reduce the total number of node computing devices used and computing processes, according to an exemplary embodiment of the present invention;
specifically, in step S5, the configuration of the host and the virtual machine in the node computing device and/or the migration and/or combination of the virtual machine are performed to reduce the total number of the node computing devices used, and the calculation processing includes:
in step S510, identifying a virtual machine to be migrated;
in step S511, the use parameter Par of the central processor of the host i to be tested to be migrated is obtainediThe parameter PariThe sum is the quadratic sum of the difference between the currently processed workload of the central processor of host i and the host distribution mean, and then the quotient of the sum and the number of hosts, i.e.:
where represents the current processing workload of the central processor of host i, B represents the host distribution average, and M represents the number of hosts, which is a positive integer having a value of at least 2.
In step S512, step S511 is repeated for the same virtual machine to be migrated until M hosts.
In step S513, for the jth virtual machine to be migrated, steps S511-S512 are repeated until M hosts execute until N virtual machines to be migrated, that is, execute M × (N-1) times, where N represents the number of virtual machines to be migrated and has a positive integer value of at least 2.
In step S514, for each virtual machine to be migrated and each host, an array Ary of use parameters of the central processor is created:
in step S515, a minimum value is selected from each row, and a minimum value array Ary of use parameters of the central processor is createdMIN,
In step S516, Ary is calculatedMINCorresponding to the preferred migratable virtual machine and the preferred host machine.
Accordingly, the node computing device in the enhanced cloud computing environment energy-saving system is configured to:
in the case where the amount of work included in the request is greater than the information processing margin in the existing node computing device,
identifying a virtual machine to be migrated;
obtaining the use parameters Par of the central processing unit of the host i to be tested to be migratediThe parameter PariThe sum is the quadratic sum of the difference between the currently processed workload of the central processor of host i and the host distribution mean, and then the quotient of the sum and the number of hosts, i.e.:
where represents the current processing workload of the central processor of host i, B represents the host distribution average, and M represents the number of hosts, which is a positive integer having a value of at least 2.
And repeating the previous operation for the same virtual machine to be migrated until M hosts.
And for the jth virtual machine to be migrated, repeating the previous two steps until M hosts, and repeating the execution until N virtual machines to be migrated, namely executing M (N-1) times, wherein N represents the number of the virtual machines to be migrated, and the value of N is a positive integer of at least 2.
For each virtual machine to be migrated and each host, an array Ary of central processor usage parameters is created:
selecting the minimum from each row, creating an array of minima of use parameters Ary of the central processorMIN,
Computing AryMINCorresponding to the preferred migratable virtual machine and the preferred host, and performs a scheduled allocation migration.
Fig. 5 illustrates an alternative flow diagram for performing configuration of hosts and virtual machines in a node computing device and/or migration and/or combination of virtual machines to reduce the total number of node computing devices used and to compute processes, according to an exemplary embodiment of the present invention.
Alternatively, step S5 includes the steps of:
in step S520, the number of virtual machines of the unit processing capacity to be scheduled is calculated according to the workload included in the request;
in step S521, the plurality of virtual machines of the unit processing capacity to be scheduled are decomposed into groups;
in step S522, it is determined whether the virtual machine needs to be migrated according to the number of packets; if the critical value is exceeded, the requirement is needed, otherwise, the requirement is not needed;
in step S523, if there are enough node computing devices in the low power consumption state, migrating the virtual machine in the previous step to the node computing device in the low power consumption state according to the performance and capacity of the central processing unit, the static memory, and the dynamic memory of the node computing device in the low power consumption state; if the data is insufficient, according to the performances and capacities of a central processing unit, a static memory and a dynamic memory of the node computing equipment in the low power consumption state, the signing performance and capacity are divided by the unit processing capacity, and data of an integer number of unit processing capacity are transmitted to the node computing equipment in the low power consumption state by adopting a rounding and tailing removing method;
where low power states include, but are not limited to, sleep, standby, run-to-delay waiting (in order to optimize power consumption and to take into account boot rate and processing efficiency, delays are often used in the art from run-to-sleep or standby to respond quickly when needed).
Accordingly, the node computing device in the enhanced cloud computing environment energy-saving system is configured to:
in the case where the amount of work included in the request is greater than the information processing margin in the existing node computing device,
calculating the number of virtual machines with unit processing capacity to be scheduled according to the workload included in the request;
decomposing a plurality of virtual machines of unit processing capacity to be scheduled into groups;
determining whether the virtual machine needs to be migrated according to the number of the packets; if the critical value is exceeded, the requirement is needed, otherwise, the requirement is not needed;
if the node computing equipment in the low power consumption state is enough, migrating the virtual machine in the previous step to the node computing equipment in the low power consumption state according to the performances and capacities of a central processing unit, a static memory and a dynamic memory of the node computing equipment in the low power consumption state; if the data is insufficient, according to the performances and capacities of a central processing unit, a static memory and a dynamic memory of the node computing equipment in the low power consumption state, the signing performance and capacity are divided by the unit processing capacity, and data of an integer number of unit processing capacity are transmitted to the node computing equipment in the low power consumption state by adopting a rounding and tailing removing method; wherein the low power states include, but are not limited to, sleep, standby, running into delayed waiting.
Calculating the number of virtual machines of the unit processing capacity to be scheduled according to the workload included in the request further comprises: the number is obtained in the following manner
Wherein D
kRepresenting the number of virtual machines, E
kA numerical value indicating the amount of tasks of the virtual machine, E the number of servers, and L.
In addition, particularly, the cloud computing environment platform encrypts and decrypts data, so that potential safety hazards in data computing processing due to the fact that a plurality of node computing devices are connected in the cloud computing environment can be eliminated.
Fig. 6 illustrates an energy saving effect diagram of the present invention with respect to the prior art, according to an exemplary embodiment of the present invention. Wherein: item A represents the method and system adopted by the invention, item B represents the method and system for scheduling load by giving priority to queuing or sequencing in the prior art; the horizontal axis represents the request rate issued by the client in units of the order of ten per minute and the vertical axis represents the power saving ratio. Through tests, compared with the method and the system adopted by the prior art, the method and the system have 1% -4% improvement, and have great improvement on energy saving effect for a large cloud computing environment.
In summary, in the technical solution of the present invention, the system for enhancing energy saving in cloud computing environment described herein includes: the client sends a cloud computing request and is received by the cloud computing environment platform; the cloud computing environment platform analyzes, evaluates and obtains the workload included in the request, and determines an energy-saving strategy according to the comparison of the workload; the node computing equipment receives scheduling executed by the cloud computing environment platform according to the energy-saving strategy, then executes the workload, and after computing processing is finished, transmits a processing result back to the cloud computing environment platform; and the cloud computing environment platform further sends the result of the cloud computing request to the client. The system can effectively reduce energy consumption of node processing equipment such as physical computing equipment, virtual computing equipment and the like in the cloud computing environment, further improve the efficiency of scheduling, migration and combination of the virtual machines, and enhance the safety of the cloud computing environment.
It will be understood that: the examples and embodiments of the invention may be implemented in hardware, software, or a combination of hardware and software. As mentioned above, any body performing such a method may be stored in the form of volatile or non-volatile storage, for example a storage device like a ROM, whether erasable or rewritable or not, or in the form of memory, such as for example a RAM, a memory chip, a device or an integrated circuit or on an optically or magnetically readable medium such as for example a CD, a DVD, a disk or a tape. It will be understood that: storage devices and storage media are examples of machine-readable storage suitable for storing one or more programs that, when executed, implement examples of the present invention. Examples of the present invention may be conveyed electronically via any medium, such as a communication signal carried over a wired or wireless connection, and the examples contain the same where appropriate.
It should be noted that: since the present invention adopts the technical means that can be understood by those skilled in the computer field according to the teachings of the present specification after reading the present specification, the present invention solves the technical problems and obtains the technical effects of effectively reducing the energy consumption of the node processing devices such as the physical computing devices and the virtual computing devices in the cloud computing environment, further improving the efficiency of scheduling, migrating, and merging the virtual machines, and enhancing the security of the cloud computing environment, the solution claimed in the appended claims belongs to the technical solution in the meaning of patent law. Furthermore, the solution claimed in the appended claims has utility since it can be manufactured or used in industry.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Unless expressly stated otherwise, each feature disclosed is one example only of a generic series of equivalent or similar features. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.