A real-time energy consumption optimization method for application server cluster

Through the mixed integer linear programming method, the problem of real-time energy consumption optimization and server switch jitter in large-scale application server clusters is solved, and real-time optimization of cluster energy consumption minimization and switch stability is achieved while ensuring CPU utilization.

CN113867905BActive Publication Date: 2024-10-29SHANTOU UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111047326.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-08
Publication Date
2024-10-29
Estimated Expiration
2041-09-08

AI Technical Summary

Technical Problem

Existing technologies are difficult to optimize energy consumption in real-time in large-scale application server clusters, and fail to effectively solve the problem of server switch jitter, especially when load changes frequently.

Method used

Using a method based on mixed integer linear programming, by measuring various parameters of the server, predicting the load, calculating the switching overhead, calculating the isomorphism index, describing the energy consumption optimization problem as a mixed integer linear programming problem, and determining the switching status of the server based on the solution results and CPU frequency to ensure that energy consumption is minimized and server switch jitter is avoided.

Benefits of technology

It achieves real-time and precise optimization of energy consumption in large-scale clusters, reduces the number of variables, ensures that CPU utilization does not exceed the target value, and effectively avoids server switch jitter.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113867905B_ABST
    Figure CN113867905B_ABST
Patent Text Reader

Abstract

The present invention discloses a real-time energy consumption optimization method for an application server cluster. Under the premise of ensuring that the CPU utilization rate of the enabled server does not exceed a given target value, the present invention dynamically optimizes the deployment of each server in the cluster according to the load condition so as to minimize the energy consumption of the cluster. The present invention adopts a suitable variable definition method according to the homogeneity of the servers in the cluster, describes the cluster energy consumption optimization problem as a mixed integer linear programming problem, and then determines the switch state, CPU frequency and load of each server according to the solution result of the planning problem. The planning variable definition method used in the present invention can greatly reduce the number of variables, and the planning problem is linear. Even if it is applied to a large-scale cluster, the planning problem can still be solved accurately in real time. The method provided by the present invention takes into account the overhead of the server switch in the cluster energy consumption optimization problem, and penalizes the server switch, which can effectively avoid the server switch jitter caused by small load changes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of server cluster energy consumption management, and in particular to a real-time energy consumption optimization method for an application server cluster based on mixed integer linear programming. Background Art

[0002] Network application service operators usually deploy the scale of application server clusters (clusters for short) according to peak loads. However, the load during normal operations is usually much lower than the peak load and fluctuates. Therefore, the deployment of each server in the cluster (including switches, CPU frequency, and load) must be dynamically optimized according to the actual load conditions to save energy, thereby reducing operating costs and improving competitiveness.

[0003] Cluster energy consumption optimization based on planning problems is a commonly used method. It describes the deployment of each server in the cluster by defining variables, describes cluster energy consumption optimization as a planning problem, and then solves it. Existing methods can be roughly divided into two modes. One is to define variables for a single server, describe cluster energy consumption optimization as a linear programming problem, and use a toolkit to accurately solve it (i.e., obtain the optimal solution). However, when the cluster scale is large, the number of variables is huge, and the planning problem cannot be accurately solved in real time. The other method defines variables for the server model, describes cluster energy consumption optimization as a nonlinear programming problem, and then proposes a solution algorithm (such as differential evolution algorithm or genetic algorithm, etc.) based on the characteristics of the problem. However, these methods can usually only obtain suboptimal solutions (approximate solutions) in a very short time, and the quality of the solution also depends on the parameters of the algorithm.

[0004] In addition, existing methods do not solve the problem of server switching jitter, that is, small load changes may cause the server to switch on and off frequently. Once this problem is taken into account, the energy consumption optimization problem of the cluster will become more complicated and more difficult to solve in real time. Some methods are aware of this problem, but only use simple solutions, such as "do not shut down a server that has been turned on for less than 60 seconds." Summary of the invention

