[go: up one dir, main page]

CN102929687A - Energy-saving virtual machine placement method for cloud computing data center - Google Patents

Energy-saving virtual machine placement method for cloud computing data center Download PDF

Info

Publication number
CN102929687A
CN102929687A CN201210385961XA CN201210385961A CN102929687A CN 102929687 A CN102929687 A CN 102929687A CN 201210385961X A CN201210385961X A CN 201210385961XA CN 201210385961 A CN201210385961 A CN 201210385961A CN 102929687 A CN102929687 A CN 102929687A
Authority
CN
China
Prior art keywords
physical server
physical
virtual machine
sequence
resources
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
CN201210385961XA
Other languages
Chinese (zh)
Other versions
CN102929687B (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.)
National Supercomputing Center in Jinan
Original Assignee
National Supercomputing Center in Jinan
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 National Supercomputing Center in Jinan filed Critical National Supercomputing Center in Jinan
Priority to CN201210385961.XA priority Critical patent/CN102929687B/en
Publication of CN102929687A publication Critical patent/CN102929687A/en
Application granted granted Critical
Publication of CN102929687B publication Critical patent/CN102929687B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)

Abstract

本发明的节能的云计算数据中心虚拟机放置方法,包括:a.建立物理服务器区域;b.获取物理服务器信息;c.计算待创建虚拟机资源;d.对物理服务器进行排序;e.建立待创建虚拟机与物理服务器之间的映射;f.判断是否有单个物理服务器满足需求;g.判断是否存在同一分区内的满足要求的物理服务器序列;h.选取空调能耗成本最小、且物理服务器数量最少的服务器序列。本发明的云计算数据中心虚拟机放置方法,优先选用单个物理服务器来创建虚拟机,再选用同一分区内的物理服务器来创建虚拟机;在前两者都不存在的情况下,最终选用集中程度最高的物理服务器序列来创建虚拟机,实现云计算中心虚拟机的节能放置,节能效果显著,便于应用推广。

The energy-saving cloud computing data center virtual machine placement method of the present invention includes: a. establishing a physical server area; b. Obtain physical server information; c. calculating virtual machine resources to be created; d. Sort the physical servers; e. Establishing a mapping between the virtual machine to be created and the physical server; f. Judging whether there is a single physical server to meet the demand; g. Judging whether there is a physical server sequence in the same partition that meets the requirements; h. Select the server sequence with the smallest air-conditioning energy consumption cost and the smallest number of physical servers. In the cloud computing data center virtual machine placement method of the present invention, a single physical server is preferred to create a virtual machine, and then a physical server in the same partition is selected to create a virtual machine; when the former two do not exist, the degree of concentration is finally selected The highest physical server sequence is used to create virtual machines to realize the energy-saving placement of virtual machines in cloud computing centers. The energy-saving effect is remarkable and it is convenient for application and promotion.

Description

一种节能的云计算数据中心虚拟机放置方法An energy-saving method for placing virtual machines in cloud computing data center

技术领域 technical field

本发明涉及一种节能的云计算数据中心虚拟机放置方法,更具体的说,尤其涉及一种最大限度地将所有待创建虚拟机集中放置的节能的云计算数据中心虚拟机放置方法。 The present invention relates to an energy-saving method for placing virtual machines in a cloud computing data center, and more specifically, to an energy-saving method for placing virtual machines in a cloud computing data center that maximizes the centralized placement of all virtual machines to be created.

背景技术 Background technique

云计算(Cloud Computing)是网格计算、分布式计算、并行计算、网络存储、虚拟化等传统计算机和网络技术发展融合的产物。它是一种商业计算模型,它将计算任务分布在大量物理计算机构成的资源池上,使各种应用系统能够按需获取计算能力、存储空间和信息服务。其核心是服务资源池,其通常是一些可以自我维护和管理的虚拟化资源,包括计算服务器、存储服务器和带宽资源。云计算包括以下几个层次的服务: Cloud computing (Cloud Computing) is the product of the integration of traditional computer and network technologies such as grid computing, distributed computing, parallel computing, network storage, and virtualization. It is a commercial computing model that distributes computing tasks on a resource pool composed of a large number of physical computers, enabling various application systems to obtain computing power, storage space, and information services on demand. Its core is a service resource pool, which is usually some virtualized resources that can be maintained and managed by itself, including computing servers, storage servers, and bandwidth resources. Cloud computing includes the following levels of services:

基础设施即服务(Infrastructure as a Service简称IaaS),指消费者通过Internet从完善的计算机基础设施获得服务,包括处理、存储、网络和其它基本的计算资源,用户可以在其上自由的部署与运行任意软件。 Infrastructure as a Service (Infrastructure as a Service, referred to as IaaS), means that consumers obtain services from a complete computer infrastructure through the Internet, including processing, storage, network and other basic computing resources, on which users can freely deploy and run Arbitrary software.

软件即服务(Software as a Service),是指一种通过Internet提供软件服务的模式,用户无需购买软件,而是向提供商租用基于Web的软件,来管理企业经营活动。 Software as a Service (Software as a Service) refers to a mode of providing software services through the Internet. Users do not need to purchase software, but rent Web-based software from providers to manage business activities.

平台即服务(Platform as a Service简称PaaS),指将软件研发平台作为一种服务,以SaaS的模式提交给用户。Paas是SaaS模式的一种应用。PaaS的出现可以加快SaaS的发展,尤其是加快SaaS应用的开发速度。 Platform as a Service (Platform as a Service, referred to as PaaS), refers to the software development platform as a service, which is submitted to users in the form of SaaS. Paas is an application of the SaaS model. The emergence of PaaS can accelerate the development of SaaS, especially the development of SaaS applications.

云数据中心目前主要采用虚拟数据中心的方式构建,虚拟数据中心,是指利用服务器虚拟化技术,采用互相独立、隔离的虚拟主机提供等同物理机的功能,其成本远远低于物理数据中心。虚拟数据中心的核心是虚拟机,所谓虚拟机,就是计算机软件,其运行于物理硬件或物理计算机之上,它可以运行操作系统(称为客户操作系统)和应用程序,它有自己的虚拟硬件。虚拟机不是仿真器和模拟器,它们是真实的计算机,可以实现与物理计算机相同甚至超过物理计算机的功能。 At present, cloud data centers are mainly constructed in the form of virtual data centers. Virtual data centers refer to using server virtualization technology to use independent and isolated virtual hosts to provide functions equivalent to physical machines, and their cost is far lower than that of physical data centers. The core of a virtual data center is a virtual machine. The so-called virtual machine is computer software that runs on physical hardware or a physical computer. It can run operating systems (called guest operating systems) and applications. It has its own virtual hardware. . Virtual machines are not emulators and simulators, they are real computers that can achieve the same or even exceed the functions of physical computers.

用户可以使用虚拟化技术基于少量的物理服务器提供大规模的虚拟化服务,因此大大降低了云数据中心的构建费用。目前,电能消耗成为云计算数据中心的主要运营成本。以Google为例,据已有公开信息,Google在全球共有36个数据中心,一年消耗大约790亿千瓦时电力;2011年,全美国的数据中心共消耗电能10000亿千瓦时,折合74亿美元。节能问题已经成为云数据中心运营急需解决的一大难题。在云计算数据中心运营中,其通过其庞大的物理服务器集群为为用户提供虚拟机自助服务,虚拟机主要创建在各个物理服务器之上,虚拟机的创建会使得物理服务器集群产生大量废热,从而使周围的温度升高,据测算,最高问题可达50多度,温度的升高会引起空调制冷系统的工作,通过空调制冷系统来保持数据中心的标准温度,由此引起的电能消耗,约占云数据中心电能消耗的40%。虚拟机的集中放置,其核心思想是将虚拟机的创建集中于较少的物理服务器之上,从而减少物理服务器废热的产生,节省电能消耗。因此,通过高效的虚拟机集中放置降低制冷系统的电能消耗成为云数据中心节能的一个重要途径。 Users can use virtualization technology to provide large-scale virtualization services based on a small number of physical servers, thus greatly reducing the construction cost of cloud data centers. At present, power consumption has become the main operating cost of cloud computing data centers. Take Google as an example. According to the existing public information, Google has 36 data centers around the world, which consume about 79 billion kWh of electricity a year; in 2011, data centers in the United States consumed a total of 1 trillion kWh of electricity, equivalent to 7.4 billion U.S. dollars . Energy saving has become a major problem that needs to be solved urgently in the operation of cloud data centers. In the operation of the cloud computing data center, it provides users with virtual machine self-service through its huge physical server cluster. The virtual machine is mainly created on each physical server. Raise the surrounding temperature. According to estimates, the highest problem can reach more than 50 degrees. The temperature rise will cause the air conditioning and refrigeration system to work. The standard temperature of the data center is maintained through the air conditioning and refrigeration system. The resulting power consumption is about It accounts for 40% of the electricity consumption of cloud data centers. The core idea of the centralized placement of virtual machines is to concentrate the creation of virtual machines on fewer physical servers, thereby reducing the generation of waste heat of physical servers and saving power consumption. Therefore, reducing the power consumption of the cooling system through efficient centralized placement of virtual machines has become an important way to save energy in cloud data centers.

