Summary of the invention
In order to reduce the consumption of data center, the invention provides the method and apparatus at a kind of management data center to the energy.Said technical scheme is following:
The method at a kind of management data center, said method comprises:
From data center, obtain the main frame that is in idle condition;
Keep existing in the said data center main frame of second threshold value idle condition.
The said main frame that obtains the idle condition in the data center specifically comprises:
Obtain the load of the main frame that is moving in the said data center;
Obtaining load is zero main frame, and said load is that zero main frame is the main frame of said idle condition.
The said load that obtains is before zero the main frame, also comprises:
From load greater than zero and main frame less than first threshold select two minimum main frames of load;
If the load sum of said two main frames is no more than first threshold, then the load with said two main frames is incorporated on one of them main frame.
There is the main frame of second threshold value idle condition in the said data center of said maintenance, specifically comprises:
If the number of the main frame of said idle condition greater than second threshold value, is then selected the main frame of second threshold value idle condition;
Utilize the long-range technology of closing to close the main frame of unselected idle condition.
There is the main frame of second threshold value idle condition in the said data center of said maintenance, specifically comprises:
If the number of the main frame of said idle condition less than second threshold value, then utilizes the main frame of remote wake up technology open and close, when the number of the main frame of the idle condition in said data center reaches said second threshold value till.
The equipment at a kind of management data center, said equipment comprises:
Acquisition module is used for obtaining the main frame that is in idle condition from data center;
Keep module, be used for keeping said data center to have the main frame of second threshold value idle condition.
Said acquisition module specifically comprises:
First acquiring unit is used for obtaining the load of the main frame that said data center moving;
Second acquisition unit, being used to obtain load is zero main frame, said load is that zero main frame is the main frame of said idle condition.
Said acquisition module also comprises:
First selected cell is used for from load greater than zero and select two minimum main frames of load less than the main frame of first threshold;
Merge cells is no more than first threshold if be used for the load sum of said two main frames, and then the load with said two main frames is incorporated on one of them main frame.
Said maintenance module specifically comprises:
Second selected cell is if the number of main frame that is used for said idle condition is then selected the main frame of second threshold value idle condition greater than second threshold value;
Closing unit is used to utilize the long-range technology of closing to close the main frame of unselected idle condition.
Said maintenance module specifically comprises:
Open the unit, if the number of main frame that is used for said idle condition utilizes the main frame of remote wake up technology open and close less than second threshold value, when the number of the main frame of the idle condition in said data center reaches said second threshold value till.
Through obtaining the main frame of idle condition in the data center in real time, keep existing in the data center main frame of second threshold value idle condition.So under the prerequisite that does not influence data center's normal allocation task, reduced the consumption of data center to greatest extent to the energy.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that embodiment of the present invention is done to describe in detail further below.
Embodiment 1
As shown in Figure 1, the embodiment of the invention provides the method at a kind of management data center, comprising:
Step 101: from data center, obtain the main frame that is in idle condition;
Step 102: the main frame that keeps existing in the data center second threshold value idle condition.
In embodiments of the present invention, obtain the main frame of idle condition in the data center in real time, keep existing in the data center main frame of second threshold value idle condition.So under the prerequisite that does not influence data center's normal allocation task, reduced the consumption of data center to greatest extent to the energy.
Embodiment 2
As shown in Figure 2, the embodiment of the invention provides the method at a kind of management data center, comprising:
Step 201: the load that obtains each main frame that is moving in the data center in real time;
Wherein, the load of each main frame can be represented that the host parameter of each main frame comprises CPU (Central Processing Unit, central processing unit) utilization rate, network traffics, memory usage and hard disk reading speed at least by one or more host parameters.
For example, the CPU usage of use main frame is represented the load of main frame, and the operation of then obtaining the load of each main frame in the data center is specially:
In the heart the CPU usage of each main frame in the image data is with the CPU usage of each main frame load as each main frame.
For another example, the network traffics of use main frame are represented the load of main frame, and the operation of then obtaining the load of each main frame in the data center is specially:
In the heart the network traffics of each main frame in the image data are with the network traffics of each main frame load as each main frame.
Wherein, All have one or more virtual computing nodes on each main frame in the data center; When the user submits task to; Data center is the Task Distribution main frame of user's submission and the virtual computing node on this main frame, is responsible for the task that the user submits to is handled by this virtual computing node on this main frame; So there is load in certain main frame, then shows the virtual computing node that existence is moving on this main frame.Need to prove: the virtual computing node that moves on the main frame is many more, and the load of this main frame is just big more; And if the load of certain main frame is zero, then showing does not have virtual computing node in operation, so this main frame is in idle condition on this main frame.
Step 202: judge load greater than zero and whether be a plurality of less than the number of the main frame of first threshold, if, execution in step 203; If not, execution in step 206;
Particularly, from the All hosts that data center comprises, obtain load greater than zero and less than the main frame of first threshold, the number of the main frame of counting and acquiring judges whether the number of the main frame of statistics is a plurality of.
Wherein,, think that then this main frame is in than busy condition,, just should not give certain the virtual computing node on this main frame with new Task Distribution again if data center receives the new task that the user submits to if the load of certain main frame meets or exceeds first threshold.Wherein, the size of first threshold is the empirical value that obtains through a large amount of experiments.
Step 203: from load greater than zero and main frame less than first threshold select two minimum main frames of load;
Step 204: whether the load sum of judging two main frames surpasses preset first threshold value, if not, then execution in step 205, if then execution in step 206;
Step 205: load on one of them main frame is dynamically moved on another main frame, return execution in step 202;
Wherein, the virtual computing node of the load of each main frame for moving on this main frame.
Particularly, main frame of selection is hung up each the virtual computing node that is moving on the main frame of selecting from two main frames, the virtual computing node of hanging up is moved on another main frame, and recover the virtual computing node of hang-up.
Wherein, dynamically move to each the virtual computing node that is moving on one of them main frame on another main frame after, with regard to vanishing, and the current state of the main frame that is moved just becomes idle condition by the load of the main frame that moved.In addition; In the present embodiment; Before each the virtual computing node that is moving on one of them main frame is dynamically moved to another main frame, judge also whether the load sum of two main frames surpasses first threshold, just do not carry out migration operation if surpass; Another main unit load after so can preventing to move is bigger, and is in busy state.
Wherein, in the present embodiment, the load in the data center is merged the quantity that can increase the idle main frame in the data center less than the load on the main frame of first threshold.
Step 206: from all main frames that moving of data center, obtain the number that current state is the main frame of idle condition;
Particularly, from each main frame that data center comprises, selecting load is zero main frame, and wherein, the load of selection is that zero main frame is the main frame that current state is an idle condition, the number of the main frame of statistics idle condition.
Step 207: whether the number of judging the main frame of idle condition surpasses the second preset threshold value, if then execution in step 208, if not, and execution in step 209;
Wherein, the user submits task to data center, and data center receives the task that the user submits to, and gives the main frame of data center with the Task Distribution that the user submits to, so the load condition of the number of the idle main frame of data center and each main frame is to change in real time.
Wherein,, so in the present embodiment, in data center, reserve the main frame of second threshold value idle condition, supply data center's allocating task, so do not influence the computing power of data center in order to let data center's normal allocation task.
Step 208: from the main frame of idle condition, select the main frame of preset second threshold value idle condition, with the Host Shutdown of unselected idle condition, EO;
Particularly, from the main frame of idle condition, select the main frame of second threshold value idle condition, utilize the Host Shutdown of the long-range technology of closing unselected idle condition.
Wherein, The main frame of idle condition is also in operation, still in consumes energy, so in the present embodiment; In data center, keep the individual main frame that is in idle condition of second threshold value; Guarantee the task that data center can the normal allocation user submits to, and the Host Shutdown that is in idle condition that will be left has so reduced the consumption of data center to the energy.
Wherein, the most equipment in the data center is main frame, so most of energy of data center is all by main frame consumption; In addition, only when the user submits the peak of task to, just need the most of or whole main frame in the data center to open operation; And in other time; Most of main frame in the data center is in idle condition and loads less than first threshold, and in the present embodiment, load is merged less than the load on the main frame of first threshold; Obtain more many places in the main frame of idle condition; And under the prerequisite of the main frame that satisfies the required idle condition of data center's allocating task,, so reduce the consumption of data center widely to the energy with the unnecessary Host Shutdown that is in idle condition.
Further, the main frame in the data center not only consumes a large amount of energy when normal operation; Also discharge great amount of heat, make the temperature of data center raise, in data center, have refrigeration system; Refrigeration system discharges cold air, prevents that the temperature in the data center from raising.In embodiments of the present invention; Host Shutdown with the part idle condition of data center; Reduce the number of the main frame that is moving in the data center; So reduced the heat that main frame discharges to data center, thereby can heighten the temperature of refrigeration system refrigeration, thereby reduced the consumption of data center further the energy.
Wherein, the long-range technology of closing is existing comparatively proven technique, in the present embodiment, no longer this technology is made detailed explanation.
Step 209: the main frame of open and close makes the number of the main frame of idle condition in the data center reach preset second threshold value, EO.
Particularly,, calculate the number of the main frame that needs to open, from the main frame of closing, select a calculated number main frame, utilize remote wake up technology to open the main frame of selection according to the number and second threshold value of the main frame of the idle condition in the data center.
Wherein, remote wake up technology is existing comparatively proven technique, in the present embodiment, no longer this technology is made detailed description.
In embodiments of the present invention; Obtain the load of the main frame that each is moving in the data center in real time; For loading minimum and loading less than two main frames of first threshold; If the load sum of two main frames is less than first threshold, then the load with two main frames merges, and the number that in data center, keeps the main frame of the idle condition in the data center is that second threshold value is individual.So under the prerequisite that does not influence data center's normal allocation task, reduced the consumption of data center to greatest extent to the energy.
Embodiment 3
As shown in Figure 3, the embodiment of the invention provides the method at a kind of management data center, comprising:
Step 301: the main frame that obtains the idle condition in the data center in real time;
Particularly, in the main frame that from data center, is moving, obtain the load of each main frame, selecting load is zero main frame, and wherein, load is that the current state of zero main frame is an idle condition.
Wherein, data center comprises equipment such as main frame, refrigeration system, and the number of main frame occupies the majority.In addition, only when the user submits the peak of task to, just need the most of or whole main frame in the data center to open operation, and in other time, the most of main frame in the data center is in idle condition.
Step 302: whether the number of judging the main frame of idle condition surpasses the second preset threshold value, if, execution in step 303; If then execution in step 304 not;
Wherein, the user submits task to data center, and data center receives the task that the user submits to, and gives the main frame of data center with the Task Distribution that the user submits to, handles this task by the virtual computing center node on this main frame.So, in data center, keep the main frame of second threshold value idle condition in order not influence data center's normal allocation task.
Step 303: from the main frame of idle condition, select second threshold value main frame, with the Host Shutdown of unselected idle condition, EO;
Particularly, from the main frame of idle condition, select second threshold value main frame, utilize the long-range technology of closing to be left the Host Shutdown of unselected idle condition.
Wherein, The main frame of idle condition is also in operation, still in consumes energy, so in the present embodiment; In data center, keep the individual main frame that is in idle condition of second threshold value; Guarantee the task that data center can the normal allocation user submits to, and the Host Shutdown that is in idle condition that will be left has so reduced the consumption of data center to the energy.
Wherein, the most equipment in the data center is main frame, so most of energy of data center is all by main frame consumption; In addition, only when the user submits the peak of task to, just need the most of or whole main frame in the data center to open operation; And in other time; Most of main frame in the data center is in idle condition, and in the present embodiment, under the situation of the main frame that satisfies the required idle condition of data center's allocating task; With the unnecessary Host Shutdown that is in idle condition, so reduce the consumption of data center widely to the energy.
Wherein, the main frame in the data center not only consumes a large amount of energy when normal operation, also discharge great amount of heat, makes the temperature of data center raise, and in data center, has refrigeration system, and refrigeration system discharges cold air, prevents that the temperature in the data from raising.In embodiments of the present invention; Host Shutdown with the part idle condition of data center; Reduce the number of the main frame that is moving of data center; So reduced the heat that main frame discharges to data center, thereby can heighten the temperature of refrigeration system refrigeration, thereby reduced the consumption of data center further the energy.
Wherein, the long-range technology of closing is existing comparatively proven technique, in the present embodiment, no longer this technology is made detailed explanation.
Step 304: the main frame of open and close makes the number of the main frame of idle condition in the data center reach preset second threshold value, EO.
Particularly,, calculate the number of the main frame that needs to open, from the main frame of closing, select a calculated number main frame, utilize remote wake up technology to open the main frame of selection according to the number and second threshold value of the main frame of the idle condition in the data center.
Wherein, remote wake up technology is existing comparatively proven technique, in the present embodiment, no longer this technology is made detailed description.
In embodiments of the present invention, obtain the main frame of idle condition in the data center in real time, keep existing in the data center main frame of second threshold value idle condition.So under the prerequisite that does not influence data center's normal allocation task, reduced the consumption of data center to greatest extent to the energy.
Embodiment 4
As shown in Figure 4, the embodiment of the invention provides the equipment at a kind of management data center, comprising:
Acquisition module 401 is used for obtaining from data center the number of the main frame that is in idle condition;
Keep module 402, the number that is used for keeping the main frame of data center's idle condition is second threshold value.
Wherein, acquisition module 401 specifically comprises:
First acquiring unit 4011 is used for obtaining the load of the main frame that data center moving;
Second acquisition unit 4012, being used to obtain load is zero main frame, wherein, load is that zero main frame is the main frame of idle condition.
Wherein, acquisition module 401 also comprises:
First selected cell 4013 is used for from load greater than zero and select two minimum main frames of load less than the main frame of first threshold;
Merge cells 4014 is no more than first threshold if be used for the load sum of two main frames, and then the load with two main frames is incorporated on one of them main frame.
Wherein, referring to Fig. 4, in the present embodiment, keep module 402 specifically to comprise:
Second selected cell 4021 is if the number of main frame that is used for idle condition is then selected the main frame of second threshold value idle condition greater than second threshold value;
Closing unit 4022 is used to utilize the long-range technology of closing to close the main frame of unselected idle condition.
Wherein, referring to Fig. 5, in the present embodiment, keep module 402 specifically to comprise:
Open unit 4023, if the number of main frame that is used for idle condition utilizes the main frame of remote wake up technology open and close less than second threshold value, when the number of the main frame of the idle condition in data center reaches second threshold value till.
In embodiments of the present invention, obtain the main frame of idle condition in the data center in real time, keep existing in the data center main frame of second threshold value idle condition.So under the prerequisite that does not influence data center's normal allocation task, reduced the consumption of data center to greatest extent to the energy.
Need to prove: the equipment at a kind of management data center that the foregoing description provides is when the management data center; Only the division with above-mentioned each functional module is illustrated; In the practical application; Can as required above-mentioned functions be distributed by the different functional completion, the inner structure that is about to device is divided into different functional, to accomplish all or part of function of above description.In addition, the foregoing description provides the equipment at management data center and the method embodiment at management data center to belong to same design, and its concrete implementation procedure sees method embodiment for details, repeats no more here.
All or part of content in the technical scheme that above embodiment provides can realize that through software programming its software program is stored in the storage medium that can read, storage medium for example: the hard disk in the computing machine, CD or floppy disk.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.