[0005] The technical problem to be solved by the embodiment of the present invention is to provide a real-time energy consumption optimization method for an application server cluster. Under the premise of ensuring that the CPU utilization of the enabled server does not exceed a given target value, the deployment of each server in the cluster can be dynamically optimized according to the load condition to minimize the energy consumption of the cluster, especially how to enable the optimization to be performed online in real time when the cluster is large, and how to avoid server switch jitter caused by small load changes.

[0006] In order to solve the above technical problems, an embodiment of the present invention provides a method for optimizing the real-time energy consumption of an application server cluster based on mixed integer linear programming, comprising the following specific steps:

[0007] S1: Measure the full load power, idle power and load capacity corresponding to each discrete frequency of each server, as well as the standby power of each server when it is shut down, where load refers to the average arrival rate of requests undertaken;

[0008] S2: Calculate the startup and shutdown costs of each server;

[0009] S3: Predicts the cluster load of the next optimization cycle based on historical load data;

[0010] S4: Calculate the cluster's isomorphism index;

[0011] S5: According to the different cluster isomorphism indexes, different variable definition methods are used to describe the deployment of each server in the cluster, and the cluster energy consumption optimization problem is described as a mixed integer linear programming problem;

[0012] S6: Solve mixed integer linear programming problems;

[0013] S7: Determine the switch status, CPU frequency and load of each server according to the solution results, and implement new deployment.

[0014] Specifically, step S2 further includes: the server startup overhead is calculated as follows: (average power during server startup * startup time + penalty parameter) / optimization cycle; the server shutdown overhead is calculated as follows: (average power during server shutdown * shutdown time + penalty parameter) / optimization cycle.

[0015] Furthermore, the step S4 further includes: the cluster isomorphism index is calculated as follows: in,

[0016] n represents the number of servers in the cluster,

[0017] f i represents the number of discrete frequencies of the i-th server,

[0018] M represents the number of server models in the cluster.

[0019] F i Represents the number of discrete frequencies of the i-th server model.

[0020] Furthermore, the step S5 further comprises: in the mixed integer linear programming problem, the objective function is the sum of the power of each server plus the sum of the startup and shutdown overhead of each server;

[0021] The constraints are that the load on all servers is equal to the predicted cluster load, and the CPU utilization of all powered-on servers is not higher than a given value.

[0022] Furthermore, the step S5 further includes: if the cluster isomorphism index is less than or equal to 1, defining variables for each server in the cluster; if the cluster isomorphism index is greater than 1, defining variables for each server model in the cluster.

[0023] Furthermore, the step S5 further includes: the method of defining variables for each server in the cluster is as follows:

[0024] Define a real variable x for the jth discrete frequency of the i-th server i,j and a binary variable y i,j ,y i,j Indicates whether the i-th server works at the j-th discrete frequency, x i,j represents the CPU utilization of the i-th server when it works at the j-th discrete frequency; if y i,j = 0, then x i,j =0.

[0025] Furthermore, the step S5 further includes: the method of defining variables for each server model in the cluster is as follows:

[0026] Define two integer variables for the jth discrete frequency of the i-th model server and Two real variables and And define two binary variables for the i-th server model and Indicates that there is The i-th type of server operates at the j-th discrete frequency and its load sum is in,

[0027] There are two possible values ​​for :

[0028] (1,0) means "need to start some new servers of the i-th model or keep the switches of the i-th server unchanged";

[0029] (0,1) means "some servers of type i need to be turned off or the switches of servers of type i remain unchanged",

[0030] and,

[0031] if So

[0032] if So

[0033] The implementation of the embodiments of the present invention has the following beneficial effects: the method of the present invention dynamically optimizes the deployment of each server in the cluster according to the load conditions so as to minimize the energy consumption of the cluster, under the premise of ensuring that the CPU utilization of the enabled server does not exceed a given target value; according to the isomorphism of the servers in the cluster, a suitable variable definition method is adopted to describe the cluster energy consumption optimization problem as a mixed integer linear programming problem, and then the switch state, CPU frequency and load of each server are determined according to the solution result of the planning problem; the planning variable definition method used can greatly reduce the number of variables, and the planning problem is linear, even if it is applied to a large-scale cluster, the planning problem can still be solved accurately in real time; the overhead of the server switch is taken into account in the cluster energy consumption optimization problem, and the server switch is penalized, which can effectively avoid the server switch jitter caused by small load changes. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A flow chart of method steps in an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0035] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.