当今主流的虚拟机放置方法主要包括打包法,分条法,负载感知法及内存亲近法。 Today's mainstream virtual machine placement methods mainly include packaging method, striping method, load-aware method and memory affinity method.

打包法的基本思想是以尽少使用节点为目标,将虚拟机集中在部分云计算中的节点上运行,实现方式上,采用虚拟机运行数目最多优先原则,即当需要为新建虚拟机选择宿主机时,选择拥有最多数量虚拟机运行的宿主机,打包法的优点是该方法可使大量的虚拟机集中在少数的物理节点上运行,可降低物理服务器成本,打包法的不足是虚拟机过于集中,致使虚拟机资源抢占概率过大,为保证虚拟服务器的质量,大量虚拟机的迁移及资源调整行为必不可少,这样会产生大量的开销。 The basic idea of the packaging method is to use as few nodes as possible, and concentrate the virtual machines to run on some nodes in the cloud computing. In terms of implementation, the principle of the largest number of running virtual machines is adopted, that is, when it is necessary to select a host for a new virtual machine For the host, choose the host with the largest number of virtual machines running. The advantage of the packaging method is that this method can make a large number of virtual machines run on a small number of physical nodes, which can reduce the cost of physical servers. The disadvantage of the packaging method is that the virtual machines are too large. Concentration leads to a high probability of virtual machine resource preemption. In order to ensure the quality of virtual servers, it is necessary to migrate a large number of virtual machines and adjust resources, which will generate a lot of overhead.

分条法基本思想是以最大化单个服务器节点可用资源为目标,将虚拟机散布在所有节点上运行,实现方式上,采用虚拟机运行数目最少优先原则,即当需要为新建虚拟机选择宿主机是,选择拥有最少数量虚拟机运行的宿主机,其基本思路是受集群负载均衡启发,是虚拟机按数量均匀分布,降低虚拟机资源抢占概率,其缺点是依据虚拟机数量进行放置,把虚拟机数量仅仅抽象为节点上的负载值,过于单一,并且无法区别不同资源(如CPU,内存,硬盘等)请求的虚拟机对节点造成的实际负载,不够细化,难以实现更细粒度和精度的资源分配需求。 The basic idea of the striping method is to maximize the available resources of a single server node, and distribute the virtual machines to run on all nodes. In terms of implementation, the principle of the least number of virtual machines running is adopted, that is, when it is necessary to select a host for a new virtual machine Yes, the basic idea of choosing a host with the least number of virtual machines running is inspired by cluster load balancing. The number of virtual machines is evenly distributed according to the number of virtual machines to reduce the probability of virtual machine resource preemption. The disadvantage is that the virtual machines are placed according to the number of The number of machines is only abstracted as the load value on the node, which is too single, and it is impossible to distinguish the actual load caused by the virtual machine requested by different resources (such as CPU, memory, hard disk, etc.), which is not detailed enough to achieve finer granularity and precision resource allocation needs.

负载感知法的目标与分条法相同,力求最大化单个节点上的可用资源。基本设计思路是受节点负载最小启发,将新建虚拟机放置在具有最小负载的节点上运行。实现方式上,采用最大CPU空闲率优先原则,即当需要为新建虚拟机选择宿主机是,选择CPU空闲率最大的宿主机。其优点与分条法相同,受负载均衡启发,由于考虑节点上的CPU资源使用情况,可达到分布式计算系统范围内的CPU资源负载均衡。其缺点是该方法只考虑了CPU资源,对节点的内存,网络和磁盘使用情况等集群节点负责的重要组成,缺乏考虑。 The goal of load-aware approach is the same as that of striping, which seeks to maximize the available resources on a single node. The basic design idea is inspired by the minimum node load, and the newly created virtual machine is placed on the node with the minimum load to run. In terms of implementation, the principle of giving priority to the maximum CPU idle rate is adopted, that is, when a host machine needs to be selected for a new virtual machine, the host machine with the highest CPU idle rate is selected. Its advantages are the same as those of the striping method. Inspired by load balancing, it can achieve CPU resource load balancing within the scope of the distributed computing system by considering the usage of CPU resources on nodes. Its disadvantage is that this method only considers CPU resources, and lacks consideration of the important components responsible for cluster nodes such as node memory, network and disk usage.

内存亲近法是由Timothy Wood博士提出的一种基于内存共享感知的虚拟机放置系统,包括一个内存识别系统,能够有效判断一组虚拟机之间的内存共享潜能,并计算出更有效的放置方式。另外,随着负荷变化,系统还将利用在线迁移优化虚拟机放置,其优点是从集群范围寻找虚拟内存页相同的虚拟机,是他们迁移到同一个集群节点,共享虚拟内存,可提高物理内存利用率,节约内存,提升集群的虚拟机容纳数量。其缺点是由于需要通过虚拟机迁移实现虚拟机放置,方法过程较为复杂,并且若共享虚拟内存的虚拟机过多,无法保证虚拟服务器的服务质量。 The memory proximity method is a virtual machine placement system based on memory sharing awareness proposed by Dr. Timothy Wood, including a memory identification system that can effectively judge the memory sharing potential among a group of virtual machines and calculate a more effective placement method . In addition, as the load changes, the system will also use online migration to optimize virtual machine placement. The advantage is to find virtual machines with the same virtual memory pages from the cluster range, so that they can migrate to the same cluster node and share virtual memory, which can improve physical memory. Utilization, save memory, and increase the number of virtual machines in the cluster. Its disadvantage is that because virtual machine migration is required to realize virtual machine placement, the method process is relatively complicated, and if there are too many virtual machines sharing virtual memory, the service quality of the virtual server cannot be guaranteed.

对于以上提出的虚拟机放置方法,仅从虚拟机放置本身来考虑问题并未结合空调制冷系统能耗的因素进行设计,对于打包法,其思想是尽量将多个虚拟机集中放置到较少的物理服务器中,从而实现电能的减少,但是该方法仅考虑了物理服务器逻辑上的集中,实际中,部署的服务器可能位于不同的物理机柜区域,按此方法部署会使得不同物理服务器区域的温度上升,造成制冷系统的工作,从而消耗电能;对于分条法、负载感知、内存亲近的方法,其思想是将虚拟机分散到多个物理结点,从而实现负载均衡的功能,该类方法会引起大规模范围内温度的上升,引起制冷空调的大面积工作。因此上述方法在实现过程中无法实现空调制冷系统的节能。 For the virtual machine placement method proposed above, the problem is only considered from the virtual machine placement itself, and the design is not combined with the energy consumption of the air conditioning and refrigeration system. For the packaging method, the idea is to place multiple virtual machines in fewer places as much as possible. However, this method only considers the logical concentration of physical servers. In practice, the deployed servers may be located in different physical cabinet areas. Deploying in this way will increase the temperature of different physical server areas. , causing the cooling system to work, thereby consuming electric energy; for the method of striping, load sensing, and memory closeness, the idea is to distribute the virtual machine to multiple physical nodes, so as to achieve the function of load balancing, this type of method will cause The rise in temperature on a large scale causes large-scale work of refrigeration and air conditioning. Therefore, the above method cannot realize the energy saving of the air conditioning and refrigeration system during the implementation process.

发明内容 Contents of the invention

本发明为了克服上述技术问题的缺点,提出了一种最大限度地将所有待创建虚拟机集中放置的节能的云计算数据中心虚拟机放置方法。 In order to overcome the shortcomings of the above-mentioned technical problems, the present invention proposes an energy-saving cloud computing data center virtual machine placement method that maximizes the centralized placement of all virtual machines to be created.

本发明的节能的云计算数据中心虚拟机放置方法,其特别之处在于:a.建立物理服务器区域,将空调制冷系统的一个出风口覆盖的所有物理服务器划分为同一物理服务器分区,形成基于云计算的物理服务器区域;并设物理服务器区域在横向、纵向上所包含的物理服务器分区数目分别为x、y个,x、y均为正整数;b.获取物理服务器信息,获取步骤a中所有物理服务器的资源使用信息和所在分区信息;c.计算待创建虚拟机资源,获取每个待创建虚拟机的CPU、内存和硬盘大小,并计算出要创建所有虚拟机所需的请求资源;设所需的CPU、内存和硬盘的请求资源分别为 

