CN102696257A - Method and device for implementing temperature balance among multiple physical servers - Google Patents

Method and device for implementing temperature balance among multiple physical servers Download PDF

Info

Publication number
CN102696257A
CN102696257A CN2010800032657A CN201080003265A CN102696257A CN 102696257 A CN102696257 A CN 102696257A CN 2010800032657 A CN2010800032657 A CN 2010800032657A CN 201080003265 A CN201080003265 A CN 201080003265A CN 102696257 A CN102696257 A CN 102696257A
Authority
CN
China
Prior art keywords
temperature
physical server
server
physical
virtual
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.)
Granted
Application number
CN2010800032657A
Other languages
Chinese (zh)
Other versions
CN102696257B (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN102696257A publication Critical patent/CN102696257A/en
Application granted granted Critical
Publication of CN102696257B publication Critical patent/CN102696257B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05KPRINTED CIRCUITS; CASINGS OR CONSTRUCTIONAL DETAILS OF ELECTRIC APPARATUS; MANUFACTURE OF ASSEMBLAGES OF ELECTRICAL COMPONENTS
    • H05K7/00Constructional details common to different types of electric apparatus
    • H05K7/20Modifications to facilitate cooling, ventilating, or heating
    • H05K7/20709Modifications to facilitate cooling, ventilating, or heating for server racks or cabinets; for data centers, e.g. 19-inch computer racks
    • H05K7/20836Thermal management, e.g. server temperature control

Abstract

Embodiments of the present invention disclose a method and device for implementing temperature balance among the multiple physical servers, where the method includes: determining whether the temperature in a physical server is higher than a temperature alarm value or not, if yes, then migrating a virtual server in the physical server so as to make the temperature of the physical server not larger than the temperature alarm value of the physical server; if the temperature of each physical server is not larger than the temperature alarm value, then comparing whether the difference between the highest temperature and the lowest temperature in each physical server is larger than a preset difference or not, and if the difference is larger than the preset difference, then migrating the virtual server of the highest temperature in the physical server of the highest temperature to an appropriate physical server; if the difference between the highest temperature and the lowest temperature in each physical server is not larger than the preset difference, then allocating a virtual server to be allocated to an appropriate physical server. The present invention is applicable to balancing the temperature in the multiple physical servers of the cloud computing data center.

Description

Method and device for implementing temperature balance among multiple physical servers
Realize the method and device technical field of temperature equalization between many physical servers
The present invention relates to communication technical field, more particularly to a kind of method and device for realizing temperature equalization between many physical servers.Background technology
With continuing to develop for cloud computing technology, the scale of cloud computation data center is increasing, and the density of data center's physical server is also increasing, and multiple virtual servers are deployed with each physical server.In order to ensure normal work and provide high performance service, these physical servers need to keep appropriate temperature.Therefore, how to reduce the temperature of data center's physical server becomes the key issue maximally utilized for ensureing data center resource.
TASA (Te lecommunica t ions Alarm Sequence Ana lyzer, communication network alert sequence analyzer are used in the prior art)Algorithm, when being allocated every time to new task, it is possible to make physical server generation temperature highest task distribute to the minimum physical server of temperature, the purpose of temperature equalization is reached by the way that reasonably each task is assigned on appropriate physical server.
During the present invention is realized, inventor has found that at least there are the following problems in the prior art:The TASA algorithms used in the prior art carry out temperature equalization only in the first sub-distribution of task to physical server, and do not account for virtual server being deployed on physical server caused temperature change and the unbalanced problem of resulting temperature, when the temperature after sub-distribution between each physical server was still unbalanced originally or high temperature alarm occurs in physical server, further temperature equalization can not be carried out to physical server, it is impossible to realize the temperature equalization between many physical servers well.The content of the invention
Embodiments of the invention provide a kind of method and device for realizing temperature equalization between many physical servers, and the temperature equalization between many physical servers can be realized well.
The technical scheme that the embodiment of the present invention is used for:
A kind of method for realizing temperature equalization between many physical servers, including: Determine whether that the temperature of physical server exceedes temperature warning value, if so, then being migrated to the virtual server on the physical server, so that the temperature of the physical server is no more than the temperature warning value of the physical server;
If the temperature of each physical server is not less than temperature warning value, then compare whether the difference in each physical server between maximum temperature and minimum temperature is more than preset difference value, if greater than preset difference value, then temperature highest virtual server on temperature highest physical server is moved on suitable physical server;
If the difference in each physical server between maximum temperature and minimum temperature is not more than preset difference value, virtual server to be allocated is assigned on suitable physical server.
A kind of device for realizing temperature equalization between many physical servers, including:
Judge module, for determining whether that the temperature of physical server exceedes temperature warning value;First transferring module, for when the temperature for having physical server exceedes temperature warning value, being migrated to the virtual server on the physical server, so that the temperature of the physical server is no more than the temperature warning value of the physical server;
Comparison module, for when the temperature of each physical server is not less than temperature warning value, whether the difference in relatively more each physical server between maximum temperature and minimum temperature to be more than preset difference value;
Second transferring module, for when the difference in each physical server between maximum temperature and minimum temperature is more than preset difference value, temperature highest virtual server on temperature highest physical server to be moved on suitable physical server;
Distribute module, for when the difference in each physical server between maximum temperature and minimum temperature is not more than preset difference value, virtual server to be allocated to be assigned on suitable physical server.
The method and device provided in an embodiment of the present invention for realizing temperature equalization between many physical servers, virtual server temperature exceeded first on the physical server of temperature warning value is migrated, so that the temperature of the physical server is no more than the temperature warning value of the physical server;When difference in each physical server between maximum temperature and minimum temperature is more than preset difference value, temperature highest virtual server on temperature highest physical server is moved on suitable physical server;Then will be to be allocated virtual Server-assignment is on suitable physical server.Compared with prior art, it is unbalanced and during with virtual server to be allocated that temperature between temperature warning, each physical server can occur in physical server in the embodiment of the present invention, virtual server is assigned on suitable physical server, so as to realize the temperature equalization between many physical servers well, it is ensured that each physical server being capable of normal work and offer high performance service.Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, the required accompanying drawing used in embodiment will be briefly described below, apparently, drawings in the following description are only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram that the embodiment of the present invention one is provided;
Fig. 2 is the method flow diagram that the embodiment of the present invention two is provided;
Fig. 3, Fig. 4 are the apparatus structure schematic diagram that the embodiment of the present invention three is provided.Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, all other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made belongs to the scope of protection of the invention.
To make the advantage of technical solution of the present invention clearer, the present invention is elaborated with reference to the accompanying drawings and examples.
Embodiment one
The present embodiment provides a kind of method for realizing temperature equalization between many physical servers, as shown in figure 1, methods described includes:
101st, determine whether that the temperature of physical server exceedes temperature warning value, if so, then being migrated to the virtual server on the physical server, so that the temperature of the physical server is no more than the temperature warning value of the physical server. If the 102, the temperature of each physical server is not less than temperature warning value, then compare whether the difference in each physical server between maximum temperature and minimum temperature is more than preset difference value, if greater than preset difference value, then temperature highest virtual server on temperature highest physical server is moved on suitable physical server.
If the 103, the difference in each physical server between maximum temperature and minimum temperature is not more than preset difference value, virtual server to be allocated is assigned on suitable physical server.
The method provided in an embodiment of the present invention for realizing temperature equalization between many physical servers, virtual server temperature exceeded first on the physical server of temperature warning value is migrated, so that the temperature of the physical server is no more than the temperature warning value of the physical server;When difference in each physical server between maximum temperature and minimum temperature is more than preset difference value, temperature highest virtual server on temperature highest physical server is moved on suitable physical server;Then virtual server to be allocated is assigned on suitable physical server.Compared with prior art, it is unbalanced and during with virtual server to be allocated that temperature between temperature warning, each physical server can occur in physical server in the embodiment of the present invention, virtual server is assigned on suitable physical server, so as to realize the temperature equalization between many physical servers well, it is ensured that each physical server being capable of normal work and offer high performance service.
Embodiment two
The present embodiment provides a kind of method for realizing temperature equalization between many physical servers, as shown in Fig. 2 methods described includes:
201st, the temperature of current time all physical servers is obtained, all physical servers are pressed into temperature ascending order arrangement form resource queue A.
Wherein, when physical server has just increased or has deleted virtual server, the temperature of true temperature plus or minus the virtual server when its temperature is just increase or deletion virtual server, afterwards the temperature of the physical server be always maintained at it is constant, until after time t just the temperature of the physical server is changed to its actual temperature.Wherein, the time t is the time needed for increasing or delete the temperature stabilization of physical server after virtual server. Further, when physical server is not actuated, its temperature should also add start-up temperature on the basis of Current Temperatures.
202nd, new task is received, according to the difference of type, each task is added into corresponding queue.The task can include three kinds of alarm task, tuning task and user's request task, wherein, alarm task is sent by warning system, and alarm task is used to point out the temperature of physical server to exceed temperature warning value C;Tuning task clocked flip or can be sent by system manager;User's request task is the request that requirement distributes virtual server.
Optionally, if user's request task directly closes the virtual server, and delete the virtual server to delete the request of virtual server.
According to the difference of task, four queues of priority from high to low are provided with:Alarm queue, execution queue, tuning queue and waiting list.Alarm task is added into alarm queue;Tuning task adds tuning queue;User's request task, which is added, performs queue;If the user's request task being immediately performed, then start to perform, if predetermined user's request task, then first judge to meet after user's request, waiting list is added into, user's request task for having timed out will be performed and be added to execution queue by then taking from queue is performed all to arrive first before task every time in waiting list.
203rd, alarm queue is checked, judges whether there is alarm task in alarm queue, if so, step 204 is then performed, if it is not, performing step 205.
204th, alarm task is taken out from alarm queue, the temperature of the corresponding physical server of alarm task and physical server temperature warning value C difference W is calculated, the virtual server quantity N for needing to migrate is known, wherein, the condition that N is met is:N-1 N number of virtual server temperature sum of virtual server temperature sum $ temperature highests of temperature highest, successively moves to the N number of virtual server of temperature highest on the physical server on suitable physical server, return to step 201.
Specifically, virtual server is moved into the method on suitable physical server is specially:
51st, preceding M physical server is taken out from resource queue A, it is such as not actuated, then start.
52nd, calculate respectively and try the virtual server to move to the inequality on each physical server, wherein, the inequality is equal to the absolute value of the difference of the temperature of each physical server and the mean temperature of physical server Sum.
S 3, the physical server for finding out inequality minimum, as long as the physical server temperature is no more than physical server temperature warning value C plus virtual server temperature after distribution, and the available resources of physical server are enough, then the virtual server is moved on the physical server, the small physical server of inequality time is otherwise found out and continues to distribute;If the M physical server is all unsatisfactory for above-mentioned condition, a physical server distribution is looked in the same fashion from the remaining physical servers of resource queue A;If all physical servers in resource queue A are all unsatisfactory for above-mentioned condition, the request of increase physical server is sent.
Wherein, the temperature T of virtual serverVMRefer to adding or delete the temperature that physical server is increased or decreased after the virtual server.The temperature T of the virtual serverVMIt can be calculated according to below equation:
Q (u) =b, + (bx-bj u ( 1 )
Q=cm A t (2) are by formula(2) it can obtain:
Q ( u ) =cmTvM ( 3 ) b^cmT! ( 4 ) bT=cmTT(5) by formula(3), (4), (5) substitute into formula(1) it can obtain:
Wherein, u represents the utilization rate of physical server or virtual server;
Q (u) represents heat when physics server utilization is u;
^ represents heat when physical server is unloaded;
bTRepresent the heat of physical server full load;
L represents to distribute after virtual server, physical server increased temperature when virtual server is unloaded; ΤτRepresent after distribution virtual server, the increased temperature of virtual server full load physical server;Δ t represents the temperature of physical server change;
C represents the specific heat capacity of physical server;
M represents the quality of physical server. 205th, tuning queue is checked, judges whether there is tuning task in tuning queue, if so, then performing step 206;If it is not, performing step 208.
206th, the maximum difference F between the difference D and default maximum temperature and minimum temperature of physical server maximum temperature in resource queue A and minimum temperature is compared, judges whether D is more than F, if D>F, then perform step 207;If D F, step 208 is performed.
207th, temperature highest virtual server on temperature highest physical server is taken out, the virtual server is moved on suitable physical server, return to step 201.
Specifically, the step that method virtual server moved on suitable physical server is referred to described in S1-S3 is carried out.
Illustrated by taking five physical servers PM1, PM2, PM3, PM4 and PM5 as an example, the virtual server and the resource service condition of each physical server included in the temperature of each physical server, each physical server is as shown in table 1:
In table 1, the virtual server that each physical server is included is increased with being assigned on the physical server Temperature represent, wherein, by taking PM1 as an example, comprising 4,5 two virtual servers on PM1, that is to say, that it is respectively 4 and 5 that two virtual servers on PM1, which are assigned to increased temperature on PM1,
Wherein, maximum difference F=5 between default physical server maximum temperature and minimum temperature, due to difference D=l 3 of five physical server maximum temperatures and minimum temperature>F=5, therefore need to migrate virtual server.
Specific transition process is as follows(It is assumed that the temperature of each physical server is no more than physical server temperature warning value C after migration every time):
(1) migrate for the first time:Temperature highest physical server Ρ Μ 3, and temperature highest virtual server on the physical server are found out, the temperature of the virtual server is 5, the inequality that virtual server examination is moved on each physical server is respectively:
Distributing inequality on PM1 is: 15. 60;
Distributing inequality on Ρ Μ 2 is: 23. 20;
Distributing inequality on Ρ Μ 3 is: 22. 00;
Distributing inequality on Ρ Μ 4 is: 17. 20;
Distributing inequality on Ρ Μ 5 is: 21. 20
It is minimum due to distributing the inequality on PM1, therefore the virtual server is migrated to PM1, the resource service condition of the temperature of each physical server after migrating for the first time, the virtual server included on each physical server and each physical server is as shown in table 2:
PM3 26 4, 5, 4 6/12 5/12 600/1200
PM4 18 5, 4, 4 4/10 4/10 500/1000
PM5 22 4, 5, 3, 3 6/15 6/15 600/1500
By table 2, it can be seen that for the first time migrate after each physical server with resource be not up to the upper limit.Difference D=9 of five physical server maximum temperatures and minimum temperature after second of migration>F=5, therefore need to continue to migrate virtual server.
(2) second of migration:Temperature highest physical server PM2, and temperature highest virtual server on the physical server are found out, there is the virtual server that two temperature are 5, appoints and takes one, the inequality that virtual server examination is moved on each physical server is respectively:
Distributing inequality on PM1 is: 12 00;
Distributing inequality on PM2 is: 15 60;
Distributing inequality on PM3 is: 14 40;
Distributing inequality on PM4 is: 9. 60;
Distributing inequality on PM5 is: 12 80
It is minimum due to distributing the inequality on PM4, therefore the virtual server is migrated to PM4, second migrate after the temperature of each physical server, the virtual server that includes on each physical server and each physical server resource service condition it is as shown in table 3:
PM2 24 4, 5, 3 5/10 5/10 600/1000
PM3 26 4, 5, 4 6/12 5/12 600/1200
PM4 21 5, 4, 4, 5 6/10 6/10 600/1000
PM5 22 4, 5, 3, 3 6/15 6/15 600/1500
By table 3, it can be seen that second migrate after each physical server be not up to the upper limit with resource.Difference D=6 of five physical server maximum temperatures and minimum temperature after second of migration>F=5, therefore need to continue to migrate virtual server.
(3) third time is migrated:Temperature highest physical server PM3, and temperature highest virtual server on the physical server are found out, the temperature of the virtual server is 5, the inequality that virtual server examination is moved on each physical server is respectively:
Distributing inequality on PM1 is: 6.80;
Distributing inequality on PM2 is: 10.80;
Distributing inequality on PM3 is: 9.60;
Distributing inequality on PM4 is: 7.20;
Distributing inequality on PM5 is: 7.60
It is minimum due to distributing the inequality on PM1, therefore the virtual server is migrated to PM1, the resource service condition of the temperature of each physical server after third time is migrated, the virtual server included on each physical server and each physical server is as shown in table 4:
PM1 25 4, 5, 5, 5 7/8 7/8 500/800
PM2 24 4, 5, 3 5/10 5/10 600/1000
PM3 24 4, 4 4/12 3/12 500/1200
PM4 21 5, 4, 4, 5 6/10 6/10 600/1000
PM5 22 4, 5, 3, 3 6/15 6/15 600/1500
By table 4, it can be seen that third time migrate after each physical server with resource be not up to the upper limit.Now, difference D=4 of five physical server maximum temperatures and minimum temperature<F=5, it is not necessary to continue to migrate virtual server.
208th, execution queue is checked, judges perform in queue whether have the user's request task being immediately performed, if so, then performing step 211;If it is not, performing step 209.
209th, detect that judgement is receiving or refuses user's request task to performing the user's request task subscribed in queue, and inform user, and user's request task of receiving is put into waiting list.
210th, the user's request task for having arrived the time started in waiting list, which is added, performs queue.
211st, the user's request task performed in queue is arranged by virtual server temperature descending, each virtual server is assigned on suitable physical server successively, return to step 201.
Specifically, the step that method virtual server being assigned on suitable physical server is referred to described in S1-S3 is carried out.
Illustrated exemplified by there are three user's request tasks in waiting list, three user's request tasks ask to distribute virtual server VM1, VM2 and VM3 respectively, current to have five physical servers PM1, PM2, PM3, PM4 and PM5.Wherein, the temperature of each physical server and resource service condition are as shown in table 5: PMl 20 5/8 5/8 500/800
PM2 21 5/10 5/10 500/1000
PM3 22 5/12 5/12 500/1200
PM4 23 5/10 5/10 500/1000
PM5 24 5/15 5/15 500/1500
Table 5
Wherein, the virtual server of different size distributes the increased temperature difference on the physical server of different size, and each virtual server distribution increased temperature of institute on each physical server is as shown in table 6:
The CPU of each virtual server request, internal memory and network bandwidth resources size are as shown in table 7:
Specific assigning process is as described below(It is assumed that the temperature of each physical server is no more than physical server temperature warning value C after per sub-distribution):
(1) it is defined by the temperature distributed on PM1, the temperature to each virtual server is arranged according to descending: VM1、 VM2、 VM3.
(2) first sub-distribution:It is respectively by the temperature highest virtual server VM1 inequality for trying to be assigned on each physical server: Distributing inequality on PMl is: 6. 00;
Distributing inequality on PM2 is: 6. 40;
Distributing inequality on PM3 is: 7. 60;
Distributing inequality on PM4 is: 9. 60;
Distributing inequality on PM5 is: 7. 20.
It is minimum due to distributing the inequality on PM1, therefore virtual server VM1 is assigned on PM1, it can be seen from table 5, table 6 and table 7, divide for the first time.Temperature and resource service condition such as table with rear each physical server
Shown in 8:
Table 8
By table 8, it can be seen that the resource of each physical server is not up to the upper limit after the first sub-distribution, it can be allocated.
(3) second sub-distribution:It is respectively by the temperature highest virtual server VM2 inequality for trying to be assigned on each physical server:
Distributing inequality on PM1 is:
Distributing inequality on PM2 is: 4. 40;
Distributing inequality on PM3 is: 5. 60;
Distributing inequality on PM4 is: 7. 60;
Distributing inequality on PM5 is: 7. 20. It is minimum due to distributing the inequality on PM2, therefore virtual server VM2 is assigned on PM2, it can be seen from table 6, table 7 and table 8, the temperature of each physical server and resource service condition are as shown in table 9 after the second sub-distribution:
By table 9, it can be seen that the resource of each physical server is not up to the upper limit after the second sub-distribution, it can be allocated.
(4) third time is distributed:It is respectively by the temperature highest virtual server VM3 inequality for trying to be assigned on each physical server:
Distributing inequality on PM1 is: 7. 60;
Distributing inequality on PM2 is: 6. 00;
Distributing inequality on PM3 is: 3. 20;
Distributing inequality on PM4 is: 4. 00;
Distributing inequality on PM5 is: 5. 20.
It is minimum due to distributing the inequality on PM3, therefore virtual server VM3 is assigned on PM3, it can be seen from table 6, table 7 and table 9, the temperature and resource service condition of each physical server are as shown in table 10 after third time is distributed:
Temperature CPU (CU) internal memory(G) the network bandwidth(Mbps) use/upper limit use/upper limit with the/upper limit PM1 25 7/8 7/8 600/800
PM2 24 6/10 7/10 600/1000
PM3 23 6/12 6/12 600/1200
PM4 23 5/10 5/10 500/1000
PM5 24 5/15 5/15 500/1500
Table 10
By table 10, it can be seen that the resource of each physical server is not up to the upper limit after third time distribution, it can be allocated.
So far, three virtual servers are assigned on suitable physical server.
Further, if user's request task is Virtual Server Cluster, then head of the queue is successively placed on by arrival sequencing, then first user's request task is taken out from execution queue, the requirement of this Virtual Server Cluster and the minimum physical server cluster of mean temperature can be met by finding, method with reference to described in step S1-S3, by Virtual Server Cluster request distribution on the physical server cluster.
The method provided in an embodiment of the present invention for realizing temperature equalization between many physical servers, virtual server temperature exceeded first on the physical server of temperature warning value is migrated, so that the temperature of the physical server is no more than the temperature warning value of the physical server;When difference in each physical server between maximum temperature and minimum temperature is more than preset difference value, temperature highest virtual server on temperature highest physical server is moved on suitable physical server;Then virtual server to be allocated is assigned on suitable physical server.Compared with prior art, it is unbalanced and during with virtual server to be allocated that temperature between temperature warning, each physical server can occur in physical server in the embodiment of the present invention, virtual server is assigned on suitable physical server, so as to realize the temperature equalization between many physical servers well, it is ensured that each physical server being capable of normal work and offer high performance service.
Embodiment three
The present embodiment provides a kind of device for realizing temperature equalization between many physical servers, as shown in figure 3, Described device includes:
Judge module 31, for determining whether that the temperature of physical server exceedes temperature warning value;First transferring module 32, for when the temperature for having physical server exceedes temperature warning value, being migrated to the virtual server on the physical server, so that the temperature of the physical server is no more than the temperature warning value of the physical server;
Comparison module 33, for when the temperature of each physical server is not less than temperature warning value, whether the difference in relatively more each physical server between maximum temperature and minimum temperature to be more than preset difference value;
Second transferring module 34, for when the difference in each physical server between maximum temperature and minimum temperature is more than preset difference value, temperature highest virtual server on temperature highest physical server to be moved on suitable physical server;
Distribute module 35, for when the difference in each physical server between maximum temperature and minimum temperature is not more than preset difference value, virtual server to be allocated to be assigned on suitable physical server.
Further, as shown in figure 4, first transferring module 32 can include:
First computing unit 321, the difference W for calculating the temperature of the physical server and the temperature warning value of the physical server;
Acquiring unit 322, the quantity N for obtaining the virtual server for needing to migrate, wherein, N-1 N number of virtual server temperature sum of virtual server temperature sum $ temperature highests of temperature highest;First migration units 323, for the order according to temperature from high to low, successively move to virtual server on suitable physical server.
Wherein, as shown in figure 4, first migration units 323 can include:
First computation subunit 3231, the virtual server is tried to move to the inequality on each physical server for calculating respectively, wherein, the inequality is equal to the absolute value sum of the difference of the temperature of each physical server and the mean temperature of all physical servers after examination migration;
Migrate subelement 3232, for the virtual server to be moved into the minimum physical server of inequality, wherein, the temperature of the physical server is no more than the temperature warning value of the physical server after migration, and the available volume of resources of the physical server is no more than total resources. Further, as shown in figure 4, second transferring module 34 can include:
Second computing unit 341, the temperature highest virtual server is tried to move to the inequality on each physical server for calculating respectively, wherein, the inequality is equal to the absolute value sum of the difference of the temperature of each physical server and the mean temperature of all physical servers after examination migration;
Second migration units 342, for the temperature highest virtual server to be moved into the minimum physical server of inequality, wherein, the temperature of the physical server is no more than the temperature warning value of the physical server after migration, and the available volume of resources of the physical server is no more than total resources.
Further, as shown in figure 4, the distribute module 35 can include:
Virtual server to be allocated, for the order according to temperature from high to low, is assigned on suitable physical server by allocation unit 351 successively.
Wherein, as shown in figure 4, the allocation unit 351 can include:
Second computation subunit 3511, for calculating the inequality being assigned to virtual server examination on each physical server respectively, wherein, the inequality is equal to the absolute value sum of the difference of the temperature of each physical server and the mean temperature of all physical servers after examination distribution;
Distribute subelement 3512, for the virtual server to be assigned into the minimum physical server of inequality, wherein, the temperature of the physical server is no more than the temperature warning value of the physical server after distribution, and the available volume of resources of the physical server is no more than total resources.
The device provided in an embodiment of the present invention for realizing temperature equalization between many physical servers, virtual server temperature exceeded first on the physical server of temperature warning value is migrated, so that the temperature of the physical server is no more than the temperature warning value of the physical server;When difference in each physical server between maximum temperature and minimum temperature is more than preset difference value, temperature highest virtual server on temperature highest physical server is moved on suitable physical server;Then virtual server to be allocated is assigned on suitable physical server.Compared with prior art, it is unbalanced and during with virtual server to be allocated that temperature between temperature warning, each physical server can occur in physical server in the embodiment of the present invention, virtual server is assigned on suitable physical server, so as to realize the temperature equalization between many physical servers well, it is ensured that each physical server being capable of normal work and offer high-performance Service.
In all embodiments of the invention, the physical server can be blade server, but be not limited only to this.
The device provided in an embodiment of the present invention for realizing temperature equalization between many physical servers can realize the embodiment of the method for above-mentioned offer.The method and device provided in an embodiment of the present invention for realizing temperature equalization between many physical servers goes for carrying out temperature equalization to multiple physical servers of cloud computation data center, but is not limited only to this.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, computer program is can be by instruct the hardware of correlation to complete, described program can be stored in a computer read/write memory medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic disc, CD, read-only memory(Read-Only Memory, ROM) or deposit oneself at random and recall body (Random Access Memory, RAM) etc..
It is described above; only embodiment of the invention, but protection scope of the present invention is not limited thereto, any one skilled in the art the invention discloses technical scope in; the change or replacement that can be readily occurred in, should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (1)

  1. Claims
    1st, a kind of method for realizing temperature equalization between many physical servers, it is characterised in that including:Determine whether that the temperature of physical server exceedes temperature warning value, if so, then being migrated to the virtual server on the physical server, so that the temperature of the physical server is no more than the temperature warning value of the physical server;
    If the temperature of each physical server is not less than temperature warning value, then compare whether the difference in each physical server between maximum temperature and minimum temperature is more than preset difference value, if greater than preset difference value, then temperature highest virtual server on temperature highest physical server is moved on suitable physical server;If the difference in each physical server between maximum temperature and minimum temperature is not more than preset difference value, virtual server to be allocated is assigned on suitable physical server.
    2nd, according to the method described in claim 1, it is characterised in that the virtual server on the physical server is migrated, so that the temperature of the physical server includes no more than the temperature warning value of the physical server:
    Calculate the difference W of the temperature of the physical server and the temperature warning value of the physical server;
    The quantity N for the virtual server for needing to migrate is obtained, wherein, N-1 N number of virtual server temperature sum of virtual server temperature sum $ temperature highests of temperature highest;
    According to the order of temperature from high to low, virtual server is moved on suitable physical server successively.
    3rd, method according to claim 2, it is characterised in that described move to virtual server includes on suitable physical server:
    Calculate respectively and try the virtual server to move to the inequality on each physical server, wherein, the inequality is equal to the absolute value sum of the difference of the temperature of each physical server and the mean temperature of all physical servers after examination migration;
    The virtual server is moved on the minimum physical server of inequality, wherein, the temperature of the physical server is no more than the temperature warning value of the physical server after migration, and the available volume of resources of the physical server is no more than total resources.
    4th, according to the method described in claim 1, it is characterised in that described by temperature highest physical services Temperature highest virtual server is moved to and included on suitable physical server on device:
    Calculate respectively and try the temperature highest virtual server to move to the inequality on each physical server, wherein, the inequality is equal to the absolute value sum of the difference of the temperature of each physical server and the mean temperature of all physical servers after examination migration;
    The temperature highest virtual server is moved on the minimum physical server of inequality, wherein, the temperature of the physical server is no more than the temperature warning value of the physical server after migration, and the available volume of resources of the physical server is no more than total resources.
    5th, according to the method described in claim 1, it is characterised in that described virtual server to be allocated is assigned on suitable physical server includes:
    According to the order of temperature from high to low, virtual server to be allocated is assigned on suitable physical server successively.
    6th, method according to claim 5, it is characterised in that described virtual server to be allocated is assigned on suitable physical server includes:
    Calculate inequality virtual server examination being assigned on each physical server respectively, wherein, the inequality is equal to the absolute value sum of the difference of the temperature of each physical server and the mean temperature of all physical servers after examination distribution;
    The virtual server is assigned on the minimum physical server of inequality, wherein, the temperature of the physical server is no more than the temperature warning value of the physical server after distribution, and the available volume of resources of the physical server is no more than total resources.
    7th, a kind of device for realizing temperature equalization between many physical servers, it is characterised in that including:Judge module, for determining whether that the temperature of physical server exceedes temperature warning value;
    First transferring module, for when the temperature for having physical server exceedes temperature warning value, being migrated to the virtual server on the physical server, so that the temperature of the physical server is no more than the temperature warning value of the physical server;
    Comparison module, for when the temperature of each physical server is not less than temperature warning value, whether the difference in relatively more each physical server between maximum temperature and minimum temperature to be more than preset difference value; Second transferring module, for when the difference in each physical server between maximum temperature and minimum temperature is more than preset difference value, temperature highest virtual server on temperature highest physical server to be moved on suitable physical server;
    Distribute module, for when the difference in each physical server between maximum temperature and minimum temperature is not more than preset difference value, virtual server to be allocated to be assigned on suitable physical server.
    8th, device according to claim 7, it is characterised in that first transferring module includes:First computing unit, the difference W for calculating the temperature of the physical server and the temperature warning value of the physical server;
    Acquiring unit, the quantity N for obtaining the virtual server for needing to migrate, wherein, N-1 N number of virtual server temperature sum of virtual server temperature sum W temperature highests of temperature highest;
    First migration units, for the order according to temperature from high to low, successively move to virtual server on suitable physical server.
    9th, device according to claim 8, it is characterised in that first migration units include:First computation subunit, the virtual server is tried to move to the inequality on each physical server for calculating respectively, wherein, the inequality is equal to the absolute value sum of the difference of the temperature of each physical server and the mean temperature of all physical servers after examination migration;
    Migrate subelement, for the virtual server to be moved into the minimum physical server of inequality, wherein, the temperature of the physical server is no more than the temperature warning value of the physical server after migration, and the available volume of resources of the physical server is no more than total resources.
    10, device according to claim 7, it is characterised in that second transferring module includes:Second computing unit, the temperature highest virtual server is tried to move to the inequality on each physical server for calculating respectively, wherein, the inequality is equal to the absolute value sum of the difference of the temperature of each physical server and the mean temperature of all physical servers after examination migration;
    Second migration units, for the temperature highest virtual server to be moved into the minimum physical server of inequality, wherein, the temperature of the physical server is no more than the temperature warning value of the physical server after migration, and the available volume of resources of the physical server is no more than total resources. 11st, device according to claim 7, it is characterised in that the distribute module includes:Virtual server to be allocated, for the order according to temperature from high to low, is assigned on suitable physical server by allocation unit successively.
    12nd, device according to claim 11, it is characterised in that the allocation unit includes:Second computation subunit, for calculating the inequality being assigned to virtual server examination on each physical server respectively, wherein, the inequality is equal to the absolute value sum of the difference of the temperature of each physical server and the mean temperature of all physical servers after examination distribution;
    Distribute subelement, for the virtual server to be assigned into the minimum physical server of inequality, wherein, the temperature of the physical server is no more than the temperature warning value of the physical server after distribution, and the available volume of resources of the physical server is no more than total resources.
CN201080003265.7A 2010-11-29 2010-11-29 Method and device for implementing temperature balance among multiple physical servers Expired - Fee Related CN102696257B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2010/079254 WO2012071702A1 (en) 2010-11-29 2010-11-29 Method and device for implementing temperature balance among multiple physical servers

Publications (2)

Publication Number Publication Date
CN102696257A true CN102696257A (en) 2012-09-26
CN102696257B CN102696257B (en) 2014-06-04

Family

ID=46171160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201080003265.7A Expired - Fee Related CN102696257B (en) 2010-11-29 2010-11-29 Method and device for implementing temperature balance among multiple physical servers

Country Status (2)

Country Link
CN (1) CN102696257B (en)
WO (1) WO2012071702A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224381A (en) * 2014-05-30 2016-01-06 华为技术有限公司 A kind of method, Apparatus and system moving virtual machine

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984588B (en) * 2014-02-21 2017-02-08 中国科学院计算技术研究所 Virtual machine migration method based on temperature and system thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567203A (en) * 2003-06-30 2005-01-19 英业达股份有限公司 Managerial approach and system for operating efficiency of blade type server
US20070011288A1 (en) * 2005-05-31 2007-01-11 International Business Machines Corporation Apparatus and method for achieving thermal management through the allocation of redundant data processing devices
US20100042720A1 (en) * 2008-08-12 2010-02-18 Sap Ag Method and system for intelligently leveraging cloud computing resources
CN101853059A (en) * 2010-05-12 2010-10-06 姚学民 Cloud computing server system for heat dissipation, energy conservation and safe data storage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567203A (en) * 2003-06-30 2005-01-19 英业达股份有限公司 Managerial approach and system for operating efficiency of blade type server
US20070011288A1 (en) * 2005-05-31 2007-01-11 International Business Machines Corporation Apparatus and method for achieving thermal management through the allocation of redundant data processing devices
US20100042720A1 (en) * 2008-08-12 2010-02-18 Sap Ag Method and system for intelligently leveraging cloud computing resources
CN101853059A (en) * 2010-05-12 2010-10-06 姚学民 Cloud computing server system for heat dissipation, energy conservation and safe data storage

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张彬彬,罗英伟,汪小林,王振林,孙逸峰,陈昊罡,许卓群,李晓明: "虚拟机全系统在线迁移", 《电子学报》, 30 April 2009 (2009-04-30) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224381A (en) * 2014-05-30 2016-01-06 华为技术有限公司 A kind of method, Apparatus and system moving virtual machine
CN105224381B (en) * 2014-05-30 2018-10-09 华为技术有限公司 A kind of method, apparatus and system of migration virtual machine

Also Published As

Publication number Publication date
CN102696257B (en) 2014-06-04
WO2012071702A1 (en) 2012-06-07

Similar Documents

Publication Publication Date Title
CN110134495B (en) Container cross-host online migration method, storage medium and terminal equipment
US10659318B2 (en) Methods and apparatus related to management of unit-based virtual resources within a data center environment
CN105159751B (en) The virtual machine migration method of energy efficient in a kind of cloud data center
EP3335119B1 (en) Multi-priority service instance allocation within cloud computing platforms
CN104375897B (en) Cloud computing resource scheduling method based on the unbalanced degree of minimum relative load
EP3281359B1 (en) Application driven and adaptive unified resource management for data centers with multi-resource schedulable unit (mrsu)
CN103067293B (en) Method and system for multiplex and connection management of a load balancer
CN104917805A (en) Load sharing method and equipment
CN110602156A (en) Load balancing scheduling method and device
WO2011110026A1 (en) Method and apparatus for realizing load balance of resources in data center
CN107273211B (en) Data processing method based on virtual machine in cloud computing environment
EP3090339A1 (en) Method and system for allocating resources to resource consumers in a cloud computing environment
CN105491150A (en) Load balance processing method based on time sequence and system
CN104426694A (en) Method and device for adjusting virtual-machine resources
Gill et al. Dynamic cost-aware re-replication and rebalancing strategy in cloud system
Mosa et al. Virtual machine consolidation for cloud data centers using parameter-based adaptive allocation
CN106059940B (en) A kind of flow control methods and device
Komarasamy et al. A novel approach for Dynamic Load Balancing with effective Bin Packing and VM Reconfiguration in cloud
CN112600761A (en) Resource allocation method, device and storage medium
CN102696257A (en) Method and device for implementing temperature balance among multiple physical servers
WO2016065198A1 (en) High performance hadoop with new generation instances
CN113626145B (en) Dynamic capacity expansion method and system for number of business virtual machines
CN108833528A (en) A kind of cloud platform colony dispatching method and apparatus
CN108270857A (en) A kind of cloud computing operating system load-balancing method and system
CN114237902A (en) Service deployment method and device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140604

Termination date: 20191129

CF01 Termination of patent right due to non-payment of annual fee