[0036] like Figure 1 As shown, the present invention provides a real-time energy consumption optimization method for an application server cluster based on mixed integer linear programming, comprising the following specific steps:

[0037] Step S1: Determine the full load power, idle power and load capacity corresponding to each discrete frequency of each server, as well as the standby power of each server when it is shut down, wherein the load refers to the average arrival rate of the requests undertaken.

[0038] Step S2: Calculate the startup cost and shutdown cost of each server.

[0039] Furthermore, step S2 further includes: the server startup overhead is calculated as follows: (average power during server startup * startup time + penalty parameter) / optimization cycle; the server shutdown overhead is calculated as follows: (average power during server shutdown * shutdown time + penalty parameter) / optimization cycle.

[0040] Step S3: Predict the cluster load of the next optimization cycle based on historical load data.

[0041] Step S4: Calculate the cluster homogeneity index.

[0042] Furthermore, step S4 further includes: the cluster isomorphism index is calculated as follows: in,

[0043] n represents the number of servers in the cluster,

[0044] f i represents the number of discrete frequencies of the i-th server,

[0045] M represents the number of server models in the cluster.

[0046] F i Represents the number of discrete frequencies of the i-th server model.

[0047] Step S5: According to different cluster isomorphism indexes, different variable definition methods are used to describe the deployment of each server in the cluster, and the cluster energy consumption optimization problem is described as a mixed integer linear programming problem.

[0048] Furthermore, step S5 further comprises: in a mixed integer linear programming problem,

[0049] The objective function is the sum of the power of each server plus the sum of the startup and shutdown costs of each server;

[0050] The constraints are that the load on all servers is equal to the predicted cluster load, and the CPU utilization of all powered-on servers is not higher than a given value.

[0051] Furthermore, step S5 further includes: if the cluster isomorphism index is less than or equal to 1, defining variables for each server in the cluster; if the cluster isomorphism index is greater than 1, defining variables for each server model in the cluster.

[0052] Furthermore, step S5 further includes: a method for defining variables for each server in the cluster is as follows:

[0053] Define a real variable x for the jth discrete frequency of the i-th server i,j and a binary variable y i,j ,y i,j Indicates whether the i-th server works at the j-th discrete frequency, x i,j represents the CPU utilization of the i-th server when it works at the j-th discrete frequency; if y i,j = 0, then x i,j =0.

[0054] Furthermore, step S5 further includes: a method for defining variables for each server model in the cluster is as follows:

[0055] Define two integer variables for the jth discrete frequency of the i-th model server and Two real variables and And define two binary variables for the i-th server model and Indicates that there is The i-th type of server operates at the j-th discrete frequency and its load sum is in,

[0056] There are two possible values ​​for :

[0057] (1,0) means "need to start some new servers of the i-th model or keep the switches of the i-th server unchanged";

[0058] (0,1) means "some servers of type i need to be turned off or the switches of servers of type i remain unchanged",

[0059] and,

[0060] if So

[0061] if So

[0062] Step S6: solving the mixed integer linear programming problem;

[0063] Step S7: Determine the switch status, CPU frequency and load of each server according to the solution result, and implement the new deployment.

[0064] The above cluster energy consumption optimization is performed periodically. At the end of each optimization cycle, the cluster load of the next cycle is first predicted, and then the switch status, CPU frequency and load of each server are adjusted according to the predicted load, so that the total energy consumption of the cluster is minimized while ensuring that the CPU utilization of the turned-on server does not exceed the given target value.

[0065] The present invention has the following advantages:

[0066] 1) The energy consumption and load models are more accurate. Both mixed integer linear programming problems define variables for each discrete frequency, that is, the optimization scheme is to establish a "power-frequency" and "load-frequency" model for each discrete frequency, while existing methods usually establish the above two models roughly for the entire frequency range. The model constructed by the present invention is more accurate.