Figure 201210385961X100002DEST_PATH_IMAGE004
Figure 201210385961X100002DEST_PATH_IMAGE006
;d.对物理服务器进行排序,对所有物理服务器依据可用资源的大小进行排序,形成物理服务器序列集合,该序列集合记为;e.建立待创建虚拟机与物理服务器之间的映射,在可用资源满足待创建虚拟机请求资源的基础上,搜索满足需求的物理服务器资源序列;并按照序列中包含物理服务器数量的多少对该资源序列进行分类,形成物理服务器序列集合,分别记为
Figure 201210385961X100002DEST_PATH_IMAGE010
,,…,,其中
Figure 201210385961X100002DEST_PATH_IMAGE014
表示包含n个物理服务器且可用资源满足需求的所有序列的集合,n为正整数;f.判断是否有单个物理服务器满足需求,如果有集合
Figure 570019DEST_PATH_IMAGE010
存在,则中任何一台物理服务器的可用资源均可创建出所有虚拟机,选择其中任一物理服务器作为待创建虚拟机的节点;如不存在集合
Figure 17629DEST_PATH_IMAGE010
,则执行步骤g;g.判断是否存在同一分区内的满足要求的物理服务器序列,遍历物理服务器序列集合
Figure 201210385961X100002DEST_PATH_IMAGE016
,…,
Figure 602719DEST_PATH_IMAGE012
,寻找出位于同一物理服务器分区内的物理服务器序列,在该物理服务器序列上创建所有虚拟机;如不存在处于同一分区内的满足要求的物理服务器序列,则执行步骤h;h.选取空调能耗成本最小、且物理服务器数量最少的服务器序列,来创建所有虚拟机;空调能耗成本大小与物理服务器集中程度大小成反比。 The energy-saving cloud computing data center virtual machine placement method of the present invention is special in that: a. Establish a physical server area, divide all physical servers covered by an air outlet of the air-conditioning and refrigeration system into the same physical server partition, and form a cloud-based The calculated physical server area; and the number of physical server partitions included in the horizontal and vertical directions of the physical server area is respectively x and y, and x and y are both positive integers; b. Obtaining physical server information, obtaining resource usage information and partition information of all physical servers in step a; c. Calculate the virtual machine resources to be created, obtain the CPU, memory and hard disk size of each virtual machine to be created, and calculate the requested resources required to create all virtual machines; set the required CPU, memory and hard disk requested resources as ,
Figure 201210385961X100002DEST_PATH_IMAGE004
and
Figure 201210385961X100002DEST_PATH_IMAGE006
; d. Sort the physical servers, and sort all the physical servers according to the size of the available resources to form a sequence set of physical servers, which is denoted as ; e. Establish a mapping between the virtual machine to be created and the physical server, and search for a sequence of physical server resources that meet the requirements on the basis that the available resources meet the resources requested by the virtual machine to be created; and sequence the resources according to the number of physical servers included in the sequence Classify to form a set of physical server sequences, which are respectively denoted as
Figure 201210385961X100002DEST_PATH_IMAGE010
,,..., ,in
Figure 201210385961X100002DEST_PATH_IMAGE014
Indicates the collection of all sequences that contain n physical servers and available resources meet the requirements, n is a positive integer; f. Determine whether there is a single physical server to meet the demand, if there is a collection
Figure 570019DEST_PATH_IMAGE010
exist, then All virtual machines can be created from the available resources of any one of the physical servers, and any one of the physical servers can be selected as the node of the virtual machine to be created; if there is no set
Figure 17629DEST_PATH_IMAGE010
, execute step g; g. Determine whether there is a physical server sequence that meets the requirements in the same partition, and traverse the physical server sequence set
Figure 201210385961X100002DEST_PATH_IMAGE016
,...,
Figure 602719DEST_PATH_IMAGE012
, find out the physical server sequence located in the same physical server partition, and create all virtual machines on the physical server sequence; if there is no physical server sequence meeting the requirements in the same partition, then perform step h; h. Select the server sequence with the smallest air-conditioning energy consumption cost and the least number of physical servers to create all virtual machines; the air-conditioning energy consumption cost is inversely proportional to the concentration of physical servers.

步骤a中,每个物理服务器分区中应设置各自的温度传感器,以便空调制冷系统根据检测的温度来控制相应出风口的开闭;物理服务器分区简称分区。步骤b中,物理服务器的资源使用信息为CPU、内存和硬盘的使用信息,所在分区信息为物理服务器所在分区的坐标信息。步骤c中,

Figure 417091DEST_PATH_IMAGE002
为所有待创建虚拟机的CPU之和,为所有待创建虚拟机的内存之和,为所有待创建虚拟机的硬盘之和。步骤d中,对物理服务器进行排序,是为了步骤e中便于与待创建虚拟机形成映射。步骤e中,形成了满足资源需求的所有物理服务器序列集合,以便于选择出能耗最低的虚拟机放置方案。步骤f中,如果有集合
Figure 568904DEST_PATH_IMAGE010
存在,则表明有一台物理服务器的可用资源即可满足创建所有虚拟机的要求,则在一台物理服务器上进行创建,以便达到最佳的节能目的。步骤g中,在同一分区内的物理服务器上创建所有虚拟机,也有利于服务器的集中散热,达到较佳的节能目的。步骤h中,如果不存在一个或同一分区的物理服务器满足创建虚拟机的要求,则选取两个或两个以上分区内的物理服务器来创建虚拟机,选取物理服务器集中程度最大的服务器序列来放置虚拟机,以降低能耗成本。 In step a, each physical server partition should be provided with its own temperature sensor, so that the air conditioning and refrigeration system can control the opening and closing of the corresponding air outlet according to the detected temperature; the physical server partition is referred to as partition. In step b, the resource usage information of the physical server is the usage information of CPU, memory and hard disk, and the partition information is the coordinate information of the partition where the physical server is located. In step c,
Figure 417091DEST_PATH_IMAGE002
is the sum of CPUs of all virtual machines to be created, is the sum of memory of all virtual machines to be created, It is the sum of the hard disks of all virtual machines to be created. In step d, sorting the physical servers is for the convenience of forming a mapping with the virtual machine to be created in step e. In step e, a sequence set of all physical servers meeting resource requirements is formed, so as to select a virtual machine placement scheme with the lowest energy consumption. In step f, if there is a set
Figure 568904DEST_PATH_IMAGE010
If it exists, it means that the available resources of one physical server can meet the requirements for creating all virtual machines, and then create them on one physical server to achieve the best energy saving purpose. In step g, all the virtual machines are created on the physical servers in the same partition, which is also conducive to the centralized heat dissipation of the servers and better energy saving. In step h, if there is no physical server in one or the same partition that meets the requirements for creating a virtual machine, select physical servers in two or more partitions to create a virtual machine, and select the server sequence with the largest concentration of physical servers to place virtual machines to reduce energy costs.

本发明的节能的云计算数据中心虚拟机放置方法,设物理服务器分区的位置用二维坐标P=(i,j)表示;空调能耗成本用cost标示,定义: In the energy-saving cloud computing data center virtual machine placement method of the present invention, the location of the physical server partition is represented by two-dimensional coordinates P=(i, j); the energy consumption cost of the air conditioner is marked by cost, and the definition is:

Figure 201210385961X100002DEST_PATH_IMAGE020
Figure 201210385961X100002DEST_PATH_IMAGE020

其中为满足需求的物理服务器资源序列中所包含的分区的个数,

Figure 201210385961X100002DEST_PATH_IMAGE024
标示满足条件的物理服务器所在两分区之间的拓扑距离;,标示满足条件的物理服务器所在分区两两分区之间的拓扑距离的总和;其特征在于:所述步骤g中,如果计算出物理服务器序列集合的空调能耗成本cost的值为1,则表明该物理服务器序列集合位于同一物理服务器分区内;如果物理服务器分区
Figure 201210385961X100002DEST_PATH_IMAGE028
Figure 201210385961X100002DEST_PATH_IMAGE030
的坐标分别为(i1,j1)、(i2,j2),则=
Figure 201210385961X100002DEST_PATH_IMAGE034
;步骤h中,按照
Figure 331585DEST_PATH_IMAGE016
,…,
Figure 62781DEST_PATH_IMAGE012
的顺序求取所有物理服务器序列的空调能耗成本cost的值,选取第一个最小cost值所对应的物理服务器序列来创建所有虚拟机。 in The number of partitions included in the physical server resource sequence to meet the demand,
Figure 201210385961X100002DEST_PATH_IMAGE024
Indicates the topological distance between the two partitions where the physical server meets the conditions; , indicating the sum of the topological distances between two partitions where the physical servers meet the conditions; it is characterized in that: in the step g, if the calculated value of the air conditioning energy consumption cost of the physical server sequence set is 1, it means The collection of physical server sequences is within the same physical server partition; if the physical server partition
Figure 201210385961X100002DEST_PATH_IMAGE028
,
Figure 201210385961X100002DEST_PATH_IMAGE030
The coordinates of are respectively (i1, j1), (i2, j2), then =
Figure 201210385961X100002DEST_PATH_IMAGE034
; In step h, according to
Figure 331585DEST_PATH_IMAGE016
,...,
Figure 62781DEST_PATH_IMAGE012
Calculate the air-conditioning energy cost cost values of all physical server sequences in the order of , and select the physical server sequence corresponding to the first minimum cost value to create all virtual machines.

对于空调能耗成本cost的计算公式,采用分区的个数与两两分区之间的拓扑距离之和来标示,更能反映出服务器序列中物理服务器的集中程度,可较佳的放映出实际的能耗大小。对于

Figure 56145DEST_PATH_IMAGE032
采用公式
Figure 623524DEST_PATH_IMAGE034
进行计算,是物理服务器分区在横向、纵向间距均相等的条件下得出的。 For the calculation formula of air-conditioning energy cost cost, it is marked by the sum of the number of partitions and the topological distance between two partitions, which can better reflect the concentration of physical servers in the server sequence, and can better reflect the actual energy consumption. for
Figure 56145DEST_PATH_IMAGE032
use the formula
Figure 623524DEST_PATH_IMAGE034
The calculation is obtained under the condition that the physical server partitions are equal in horizontal and vertical spacing.

本发明的节能的云计算数据中心虚拟机放置方法,步骤d中,所述的物理服务器的可用资源包括CPU、内存和硬盘的可用资源,分别用

Figure 201210385961X100002DEST_PATH_IMAGE036
Figure 201210385961X100002DEST_PATH_IMAGE038
标示,分别采用以下公式进行计算: In the energy-saving cloud computing data center virtual machine placement method of the present invention, in step d, the available resources of the physical server include available resources of CPU, memory and hard disk, which are respectively used
Figure 201210385961X100002DEST_PATH_IMAGE036
,
Figure 201210385961X100002DEST_PATH_IMAGE038
and marked and calculated using the following formulas:

Figure 201210385961X100002DEST_PATH_IMAGE042
Figure 201210385961X100002DEST_PATH_IMAGE042

Figure 201210385961X100002DEST_PATH_IMAGE046
Figure 201210385961X100002DEST_PATH_IMAGE046

其中,右下标注为total的表示资源总量,为used的表示已用资源量,为threshold的表示设定的预留阀值;步骤e中,如果一个或多个物理计算机的CPU、内存和硬盘的可用资源分别大于或等于

Figure 734437DEST_PATH_IMAGE002
Figure 320139DEST_PATH_IMAGE004
Figure 749983DEST_PATH_IMAGE006
,则认为该序列为满足需求的物理服务器资源序列。 Among them, the bottom right marked as total indicates the total amount of resources, used indicates the amount of used resources, and threshold indicates the set reserved threshold; in step e, if one or more physical computers have CPU, memory and The available resources of the hard disk are respectively greater than or equal to
Figure 734437DEST_PATH_IMAGE002
,
Figure 320139DEST_PATH_IMAGE004
and
Figure 749983DEST_PATH_IMAGE006
, the sequence is considered to be a physical server resource sequence that meets the requirements.

物理服务器中,对CPU、内存、硬盘的使用设置相应的预留阀值,是保证服务器正常运转的需要,因此,资源的可用数量并非已知资源总量与目前已经使用数量的简单差值,应在此差值基础上减去各个资源定义的预留阀值。 In a physical server, setting corresponding reserved thresholds for the use of CPU, memory, and hard disk is necessary to ensure the normal operation of the server. Therefore, the available amount of resources is not simply the difference between the total amount of known resources and the currently used amount. The reservation threshold defined by each resource should be subtracted from this difference.

本发明的有益效果是:本发明的云计算数据中心虚拟机放置方法,优先选用满足要求的一个物理服务器来创建虚拟机;在不存在满足要求的一个物理服务器的情况下,再选用同一分区内的物理服务器来创建虚拟机;在前两者都不存在的情况下,最终选用集中程度最高的物理服务器序列来创建虚拟机,实现了最为节能的虚拟机放置方法。本发明的云计算数据中心虚拟机放置方法中,通过建立空调能耗成本cost计算公式,可有效、准确地通过物理服务器的集中程度来表征空调能耗成本的大小,以选择出最为节能的虚拟机放置方案。 The beneficial effects of the present invention are: in the cloud computing data center virtual machine placement method of the present invention, a physical server that meets the requirements is preferentially selected to create a virtual machine; If the former two do not exist, the most concentrated physical server sequence is finally selected to create the virtual machine, realizing the most energy-saving virtual machine placement method. In the cloud computing data center virtual machine placement method of the present invention, by establishing the calculation formula of air-conditioning energy consumption cost, the energy consumption cost of air-conditioning can be effectively and accurately represented by the concentration degree of physical servers, so as to select the most energy-saving virtual machine. Machine placement plan.

附图说明 Description of drawings

图1为本发明的虚拟机放置方法的流程图; Fig. 1 is the flow chart of the virtual machine placing method of the present invention;

图2为本发明中物理服务器分区的结构示意图; Fig. 2 is a schematic structural diagram of a physical server partition in the present invention;

图3为本发明中不同物理服务器分区之间的拓扑距离计算示意图。 FIG. 3 is a schematic diagram of calculating topological distances between different physical server partitions in the present invention.

具体实施方式 Detailed ways

下面结合附图与实施例对本发明作进一步说明。 The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

如图1、图2和图3所示,分别给出了虚拟机放置方法的流程图、物理服务器分区的结构示意图以及不同分区之间的拓扑距离计算示意图,本发明的云计算数据中心虚拟机放置方法包括以下步骤: As shown in Fig. 1, Fig. 2 and Fig. 3, respectively provide the flowchart of virtual machine placement method, the structural diagram of physical server partition and the topological distance calculation diagram between different partitions, the cloud computing data center virtual machine of the present invention The placement method includes the following steps:

a.建立物理服务器区域,将空调制冷系统的一个出风口覆盖的所有物理服务器划分为同一物理服务器分区,形成基于云计算的物理服务器区域;并设物理服务器区域在横向、纵向上所包含的物理服务器分区数目分别为x、y个,x、y均为正整数; a. Establish a physical server area, divide all physical servers covered by an air outlet of the air conditioning and refrigeration system into the same physical server partition, and form a physical server area based on cloud computing; and set the physical server area contained in the horizontal and vertical directions. The number of server partitions is x and y respectively, and both x and y are positive integers;

设物理服务器分区的位置用二维坐标P=(i,j)表示;空调能耗成本用cost标示,定义: Suppose the location of the physical server partition is represented by two-dimensional coordinates P=(i, j); the air-conditioning energy consumption cost is marked by cost, defined as:

其中

Figure 866975DEST_PATH_IMAGE022
为满足需求的物理服务器资源序列中所包含的分区的个数,
Figure 468331DEST_PATH_IMAGE024
标示满足条件的物理服务器所在两分区之间的拓扑距离;
Figure 111802DEST_PATH_IMAGE026
,标示满足条件的物理服务器所在分区两两分区之间的拓扑距离的总和; in
Figure 866975DEST_PATH_IMAGE022
The number of partitions included in the physical server resource sequence to meet the demand,
Figure 468331DEST_PATH_IMAGE024
Indicates the topological distance between the two partitions where the physical server meets the conditions;
Figure 111802DEST_PATH_IMAGE026
, indicating the sum of the topological distances between two partitions of the partitions where the physical servers meet the conditions;

b.获取物理服务器信息,获取步骤a中所有物理服务器的资源使用信息和所在分区信息;物理服务器的资源使用信息为CPU、内存和硬盘信息,分区信息为物理服务器的坐标信息; b. Obtain the physical server information, obtain the resource usage information and partition information of all physical servers in step a; the resource usage information of the physical server is CPU, memory and hard disk information, and the partition information is the coordinate information of the physical server;

c.计算待创建虚拟机资源,获取每个待创建虚拟机的CPU、内存和硬盘大小,并计算出要创建所有虚拟机所需的请求资源;设所需的CPU、内存和硬盘的请求资源分别为

Figure 446969DEST_PATH_IMAGE002
Figure 317022DEST_PATH_IMAGE018
; c. Calculate the virtual machine resources to be created, obtain the CPU, memory and hard disk size of each virtual machine to be created, and calculate the requested resources required to create all virtual machines; set the required CPU, memory and hard disk requested resources as
Figure 446969DEST_PATH_IMAGE002
, and
Figure 317022DEST_PATH_IMAGE018
;

d.对物理服务器进行排序,对所有物理服务器依据可用资源的大小进行排序,形成物理服务器序列集合,该序列集合记为d. Sort the physical servers, and sort all the physical servers according to the size of the available resources to form a sequence set of physical servers, which is denoted as ;

所述的物理服务器的可用资源包括CPU、内存和硬盘的可用资源,分别用

Figure 399695DEST_PATH_IMAGE036
Figure 295156DEST_PATH_IMAGE040
标示,分别采用以下公式进行计算: The available resources of the physical server include the available resources of CPU, memory and hard disk, which are respectively used
Figure 399695DEST_PATH_IMAGE036
, and
Figure 295156DEST_PATH_IMAGE040
marked and calculated using the following formulas:

Figure 901773DEST_PATH_IMAGE044
Figure 901773DEST_PATH_IMAGE044

Figure 339707DEST_PATH_IMAGE046
Figure 339707DEST_PATH_IMAGE046