[0067] 2) Cluster energy consumption optimization problems can be solved accurately in real time. Existing cluster energy consumption optimization methods based on planning problems either have a huge number of planning variables when the cluster scale is large, making it difficult to accurately solve the planning problem in real time (i.e., to obtain the optimal solution), or propose a solution algorithm based on the characteristics of the problem, but usually only a suboptimal solution (i.e., an approximate solution) can be obtained in a very short time, and the quality of the solution also depends on the parameters of the algorithm. The solution provided by the present invention, on the one hand, describes cluster energy consumption optimization as a linear programming problem, and on the other hand, has a small number of variables. Whether it is applied to small-scale or large-scale clusters, the planning problem can be accurately solved in real time using existing toolkits.

[0068] 3) It can avoid server switch jitter. The method provided by the present invention takes into account the overhead of server switches in the cluster energy consumption optimization problem and penalizes the server switches, which can effectively avoid server switch jitter caused by small load changes. Existing methods do not do this because after considering the overhead of server switches, the optimization problem will become more complicated and more difficult to solve in real time.

[0069] The above disclosure is only a preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A real-time energy consumption optimization method for an application server cluster based on mixed integer linear programming, characterized in that: The following steps are involved: S1: measuring the full load power, idle power and load capacity corresponding to each discrete frequency of each server, as well as the standby power of each server when it is shut down, where the load is the average arrival rate of the requests undertaken; S2: Calculate the startup and shutdown costs of each server; S3: Predicts the cluster load of the next optimization cycle based on historical load data; S4: Calculate the cluster isomorphism index, the cluster isomorphism index is calculated as follows: ,in, n Indicates the number of servers in the cluster. Indicates i The number of discrete frequencies per server, M Indicates the number of server models in the cluster. Indicates i The number of discrete frequencies for each server model; S5: According to the different cluster isomorphism indexes, different variable definition methods are used to describe the deployment of each server in the cluster, and the cluster energy consumption optimization problem is described as a mixed integer linear programming problem. In the mixed integer linear programming problem, the objective function is the sum of the power of each server plus the sum of the startup and shutdown costs of each server; the constraints are that the sum of the loads borne by all servers is equal to the predicted cluster load, and the CPU utilization of all powered-on servers is not higher than a given value; S6: Solve mixed integer linear programming problems; S7: Determine the switch status, CPU frequency and load of each server according to the solution results, and implement new deployment.

2. The method according to claim 1, characterized in that The step S2 further includes: the startup overhead is calculated as follows: (average power during server startup*startup time+penalty parameter) / optimization cycle; the shutdown overhead is calculated as follows: (average power during server shutdown*shutdown time+penalty parameter) / optimization cycle.

3. The method according to claim 1, characterized in that: The step S5 further includes: if the cluster isomorphism index is less than or equal to 1, defining a variable for each server in the cluster; if the cluster isomorphism index is greater than 1, defining a variable for each server model in the cluster.

4. The method according to claim 3, characterized in that The step S5 further includes: the method of defining variables for each server in the cluster is as follows: For the i Server No. j A real variable is defined by a discrete frequency and a binary variable , Indicates i Is the server working on j At discrete frequencies, Indicates i The server is working on j The CPU utilization at discrete frequencies; if ,So .

5. The method according to claim 4, characterized in that The step S5 further includes: the method of defining variables for each server model in the cluster is as follows: For the i The first model of server j Discrete frequencies define two integer variables and , two real variables and , and for i The server model defines two binary variables and , indicating that there is Taiwan i This type of server works on j discrete frequencies and their loads are ,in, There are two possible values ​​for : It means "need to open some new i Server model or i The switches of all server models remain unchanged"; It means "need to close some i Server model or i The switches of all server models remain unchanged." and, if ,So ; if ,So .

Citation Information

Patent Citations

  • Power supply and performance management system for virtualization server cluster

    CN102759984A

  • Energy-saving deployment method and device for cluster server

    CN104052625A

  • Online energy consumption management method and apparatus of large-scale server cluster

    CN106452822A

  • Determining an allocation configuration for allocating virtual machines to physical machines

    US20120198447A1