其中,右下标注为total的表示资源总量,为used的表示已用资源量,为threshold的表示设定的预留阀值; Among them, the bottom right marked as total indicates the total amount of resources, used indicates the amount of used resources, and threshold indicates the set reserved threshold;

e.建立待创建虚拟机与物理服务器之间的映射,在可用资源满足待创建虚拟机请求资源的基础上,搜索满足需求的物理服务器资源序列;并按照序列中包含物理服务器数量的多少对该资源序列进行分类,形成物理服务器序列集合,分别记为

Figure 822641DEST_PATH_IMAGE010
Figure 295211DEST_PATH_IMAGE016
,…,
Figure 221710DEST_PATH_IMAGE012
,其中
Figure 146940DEST_PATH_IMAGE014
表示包含n个物理服务器且可用资源满足需求的所有序列的集合,n为正整数; e. Establish a mapping between the virtual machine to be created and the physical server, and search for a sequence of physical server resources that meet the requirements on the basis that the available resources meet the resources requested by the virtual machine to be created; and sequence the resources according to the number of physical servers included in the sequence Classify to form a set of physical server sequences, which are respectively denoted as
Figure 822641DEST_PATH_IMAGE010
,
Figure 295211DEST_PATH_IMAGE016
,...,
Figure 221710DEST_PATH_IMAGE012
,in
Figure 146940DEST_PATH_IMAGE014
Indicates the collection of all sequences that contain n physical servers and available resources meet the requirements, n is a positive integer;

该步骤中,如果一个或多个物理计算机的CPU、内存和硬盘的可用资源分别大于或等于

Figure 371248DEST_PATH_IMAGE002
Figure 779413DEST_PATH_IMAGE006
,则认为该序列为满足需求的物理服务器资源序列; In this step, if the available resources of CPU, memory and hard disk of one or more physical computers are greater than or equal to
Figure 371248DEST_PATH_IMAGE002
, and
Figure 779413DEST_PATH_IMAGE006
, the sequence is considered to be a physical server resource sequence that meets the requirements;

f.判断是否有单个物理服务器满足需求,如果有集合

Figure 506454DEST_PATH_IMAGE010
存在,则
Figure 534453DEST_PATH_IMAGE010
中任何一台物理服务器的可用资源均可创建出所有虚拟机,选择其中任一物理服务器作为待创建虚拟机的节点;如不存在集合
Figure 716035DEST_PATH_IMAGE010
,则执行步骤g; f. Determine whether there is a single physical server to meet the demand, if there is a collection
Figure 506454DEST_PATH_IMAGE010
exist, then
Figure 534453DEST_PATH_IMAGE010
All virtual machines can be created from the available resources of any one of the physical servers, and any one of the physical servers can be selected as the node of the virtual machine to be created; if there is no set
Figure 716035DEST_PATH_IMAGE010
, then execute step g;

g.判断是否存在同一分区内的满足要求的物理服务器序列,遍历物理服务器序列集合

Figure 968025DEST_PATH_IMAGE016
,…,
Figure 680897DEST_PATH_IMAGE012
,寻找出位于同一物理服务器分区内的物理服务器序列,在该物理服务器序列上创建所有虚拟机;如不存在处于同一分区内的满足要求的物理服务器序列,则执行步骤h; g. Determine whether there is a physical server sequence that meets the requirements in the same partition, and traverse the physical server sequence set
Figure 968025DEST_PATH_IMAGE016
,...,
Figure 680897DEST_PATH_IMAGE012
, find out the physical server sequence in the same physical server partition, and create all virtual machines on the physical server sequence; if there is no physical server sequence in the same partition that meets the requirements, go to step h;

该步骤中,如果计算出物理服务器序列集合的空调能耗成本cost的值为1,则表明该物理服务器序列集合位于同一物理服务器分区内; In this step, if the calculated value of the air-conditioning energy consumption cost of the physical server sequence set is 1, it indicates that the physical server sequence set is located in the same physical server partition;

h.选取空调能耗成本最小、且物理服务器数量最少的服务器序列,来创建所有虚拟机;空调能耗成本大小与物理服务器集中程度大小成反比; h. Select the server sequence with the smallest air-conditioning energy consumption cost and the least number of physical servers to create all virtual machines; the air-conditioning energy consumption cost is inversely proportional to the concentration of physical servers;

如果物理服务器分区

Figure 309325DEST_PATH_IMAGE028
Figure 610993DEST_PATH_IMAGE030
的坐标分别为(i1,j1)、(i2,j2),则
Figure 971567DEST_PATH_IMAGE032
=
Figure DEST_PATH_IMAGE050
;步骤h中,按照
Figure 670271DEST_PATH_IMAGE016
,…,
Figure 102389DEST_PATH_IMAGE012
的顺序求取所有物理服务器序列的空调能耗成本cost的值,选取第一个最小cost值所对应的物理服务器序列来创建所有虚拟机。 If the physical server is partitioned
Figure 309325DEST_PATH_IMAGE028
,
Figure 610993DEST_PATH_IMAGE030
The coordinates of are respectively (i1, j1), (i2, j2), then
Figure 971567DEST_PATH_IMAGE032
=
Figure DEST_PATH_IMAGE050
; In step h, according to
Figure 670271DEST_PATH_IMAGE016
,...,
Figure 102389DEST_PATH_IMAGE012
Calculate the air-conditioning energy cost cost values of all physical server sequences in the order of , and select the physical server sequence corresponding to the first minimum cost value to create all virtual machines.

其中,所述的预留阀值是指为了保证物理服务器正常运转为其上运行的资源保留一定的扩展空间而设定的CPU、内存、硬盘的最低剩余容量。分区间的拓扑距离是指两个物理服务器分区之间的距离,用于衡量分区之间的集中程度。 Wherein, the reserved threshold refers to the minimum remaining capacity of the CPU, memory, and hard disk set in order to ensure the normal operation of the physical server and reserve a certain expansion space for the resources running on it. The topological distance between partitions refers to the distance between two physical server partitions, which is used to measure the degree of concentration between partitions.

如图2所示,处于空调制冷系统同一出风口区域的物理服务器划分为相同的分区中,在对虚拟机放置的过程中,首先判断是否有一个物理服务器的可用资源满足创建要求,如果存在,则在该物理服务器上创建虚拟机;这样就使得虚拟机得以集中,便于统一散热,实现了有效的节能目的。如果不存在满足需求的单个物理服务器,则判断是否存在处于同一分区中的满足创建要求的服务器序列,如存在,则采用处于同一分区中的服务器序列进行创建,这样也有利于物理服务器的集中,便于空调制冷系统同一进行温度控制,也有利于能源的节约。 As shown in Figure 2, the physical servers in the same air outlet area of the air-conditioning and refrigeration system are divided into the same partition. During the process of placing the virtual machine, first determine whether there is a physical server with available resources that meet the creation requirements. If so, Then create a virtual machine on the physical server; thus, the virtual machines can be centralized, which facilitates uniform heat dissipation and achieves effective energy saving. If there is no single physical server that meets the requirements, it is judged whether there is a server sequence in the same partition that meets the creation requirements. If so, the server sequence in the same partition is used for creation, which is also conducive to the concentration of physical servers. It is convenient for the air-conditioning and refrigeration system to carry out temperature control uniformly, and is also conducive to energy saving.

如果上面所述的单个物理服务器或者处于同一分区中的服务器序列都不存在,则采用计算空调能耗成本cost的大小,来选取最为节能的放置虚拟机的物理服务器序列。如图3所示,假设有两台物理服务器满足创建所有虚拟机的要求,其分别处于分区Region9、Region12内,对于公式

Figure DEST_PATH_IMAGE052
来说,=2,=
Figure DEST_PATH_IMAGE056
,则cost=5。还存在3台物理服务器满足创建所有虚拟机的要求,其中1台位于分区Region9中,余下的两台位于分区Region12中。由于第一种情形下为2台服务器,第二种情形为3台服务器,则选取物理服务器数目最少的序列来放置虚拟机,以实现最佳的节能效果。 If the above-mentioned single physical server or server sequence in the same partition does not exist, then use the calculation of the cost of air conditioning energy consumption to select the most energy-efficient physical server sequence for placing virtual machines. As shown in Figure 3, it is assumed that there are two physical servers that meet the requirements for creating all virtual machines, which are located in Region9 and Region12 respectively. For the formula
Figure DEST_PATH_IMAGE052
say, =2, =
Figure DEST_PATH_IMAGE056
, then cost=5. There are also 3 physical servers that meet the requirements for creating all virtual machines, one of which is located in the partition Region9, and the remaining two are located in the partition Region12. Since there are 2 servers in the first case and 3 servers in the second case, the sequence with the least number of physical servers is selected to place the virtual machines to achieve the best energy saving effect.

如图3所示,如果满足创建要求的服务器序列中包含3台物理服务器(设其坐标点分别为

Figure 665406DEST_PATH_IMAGE028
Figure DEST_PATH_IMAGE058
Figure DEST_PATH_IMAGE060
),其分别处于分区Region4、Region9和Region12中,则在计算空调能耗成本cost的过程中,
Figure 588756DEST_PATH_IMAGE022
=3,
Figure 762248DEST_PATH_IMAGE054
=
Figure DEST_PATH_IMAGE062
+
Figure DEST_PATH_IMAGE064
+
Figure DEST_PATH_IMAGE066
=+
Figure DEST_PATH_IMAGE070
+
Figure DEST_PATH_IMAGE072
=5+
Figure DEST_PATH_IMAGE074
,这样既可计算出空调能耗成本cost的大小。 As shown in Figure 3, if the server sequence that meets the creation requirements contains 3 physical servers (set their coordinate points as
Figure 665406DEST_PATH_IMAGE028
,
Figure DEST_PATH_IMAGE058
,
Figure DEST_PATH_IMAGE060
), which are respectively located in Region4, Region9 and Region12, then in the process of calculating the energy cost of the air conditioner,
Figure 588756DEST_PATH_IMAGE022
=3,
Figure 762248DEST_PATH_IMAGE054
=
Figure DEST_PATH_IMAGE062
+
Figure DEST_PATH_IMAGE064
+
Figure DEST_PATH_IMAGE066
= +
Figure DEST_PATH_IMAGE070
+
Figure DEST_PATH_IMAGE072
=5+
Figure DEST_PATH_IMAGE074
, so that the cost of air-conditioning energy consumption can be calculated.

作为一个具体的实验应用,云计算数据中心拓扑如参考图2所示,共有6个服务器分区,每个分区配有4台物理服务器,单个物理服务器配置Intel Xeon E5620 2.4G 4核8线程处理器,32GB RAM,SAS 2.0T RAID5硬盘,物理服务器采用Ubuntu Server 12.04 LTS操作系统,采用Xen Server5.5作为虚拟化软件.虚拟机创建采用统一规格,分配Intel Xeon E5620*1的CPU,2G内存,30G硬盘,运行Windows Server 2003 SP1操作系统.制冷采用海瑞斯(HIRES)精密空调Super Precision HFDC/HFUC 0070,主机功率6.5KW,风机功率0.25KW。 As a specific experimental application, the topology of the cloud computing data center is shown in Figure 2. There are 6 server partitions, each partition is equipped with 4 physical servers, and a single physical server is equipped with an Intel Xeon E5620 2.4G 4-core 8-thread processor , 32GB RAM, SAS 2.0T RAID5 hard disk, the physical server uses the Ubuntu Server 12.04 LTS operating system, and Xen Server5.5 is used as the virtualization software. The virtual machine creation adopts a unified specification, and allocates Intel Xeon E5620*1 CPU, 2G memory, 30G The hard disk runs Windows Server 2003 SP1 operating system. The cooling adopts HIRES precision air conditioner Super Precision HFDC/HFUC 0070, the power of the host is 6.5KW, and the power of the fan is 0.25KW.

测试采用目前数据中心常用的随机虚拟机放置方法及本发明提出的虚拟机放置方法,经过10次每次50个虚拟机放置实验,采用本发明方法可将虚拟机集中放置到1-2个物理分区中,而随机放置方法一般将虚拟机放置到3个及以上的物理分区中,由于虚拟机放置会引起分区温度的上升,触发空调出风口的工作,因此采用本发明方法可以有效降低温度升高区域的数量,从而降低空调能耗,据估算在本次试验环境下,可节省空调电能约10%以上。 The test adopts the random virtual machine placement method commonly used in the current data center and the virtual machine placement method proposed by the present invention. After 10 times of 50 virtual machine placement experiments each time, the method of the present invention can be used to centrally place the virtual machines in 1-2 physical In the partition, the random placement method generally places the virtual machine in 3 or more physical partitions. Since the placement of the virtual machine will cause the temperature of the partition to rise and trigger the work of the air outlet of the air conditioner, the method of the present invention can effectively reduce the temperature rise. The number of areas is high, thereby reducing the energy consumption of air conditioners. It is estimated that in this test environment, more than 10% of air conditioner power can be saved.

Claims (3)

1.一种节能的云计算数据中心虚拟机放置方法,其特征在于,包括以下步骤: 1. an energy-saving cloud computing data center virtual machine placement method, is characterized in that, comprises the following steps: a.建立物理服务器区域,将空调制冷系统的一个出风口覆盖的所有物理服务器划分为同一物理服务器分区,形成基于云计算的物理服务器区域;并设物理服务器区域在横向、纵向上所包含的物理服务器分区数目分别为x、y个,x、y均为正整数; a. Establish a physical server area, divide all physical servers covered by an air outlet of the air conditioning and refrigeration system into the same physical server partition, and form a physical server area based on cloud computing; and set the physical server area contained in the horizontal and vertical directions. The number of server partitions is x and y respectively, and both x and y are positive integers; b.获取物理服务器信息,获取步骤a中所有物理服务器的资源使用信息和所在分区信息; b. Obtain physical server information, obtain resource usage information and partition information of all physical servers in step a; c.计算待创建虚拟机资源,获取每个待创建虚拟机的CPU、内存和硬盘大小,并计算出要创建所有虚拟机所需的请求资源;设所需的CPU、内存和硬盘的请求资源分别为                                               
Figure 201210385961X100001DEST_PATH_IMAGE002
Figure 201210385961X100001DEST_PATH_IMAGE004
Figure 201210385961X100001DEST_PATH_IMAGE006
c. Calculate the virtual machine resources to be created, obtain the CPU, memory and hard disk size of each virtual machine to be created, and calculate the requested resources required to create all virtual machines; set the required CPU, memory and hard disk requested resources as
Figure 201210385961X100001DEST_PATH_IMAGE002
,
Figure 201210385961X100001DEST_PATH_IMAGE004
and
Figure 201210385961X100001DEST_PATH_IMAGE006
;
d.对物理服务器进行排序,对所有物理服务器依据可用资源的大小进行排序,形成物理服务器序列集合,该序列集合记为d. Sort the physical servers, and sort all the physical servers according to the size of the available resources to form a sequence set of physical servers, which is denoted as ; e.建立待创建虚拟机与物理服务器之间的映射,在可用资源满足待创建虚拟机请求资源的基础上,搜索满足需求的物理服务器资源序列;并按照序列中包含物理服务器数量的多少对该资源序列进行分类,形成物理服务器序列集合,分别记为
Figure 201210385961X100001DEST_PATH_IMAGE010
Figure 201210385961X100001DEST_PATH_IMAGE012
,…,
Figure DEST_PATH_IMAGE014
,其中
Figure DEST_PATH_IMAGE016
表示包含n个物理服务器且可用资源满足需求的所有序列的集合,n为正整数;
e. Establish a mapping between the virtual machine to be created and the physical server, and search for a sequence of physical server resources that meet the requirements on the basis that the available resources meet the resources requested by the virtual machine to be created; and sequence the resources according to the number of physical servers included in the sequence Classify to form a set of physical server sequences, which are respectively denoted as
Figure 201210385961X100001DEST_PATH_IMAGE010
,
Figure 201210385961X100001DEST_PATH_IMAGE012
,...,
Figure DEST_PATH_IMAGE014
,in
Figure DEST_PATH_IMAGE016
Indicates the collection of all sequences that contain n physical servers and available resources meet the requirements, n is a positive integer;
f.判断是否有单个物理服务器满足需求,如果有集合
Figure 56484DEST_PATH_IMAGE010
存在,则中任何一台物理服务器的可用资源均可创建出所有虚拟机,选择其中任一物理服务器作为待创建虚拟机的节点;如不存在集合
Figure 815679DEST_PATH_IMAGE010
,则执行步骤g;
f. Determine whether there is a single physical server to meet the demand, if there is a collection
Figure 56484DEST_PATH_IMAGE010
exist, then All virtual machines can be created from the available resources of any one of the physical servers, and any one of the physical servers can be selected as the node of the virtual machine to be created; if there is no set
Figure 815679DEST_PATH_IMAGE010
, then execute step g;
g.判断是否存在同一分区内的满足要求的物理服务器序列,遍历物理服务器序列集合
Figure 210888DEST_PATH_IMAGE012
,…,
Figure 25260DEST_PATH_IMAGE014
,寻找出位于同一物理服务器分区内的物理服务器序列,在该物理服务器序列上创建所有虚拟机;如不存在处于同一分区内的满足要求的物理服务器序列,则执行步骤h;
g. Determine whether there is a physical server sequence that meets the requirements in the same partition, and traverse the physical server sequence set
Figure 210888DEST_PATH_IMAGE012
,...,
Figure 25260DEST_PATH_IMAGE014
, find out the physical server sequence in the same physical server partition, and create all virtual machines on the physical server sequence; if there is no physical server sequence in the same partition that meets the requirements, go to step h;
h.选取空调能耗成本最小、且物理服务器数量最少的服务器序列,来创建所有虚拟机;空调能耗成本大小与物理服务器集中程度大小成反比。 h. Select the server sequence with the smallest air-conditioning energy consumption cost and the least number of physical servers to create all virtual machines; the air-conditioning energy consumption cost is inversely proportional to the concentration of physical servers.
2.根据权利要求1所述的节能的云计算数据中心虚拟机放置方法,设物理服务器分区的位置用二维坐标P=(i,j)表示;空调能耗成本用cost标示,定义: 2. The energy-saving cloud computing data center virtual machine placement method according to claim 1, assuming that the location of the physical server partition is represented by two-dimensional coordinates P=(i, j); the energy consumption cost of the air conditioner is marked by cost, defined as: 其中
Figure DEST_PATH_IMAGE020
为满足需求的物理服务器资源序列中所包含的分区的个数,
Figure DEST_PATH_IMAGE022
标示满足条件的物理服务器所在两分区之间的拓扑距离;
Figure DEST_PATH_IMAGE024
,标示满足条件的物理服务器所在分区两两分区之间的拓扑距离的总和;其特征在于:所述步骤g中,如果计算出物理服务器序列集合的空调能耗成本cost的值为1,则表明该物理服务器序列集合位于同一物理服务器分区内;如果物理服务器分区
Figure DEST_PATH_IMAGE026
Figure DEST_PATH_IMAGE028
的坐标分别为(i1,j1)、(i2,j2),则
Figure DEST_PATH_IMAGE030
=
Figure DEST_PATH_IMAGE032
;步骤h中,按照
Figure 411505DEST_PATH_IMAGE012
,…,
Figure 678538DEST_PATH_IMAGE014
的顺序求取所有物理服务器序列的空调能耗成本cost的值,选取第一个最小cost值所对应的物理服务器序列来创建所有虚拟机。
in
Figure DEST_PATH_IMAGE020
The number of partitions included in the physical server resource sequence to meet the demand,
Figure DEST_PATH_IMAGE022
Indicates the topological distance between the two partitions where the physical server meets the conditions;
Figure DEST_PATH_IMAGE024
, indicating the sum of the topological distances between two partitions where the physical servers meet the conditions; it is characterized in that: in the step g, if the calculated value of the air conditioning energy consumption cost of the physical server sequence set is 1, it means The collection of physical server sequences is within the same physical server partition; if the physical server partition
Figure DEST_PATH_IMAGE026
,
Figure DEST_PATH_IMAGE028
The coordinates of are respectively (i1, j1), (i2, j2), then
Figure DEST_PATH_IMAGE030
=
Figure DEST_PATH_IMAGE032
; In step h, according to
Figure 411505DEST_PATH_IMAGE012
,...,
Figure 678538DEST_PATH_IMAGE014
Calculate the air-conditioning energy cost cost values of all physical server sequences in the order of , and select the physical server sequence corresponding to the first minimum cost value to create all virtual machines.
3.根据权利要求1或2所述的节能的云计算数据中心虚拟机放置方法,其特征在于:步骤d中,所述的物理服务器的可用资源包括CPU、内存和硬盘的可用资源,分别用
Figure DEST_PATH_IMAGE034
Figure DEST_PATH_IMAGE036
Figure DEST_PATH_IMAGE038
标示,分别采用以下公式进行计算:
3. The energy-saving cloud computing data center virtual machine placement method according to claim 1 or 2, characterized in that: in step d, the available resources of the physical server include available resources of CPU, internal memory and hard disk, which are respectively used
Figure DEST_PATH_IMAGE034
,
Figure DEST_PATH_IMAGE036
and
Figure DEST_PATH_IMAGE038
marked and calculated using the following formulas:
Figure DEST_PATH_IMAGE040
Figure DEST_PATH_IMAGE040
Figure DEST_PATH_IMAGE042
Figure DEST_PATH_IMAGE042
其中,右下标注为total的表示资源总量,为used的表示已用资源量,为threshold的表示设定的预留阀值; Among them, the bottom right marked as total indicates the total amount of resources, used indicates the amount of used resources, and threshold indicates the set reserved threshold; 步骤e中,如果一个或多个物理计算机的CPU、内存和硬盘的可用资源分别大于或等于
Figure 815121DEST_PATH_IMAGE002
Figure 795584DEST_PATH_IMAGE004
Figure DEST_PATH_IMAGE046
,则认为该序列为满足需求的物理服务器资源序列。
In step e, if the available resources of CPU, memory and hard disk of one or more physical computers are respectively greater than or equal to
Figure 815121DEST_PATH_IMAGE002
,
Figure 795584DEST_PATH_IMAGE004
and
Figure DEST_PATH_IMAGE046
, the sequence is considered to be a physical server resource sequence that meets the requirements.
CN201210385961.XA 2012-10-12 2012-10-12 A kind of energy-conservation cloud computing data center virtual machine laying method Active CN102929687B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210385961.XA CN102929687B (en) 2012-10-12 2012-10-12 A kind of energy-conservation cloud computing data center virtual machine laying method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210385961.XA CN102929687B (en) 2012-10-12 2012-10-12 A kind of energy-conservation cloud computing data center virtual machine laying method

Publications (2)

Publication Number Publication Date
CN102929687A true CN102929687A (en) 2013-02-13
CN102929687B CN102929687B (en) 2016-05-25

Family

ID=47644497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210385961.XA Active CN102929687B (en) 2012-10-12 2012-10-12 A kind of energy-conservation cloud computing data center virtual machine laying method

Country Status (1)

Country Link
CN (1) CN102929687B (en)

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103812789A (en) * 2013-09-18 2014-05-21 广东电网公司佛山供电局 Cloud service resource automatic allocating method and system
CN104063261A (en) * 2014-04-01 2014-09-24 杭州电子科技大学 Multi-objective optimization virtual machine placing method under cloud environment
CN104065547A (en) * 2014-06-23 2014-09-24 西安电子科技大学昆山创新研究院 A method for selecting a physical host in a computing center
CN104468803A (en) * 2014-12-12 2015-03-25 华为技术有限公司 Virtual data center resource mapping method and equipment
CN104580194A (en) * 2014-12-31 2015-04-29 四达时代通讯网络技术有限公司 Virtual resource management method and device oriented to video applications
CN104995604A (en) * 2015-03-03 2015-10-21 华为技术有限公司 Resource allocation method of virtual machine and device thereof
CN105824686A (en) * 2016-03-11 2016-08-03 中国联合网络通信集团有限公司 Selecting method and selecting system of host machine of virtual machine
CN105978719A (en) * 2016-05-10 2016-09-28 广东睿江云计算股份有限公司 Control method and device for service quality of cloud host
CN103747059B (en) * 2013-12-26 2016-10-05 华中科技大学 A kind of cloud computing server cluster network support method towards many tenants and system
CN106095531A (en) * 2016-06-08 2016-11-09 北京航空航天大学 A kind of dispatching method of virtual machine loaded based on grade and physical machine in cloud platform
CN106096874A (en) * 2016-08-18 2016-11-09 中国联合网络通信集团有限公司 The energy efficiency managing method of data center, device and system
CN106161539A (en) * 2015-04-12 2016-11-23 北京典赞科技有限公司 Schedule creating energy conservation optimizing method based on the fictitious host computer of ARM server
EP3118741A1 (en) 2015-07-15 2017-01-18 Deutsche Telekom AG Method, device and system for energy-efficient use of computing units
CN106933646A (en) * 2015-12-29 2017-07-07 杭州华为数字技术有限公司 A kind of method and device for creating virtual machine
CN107171976A (en) * 2016-03-07 2017-09-15 中兴通讯股份有限公司 A kind of method and apparatus for realizing resource reservation
WO2018161632A1 (en) * 2017-03-09 2018-09-13 华为技术有限公司 Capacity updating method and apparatus for distributed device
CN110750330A (en) * 2019-10-18 2020-02-04 北京浪潮数据技术有限公司 Virtual machine creating method, system, electronic equipment and storage medium
CN110784335A (en) * 2019-09-19 2020-02-11 烽火通信科技股份有限公司 Network element resource reservation system under cloud scene
CN110795203A (en) * 2018-08-03 2020-02-14 阿里巴巴集团控股有限公司 Resource scheduling method, device and system and computing equipment
CN111352721A (en) * 2018-12-21 2020-06-30 中国移动通信集团山东有限公司 A service migration method and device
CN111800506A (en) * 2020-07-06 2020-10-20 深圳市网心科技有限公司 An edge computing node deployment method and related device
CN113094149A (en) * 2021-03-12 2021-07-09 西安交通大学 Data center virtual machine placement method, system, medium and equipment
CN113590342A (en) * 2021-09-29 2021-11-02 睿至科技集团有限公司 Resource allocation method and system in cloud computing system
CN114048004A (en) * 2021-11-22 2022-02-15 北京志凌海纳科技有限公司 High-availability batch scheduling method, device, equipment and storage medium for virtual machines

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556493A (en) * 2008-04-09 2009-10-14 株式会社日立制作所 Operations management methods and devices in information processing systems
CN101719081A (en) * 2009-12-01 2010-06-02 北京大学 Method for scheduling virtual machines
CN102096461A (en) * 2011-01-13 2011-06-15 浙江大学 Energy-saving method of cloud data center based on virtual machine migration and load perception integration
CN102299964A (en) * 2011-08-30 2011-12-28 南京邮电大学 Data redeployment method applied to energy-saving trunking system
US20120260248A1 (en) * 2011-04-07 2012-10-11 Vmware, Inc. Automated cost calculation for virtualized infrastructure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556493A (en) * 2008-04-09 2009-10-14 株式会社日立制作所 Operations management methods and devices in information processing systems
CN101719081A (en) * 2009-12-01 2010-06-02 北京大学 Method for scheduling virtual machines
CN102096461A (en) * 2011-01-13 2011-06-15 浙江大学 Energy-saving method of cloud data center based on virtual machine migration and load perception integration
US20120260248A1 (en) * 2011-04-07 2012-10-11 Vmware, Inc. Automated cost calculation for virtualized infrastructure
CN102299964A (en) * 2011-08-30 2011-12-28 南京邮电大学 Data redeployment method applied to energy-saving trunking system

Cited By (37)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103812789A (en) * 2013-09-18 2014-05-21 广东电网公司佛山供电局 Cloud service resource automatic allocating method and system
CN103747059B (en) * 2013-12-26 2016-10-05 华中科技大学 A kind of cloud computing server cluster network support method towards many tenants and system
CN104063261A (en) * 2014-04-01 2014-09-24 杭州电子科技大学 Multi-objective optimization virtual machine placing method under cloud environment
CN104065547A (en) * 2014-06-23 2014-09-24 西安电子科技大学昆山创新研究院 A method for selecting a physical host in a computing center
CN104065547B (en) * 2014-06-23 2017-06-20 西安电子科技大学昆山创新研究院 A kind of system of selection for calculating central interior physical host
CN104468803B (en) * 2014-12-12 2018-02-09 华为技术有限公司 A kind of virtual data center method for mapping resource and equipment
US10331491B2 (en) 2014-12-12 2019-06-25 Huawei Technologies Co., Ltd. Virtual data center resource mapping method and device
CN104468803A (en) * 2014-12-12 2015-03-25 华为技术有限公司 Virtual data center resource mapping method and equipment
CN104580194A (en) * 2014-12-31 2015-04-29 四达时代通讯网络技术有限公司 Virtual resource management method and device oriented to video applications
CN104580194B (en) * 2014-12-31 2017-11-24 北京四达时代软件技术股份有限公司 Towards the virtual resources management method and device of Video Applications
WO2016138638A1 (en) * 2015-03-03 2016-09-09 华为技术有限公司 Resource allocation method and apparatus for virtual machines
US10572290B2 (en) 2015-03-03 2020-02-25 Huawei Technologies Co., Ltd. Method and apparatus for allocating a physical resource to a virtual machine
CN104995604A (en) * 2015-03-03 2015-10-21 华为技术有限公司 Resource allocation method of virtual machine and device thereof
CN106161539A (en) * 2015-04-12 2016-11-23 北京典赞科技有限公司 Schedule creating energy conservation optimizing method based on the fictitious host computer of ARM server
EP3118741A1 (en) 2015-07-15 2017-01-18 Deutsche Telekom AG Method, device and system for energy-efficient use of computing units
CN106933646A (en) * 2015-12-29 2017-07-07 杭州华为数字技术有限公司 A kind of method and device for creating virtual machine
CN107171976A (en) * 2016-03-07 2017-09-15 中兴通讯股份有限公司 A kind of method and apparatus for realizing resource reservation
CN105824686A (en) * 2016-03-11 2016-08-03 中国联合网络通信集团有限公司 Selecting method and selecting system of host machine of virtual machine
CN105824686B (en) * 2016-03-11 2019-03-22 中国联合网络通信集团有限公司 A kind of selection method of virtual machine host machine and selection system
CN105978719B (en) * 2016-05-10 2019-07-16 广东睿江云计算股份有限公司 A kind of control method and device of cloud host services quality
CN105978719A (en) * 2016-05-10 2016-09-28 广东睿江云计算股份有限公司 Control method and device for service quality of cloud host
CN106095531B (en) * 2016-06-08 2019-06-11 北京航空航天大学 A virtual machine scheduling method based on grade and physical machine load in cloud platform
CN106095531A (en) * 2016-06-08 2016-11-09 北京航空航天大学 A kind of dispatching method of virtual machine loaded based on grade and physical machine in cloud platform
CN106096874A (en) * 2016-08-18 2016-11-09 中国联合网络通信集团有限公司 The energy efficiency managing method of data center, device and system
WO2018161632A1 (en) * 2017-03-09 2018-09-13 华为技术有限公司 Capacity updating method and apparatus for distributed device
CN110795203B (en) * 2018-08-03 2023-05-02 阿里巴巴集团控股有限公司 Resource scheduling method, device, system and computing equipment
CN110795203A (en) * 2018-08-03 2020-02-14 阿里巴巴集团控股有限公司 Resource scheduling method, device and system and computing equipment
CN111352721A (en) * 2018-12-21 2020-06-30 中国移动通信集团山东有限公司 A service migration method and device
CN110784335A (en) * 2019-09-19 2020-02-11 烽火通信科技股份有限公司 Network element resource reservation system under cloud scene
CN110784335B (en) * 2019-09-19 2022-09-02 烽火通信科技股份有限公司 Network element resource reservation system under cloud scene
CN110750330A (en) * 2019-10-18 2020-02-04 北京浪潮数据技术有限公司 Virtual machine creating method, system, electronic equipment and storage medium
CN111800506A (en) * 2020-07-06 2020-10-20 深圳市网心科技有限公司 An edge computing node deployment method and related device
CN111800506B (en) * 2020-07-06 2023-09-19 深圳市网心科技有限公司 An edge computing node deployment method and related devices
CN113094149A (en) * 2021-03-12 2021-07-09 西安交通大学 Data center virtual machine placement method, system, medium and equipment
CN113094149B (en) * 2021-03-12 2024-01-12 西安交通大学 Data center virtual machine placement method, system, medium and equipment
CN113590342A (en) * 2021-09-29 2021-11-02 睿至科技集团有限公司 Resource allocation method and system in cloud computing system
CN114048004A (en) * 2021-11-22 2022-02-15 北京志凌海纳科技有限公司 High-availability batch scheduling method, device, equipment and storage medium for virtual machines

Also Published As

Publication number Publication date
CN102929687B (en) 2016-05-25

Similar Documents

Publication Publication Date Title
CN102929687B (en) A kind of energy-conservation cloud computing data center virtual machine laying method
US11714667B2 (en) Automated scaling of application in virtual data centers
CN102866915B (en) Virtual cluster integration method, device and system of virtual cluster
US11809913B2 (en) Load balancing of cloned virtual machines
US20190213647A1 (en) Numa-based client placement
US9298512B2 (en) Client placement in a computer network system using dynamic weight assignments on resource utilization metrics
CN102404412B (en) Energy saving method and system for cloud computing data center
CN107346264A (en) A kind of method, apparatus and server apparatus of virtual machine load balance scheduling
Sekhar et al. A survey on energy efficient server consolidation through vm live migration
CN102662750A (en) Virtual machine resource optimal control method and control system based on elastic virtual machine pool
CN103595780A (en) Cloud computing resource scheduling method based on repeat removing
WO2013097396A1 (en) Virtual cluster integration method, device, and system
CN104636187A (en) Virtual machine scheduling method in NUMA (non uniform memory access) architecture and based on load prediction
WO2018086467A1 (en) Method, apparatus and system for allocating resources of application clusters under cloud environment
CN105426241A (en) Cloud computing data center based unified resource scheduling energy-saving method
CN103514046A (en) Virtual machine placement method and cluster management server
TW201324357A (en) Green energy management of virtual machine cluster
CN105049499B (en) A kind of network function virtualized resource distribution method based on more cubic covering methodis
CN115167984B (en) Virtual machine load balancing placement method considering physical resource competition based on cloud computing platform
CN116795520A (en) Resource scheduling method, device, electronic equipment and storage medium
He et al. Stochastic modeling and performance analysis of energy-aware cloud data center based on dynamic scalable stochastic petri net
CN106844175B (en) A kind of cloud platform method for planning capacity based on machine learning
Ji et al. An online virtual machine placement algorithm in an over-committed cloud
CN107423114A (en) A kind of dynamic migration of virtual machine method based on classification of service
Chen et al. Implementation of a cloud energy saving system with virtual machine dynamic resource allocation method based on openstack

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 250014 Ji'nan Province, Shandong Province, Lixia District, Department of road, No. 19, Shandong Computing Center

Applicant after: SHANDONG COMPUTER SCIENCE CENTER

Address before: 250014 Ji'nan Province, Shandong Province, Lixia District, Department of road, No. 19, Shandong Computing Center

Applicant before: Shandong Prov. Computing Center

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant