WO2017000645A1 - 一种分配宿主机资源的方法和装置 - Google Patents

一种分配宿主机资源的方法和装置 Download PDF

Info

Publication number
WO2017000645A1
WO2017000645A1 PCT/CN2016/080255 CN2016080255W WO2017000645A1 WO 2017000645 A1 WO2017000645 A1 WO 2017000645A1 CN 2016080255 W CN2016080255 W CN 2016080255W WO 2017000645 A1 WO2017000645 A1 WO 2017000645A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
virtual machine
value
weights
resource specification
Prior art date
Application number
PCT/CN2016/080255
Other languages
English (en)
French (fr)
Inventor
邹韬
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017000645A1 publication Critical patent/WO2017000645A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Definitions

  • the present invention relates to the field of information technology, and in particular, to a method and an apparatus for allocating host resources.
  • Cloud computing technology shields the underlying resources of the business.
  • the service runs on a virtual machine in the host.
  • the resource utilization of the host is closely related to the allocation algorithm of the virtual machine.
  • VM1 and VM2 there are two hosts hostA and hostB. Their resource specifications are 8-core CPU and 8Gbytes of memory. Three virtual machines VM1, VM2 and VM3 need to be run on these two hosts, of which VM1 and VM2
  • the resource specification is 4-core CPU and 4G byte memory.
  • the resource specification of VM3 is 8-core CPU and 8G byte memory. Obviously, the most efficient allocation method is: VM1 and VM2 run on one host, and VM3 runs on another host. In this way, resource utilization has reached 100%.
  • the upper layer application when the management system allocates the host resources, the upper layer application provides an interface for creating a virtual machine. If the upper layer needs to create multiple virtual machines, it needs to be called multiple times. For example, according to the above example, the first time the interface is called to create VM1, the management system allocates VM1 on hostA. The second call to the interface to create VM2, the management system will create VM2 on hostB because there are more resources on hostB. When VM3 is created for the third time, the remaining resources on HostA and HostB cannot meet the resources required by VM3, and the creation fails. As a result, system resource utilization is only 50%. It can be seen that the management system has a problem of insufficient resource utilization when performing resource allocation.
  • an embodiment of the present invention provides a method for allocating host resources.
  • the technical solution of the method is as follows:
  • an embodiment of the present invention provides a method for allocating a host resource, including:
  • Sorting weights of the plurality of virtual machines according to a sorting rule and a resource specification of the virtual machine
  • the resource specification includes a CPU value of the virtual machine, a memory value of the virtual machine, or a virtual machine external memory value.
  • the ordering rule includes a weight occupied by each resource specification, and a weight of the virtual machine is a sum of weights of weights of the resource specifications.
  • the weight of the resource specification is a normalized value
  • the normalized value of the resource specification is a resource specification value of the virtual machine divided by a minimum of the resource specification. value.
  • the resource specifications of the multiple virtual machines required by the application are obtained through a one-time calling interface, or are obtained by reading application information.
  • an embodiment of the present invention provides a management server, including an obtaining module, a sorting module, and an allocating module, where:
  • the obtaining module is configured to acquire resource specifications of multiple virtual machines required by the application;
  • the sorting module is configured to sort weights of the plurality of virtual machines according to a sorting rule and a resource specification of the virtual machine;
  • the allocating module is configured to apply for allocating host resources in descending order of virtual machine weights.
  • the resource specification includes a CPU value of the virtual machine, a memory value of the virtual machine, or a virtual machine external memory value.
  • the ordering rule includes a weight occupied by each resource specification, and the weight of the virtual machine is a sum of weights of weights of the resource specifications.
  • the weight of the resource specification is a normalized value
  • the normalized value of the resource specification is a resource specification value of the virtual machine divided by a minimum of the resource specification. value.
  • the resource specifications of the multiple virtual machines required by the application are obtained by the acquiring module through a one-time calling interface, or obtained by reading application information. Take it.
  • the foregoing technical solution provided by the embodiment of the present invention allocates the required virtual machines according to the weights and then allocates them, thereby greatly improving the resource utilization rate of the host.
  • FIG. 1 is a schematic structural diagram of a system according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a method for allocating host resources according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a management server according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of another management server according to an embodiment of the present invention.
  • the embodiment of the invention provides a system for allocating host resources.
  • the system includes an upper layer application, a management server, and a host machine.
  • the upper application is an application that provides business.
  • the management server is configured to obtain resource specifications of the plurality of virtual machines required by the application; sorting the weights of the plurality of virtual machines according to the sorting rule and the resource specification of the virtual machine; A small order applies to allocate host resources.
  • the host is used to run the assigned virtual machine.
  • the embodiment of the invention further provides a method for allocating host resources, which is applied to the system shown in FIG. 1, in particular to the management server therein.
  • the method is shown in Figure 2 and includes the following steps:
  • the above resource specifications include the CPU value of the virtual machine, the memory value of the virtual machine, or the external memory value required by the virtual machine.
  • the sorting rule includes the weight of each resource specification, and the weight of the virtual machine is the sum of the weights of the weights of the resource specifications.
  • the weight of the resource specification is a normalized value, and the normalized value of the resource specification is a resource specification value of the virtual machine divided by a minimum value of the resource specification.
  • the required virtual machines are uniformly sorted according to the weights and then allocated, thereby greatly improving the resource utilization of the host.
  • the management server acquires resource specifications of multiple virtual machines required by the application.
  • the application needs to run three virtual machines VM1, VM2 and VM3 on these two hosts.
  • Their resource specification requirements are 2 core CPU, 2G byte memory, 3 core CPU, 4G byte memory, and 5 core CPU. , 6G bytes of memory.
  • the application can apply to the management server to allocate the three virtual machines through the one-time invocation interface, or the management server can read the application information to obtain the virtual machine resource specifications.
  • the resource specifications of a virtual machine may also include external storage, such as hard disk space.
  • the management server sorts the weights of the multiple virtual machines according to the collation rule and the resource specification of the virtual machine.
  • the collation is used to determine the calculation rules for virtual machine sorting, which can be set in advance.
  • the collation includes the weight of each resource specification. For example, you can set the CPU value and the memory value to each have a weight of 50%. For applications with a large amount of computation, you can increase the weight of the CPU value. For example, the CPU value has a weight of 70%. The memory value has a weight of 30%. This is more conducive to rational allocation of resources. If the resource specification also includes an external memory, the sum of the weights of the CPU value, the memory value, and the external memory value is 100%.
  • the resource specifications are first normalized.
  • the weight is calculated by dividing the resource specification value of the virtual machine by the minimum value of the resource specification.
  • the CPU values of the three virtual machines VM1, VM2, and VM3 are respectively 2 cores, 3 cores, and 5 cores, and the minimum CPU value is 2 cores, and the CPU weight of VM1 is 1, and the CPU weight of VM2 is At 1.5, VM3 has a CPU weight of 2.5.
  • the memory values of VM1, VM2, and VM3 are 2G bytes, 4G bytes, and 6G bytes, respectively.
  • the minimum memory value is 2G bytes, VM1 has a memory weight of 1, VM2 has a memory weight of 2, and VM3 has a memory weight of 3.
  • the weights of the virtual machine resource specifications are calculated, the sum of the weights multiplied by the weights is the weight of the virtual machine. Assume that in this example, the CPU value has a weight of 70% and the memory value has a weight of 30%. Then the weights of the virtual machines are as follows:
  • the training can be performed in descending order.
  • the result of sorting is: VM3, VM2, VM1.
  • the management server applies for allocating host resources in descending order of virtual machine weights.
  • VM3 is allocated first, VM3 will be allocated to the host hostA, and VM2 will be allocated, and will be allocated to hostB, so that the unallocated resources on the host hostA are 3 core CPUs and 2G memory, and the resources allocated on the hostB are 5 core CPU, 4G memory.
  • VM1 can be assigned to hostB because there are more resources on hostB.
  • the virtual machines required by the service are uniformly sorted according to the weights, and then allocated, which greatly improves the resource utilization rate of the host.
  • a management server for implementing the method shown in Figure 2 above. example.
  • a management server provided by an embodiment of the present invention includes:
  • the obtaining module 301 is configured to obtain resource specifications of multiple virtual machines required by the application;
  • the sorting module 302 is configured to sort the weights of the plurality of virtual machines according to the sorting rule and the resource specification of the virtual machine;
  • the allocating module 303 is configured to apply for allocating host resources in descending order of virtual machine weights.
  • the above resource specifications include the CPU value of the virtual machine, the memory value of the virtual machine, or the external memory value of the virtual machine.
  • the collation may include the weight of each resource specification, and the weight of the virtual machine is the sum of the weights of the weights of the respective resource specifications.
  • the weight of the resource specification is a normalized value, and the normalized value of the resource specification is a resource specification value of the virtual machine divided by a minimum value of the resource specification.
  • the resource specifications of the plurality of virtual machines required by the application are obtained by the obtaining module through a one-time calling interface, or obtained by reading application information.
  • the foregoing technical solution provided by the embodiment of the present invention allocates the required virtual machines according to the weights and then allocates them, thereby greatly improving the resource utilization rate of the host.
  • FIG. 4 is a schematic diagram showing another structure of a management server according to an embodiment of the present invention.
  • the program code for executing the solution of the present invention is stored in a memory and controlled by a processor.
  • the management server includes a processor 401, a memory 402, and a communication interface 403.
  • the processor may be a general purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present invention.
  • CPU general purpose central processing unit
  • ASIC application specific integrated circuit
  • the one or more memories included in the computer system may be a non-transitory computer readable storage medium such as read-only memory (ROM) or other type of static storage that can store static information and instructions.
  • ROM read-only memory
  • the device can also be a disk storage.
  • These memories can be connected to the processor via a bus.
  • the memory stores program code for executing the inventive scheme, for example, a program for executing the method of the embodiment shown in Fig. 2.
  • the program code for carrying out the inventive arrangement is stored in a memory and controlled by the processor for execution.
  • any device such as transceiver can be used to communicate with other devices or communication networks Communication, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.
  • Communication such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.

Abstract

本发明提供了一种分配宿主机资源的方法和一种管理服务器,包括:获取应用所需多个虚拟机的资源规格;根据排序规则和所述虚拟机的资源规格,对所述多个虚拟机的权值进行排序;按照虚拟机权值从大到小的顺序申请分配宿主机资源。本发明通过应用所需虚拟机按照权值统一排序后再进行分配,大大提高了宿主机的资源利用率。

Description

一种分配宿主机资源的方法和装置
本申请要求于2015年6月30日提交中国专利局、申请号为201510374813.1,发明名称为“一种分配宿主机资源的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及信息技术领域,尤其涉及一种分配宿主机资源的方法及装置。
背景技术
云计算技术实现了对业务对底层资源的屏蔽。业务运行在宿主机中的虚拟机上,在多个宿主机、虚拟机的情况下,宿主机的资源利用率是跟虚拟机的分配算法密切相关的。
例如,有两个宿主机hostA和hostB,他们的资源规格都是8核CPU,8G字节内存,需要在这两个宿主机上运行3个虚拟机VM1、VM2和VM3,其中VM1和VM2的资源规格为4核CPU、4G字节内存,VM3的资源规格为8核CPU、8G字节内存。显然运行利用率最高的分配方式为:VM1和VM2运行在一个宿主机上,VM3运行在另一个宿主机上。这样,资源利用率达到了100%。
现有技术中,管理系统分配宿主机资源时,对上层应用提供了创建虚拟机(Virtual Machine)的接口,若上层需创建多个虚拟机,则需要调用多次。例如,根据上面的例子,第一次调用接口创建VM1,则管理系统分配hostA上创建VM1。第二次调用接口创建VM2,管理系统将因为hostB上剩余资源更多而把VM2创建在hostB上。当第三次调用接口创建VM3时,由于HostA、HostB上剩余资源均不能满足VM3所需资源,创建失败。由此导致系统资源利用率只有50%。可见,管理系统在进行资源分配时存在资源利用率不足的问题。
发明内容
为克服现有技术的缺陷,本发明实施例提供了一种分配宿主机资源的方法。所述方法的技术方案如下:
第一方面,本发明实施例提供了一种分配宿主机资源的方法,包括:
获取应用所需多个虚拟机的资源规格;
根据排序规则和所述虚拟机的资源规格,对所述多个虚拟机的权值进行排序;
按照虚拟机权值从大到小的顺序申请分配宿主机资源。
在第一方面的第一种可能的实现方式中,所述资源规格包括虚拟机的CPU值,虚拟机的内存值,或者虚拟机外部存储器值。
在第一方面的第二种可能的实现方式中,所述排序规则包括各资源规格所占的权重,所述虚拟机的权值为各资源规格的权值所占权重的和。
在第一方面的第三种可能的实现方式中,所述资源规格的权值为归一化的值,所述资源规格的归一化值为虚拟机的资源规格值除以资源规格的最小值。
在第一方面的第四种可能的实现方式中,所述应用所需多个虚拟机的资源规格是通过一次性调用接口获取的,或者是通过读取应用信息获取的。
第二方面,本发明实施例提供了一种管理服务器,包括获取模块,排序模块,以及分配模块,其中:
所述获取模块,用于获取应用所需多个虚拟机的资源规格;
所述排序模块,用于根据排序规则和所述虚拟机的资源规格,对所述多个虚拟机的权值进行排序;
所述分配模块,用于按照虚拟机权值从大到小的顺序申请分配宿主机资源。
在第二方面的第一种可能的实现方式中,所述资源规格包括虚拟机的CPU值,虚拟机的内存值,或者虚拟机外部存储器值。
在第二方面的第二种可能的实现方式中,所述排序规则包括各资源规格所占的权重,所述虚拟机的权值为各资源规格的权值所占权重的和。
在第二方面的第三种可能的实现方式中,所述资源规格的权值为归一化的值,所述资源规格的归一化值为虚拟机的资源规格值除以资源规格的最小值。
在第二方面的第四种可能的实现方式中,所述应用所需多个虚拟机的资源规格是所述获取模块通过一次性调用接口获取的,或者是通过读取应用信息获 取的。
本发明实施例提供的上述技术方案通过应用所需虚拟机按照权值统一排序后再进行分配,大大提高了宿主机的资源利用率。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获取其他的附图。
图1为本发明实施例提供的一种系统架构图;
图2为本发明实施例提供的一种分配宿主机资源的方法流程图;
图3为本发明实施例提供的一种管理服务器的结构示意图;
图4为本发明实施例提供的另一种管理服务器的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下获取的所有其他实施例,都属于本发明保护的范围。
本发明实施例提供一种分配宿主机资源的系统,如图1所示,系统包括上层应用、管理服务器、宿主机。
上层应用是提供业务的应用程序。而管理服务器用于获取应用所需多个虚拟机的资源规格;根据排序规则和所述虚拟机的资源规格,对所述多个虚拟机的权值进行排序;按照虚拟机权值从大到小的顺序申请分配宿主机资源。宿主机用于运行分配的虚拟机。
本发明实施例还提供一种分配宿主机资源的方法,应用于如图1所示的系统,特别是其中的管理服务器中。该方法如图2所示,包括下列步骤:
201,获取应用所需多个虚拟机的资源规格;
202,根据排序规则和所述虚拟机的资源规格,对所述多个虚拟机的权值进行排序;
203,按照虚拟机权值从大到小的顺序申请分配宿主机资源。
上述资源规格包括虚拟机的CPU值,虚拟机的内存值,或者虚拟机所需的外部存储器值。而所述排序规则包括各资源规格所占的权重,虚拟机的权值为各资源规格的权值所占权重的和。所述资源规格的权值为归一化的值,所述资源规格的归一化值为虚拟机的资源规格值除以资源规格的最小值。
本发明实施例通过应用所需虚拟机按照权值统一排序后再进行分配,大大提高了宿主机的资源利用率。
下面进一步举例来说明本发明,假设图1所示的系统中的宿主机有两个,hostA和hostB,他们的资源规格都是8核CPU,8G字节内存。分配宿主机资源的实现过程具体包括:
201A,管理服务器获取应用所需多个虚拟机的资源规格。
假设应用需要在这两个宿主机上运行3个虚拟机VM1、VM2和VM3,它们的资源规格需求分别为2核CPU、2G字节内存;3核CPU、4G字节内存;以及5核CPU、6G字节内存。应用可以通过一次性调用接口向管理服务器申请分配这3个虚拟机,也可以由管理服务器读取应用信息获取虚拟机资源规格。一个虚拟机的资源规格还可以包括外部存储器,如硬盘空间等。
202A,管理服务器根据排序规则和所述虚拟机的资源规格,对所述多个虚拟机的权值进行排序。
排序规则用于确定虚拟机排序的计算规则,可以预先设置。排序规则包括各资源规格所占的权重。例如,可以设CPU值和内存值的权重各为50%。对于计算量较大的应用,可以提高CPU值的权重。例如,CPU值的权重为70%, 内存值的权重为30%。这样更有利于合理安排资源。如果资源规格还包括外部存储器,则CPU值、内存值、外部存储器值的权重的和为100%。
计算虚拟机权值时首先把各资源规格归一化,权值的计算方法为虚拟机的资源规格值除以资源规格的最小值。本实施例中,3个虚拟机VM1、VM2和VM3的CPU值分别为2核、3核、5核,最小的CPU值为2核,则VM1的CPU权值为1,VM2的CPU权值为1.5,VM3的CPU权值为2.5。而VM1、VM2和VM3的内存值分别为2G字节、4G字节、6G字节。最小的内存值为2G字节,则VM1的内存权值为1,VM2的内存权值为2,VM3的内存权值为3。
虚拟机各资源规格的权值计算出来后,各权值乘以权重后得到的总和就是虚拟机的权值。假设本例子中,CPU值的权重为70%,内存值的权重为30%。则各虚拟机权值如下:
VM1的权值=1*70%+1*30%=1;
VM2的权值=1.5*70%+2*30%=1.65;
VM3的权值=2.5*70%+3*30%=2.65;
各虚拟机权值计算出来后,可按照从大到小的顺序进行培训。上述例子中,排序的结果为:VM3、VM2、VM1。
203A,管理服务器按照虚拟机权值从大到小的顺序申请分配宿主机资源。
排序完成后,按照从大到小顺序申请分配宿主机资源。本实施例中,先分配VM3,VM3将分配到宿主机hostA中,再分配VM2,将分配到hostB中,这样宿主机hostA上未分配资源为3核CPU、2G内存,hostB上未分配资源为5核CPU、4G内存。最后分配VM1时,由于hostB上资源更多,可以分配VM1到hostB上。
本发明实施例通过业务所需虚拟机按照权值统一排序后再进行分配,大大提高了宿主机的资源利用率。
本发明实施例还提供一种管理服务器,用于实施上述图2所示的方法实施 例。具体如图3所示,本发明实施例提供的一种管理服务器包括:
获取模块301,用于获取应用所需多个虚拟机的资源规格;
排序模块302,用于根据排序规则和所述虚拟机的资源规格,对所述多个虚拟机的权值进行排序;
分配模块303,用于按照虚拟机权值从大到小的顺序申请分配宿主机资源。
上述资源规格包括虚拟机的CPU值,虚拟机的内存值,或者虚拟机外部存储器值。排序规则可包括各资源规格所占的权重,所述虚拟机的权值为各资源规格的权值所占权重的和。所述资源规格的权值为归一化的值,所述资源规格的归一化值为虚拟机的资源规格值除以资源规格的最小值。所述应用所需多个虚拟机的资源规格是所述获取模块通过一次性调用接口获取的,或者是通过读取应用信息获取的。
本发明实施例提供的上述技术方案通过应用所需虚拟机按照权值统一排序后再进行分配,大大提高了宿主机的资源利用率。
图4所示的是本发明实施例提供的管理服务器的另一种结构示意图,采用通用计算机系统结构,执行本发明方案的程序代码保存在存储器中,并由处理器来控制执行。管理服务器包括:处理器401,存储器402,通信接口403。
处理器可以是一个通用中央处理器(CPU),微处理器,特定应用集成电路application-specific integrated circuit(ASIC),或一个或多个用于控制本发明方案程序执行的集成电路。
计算机系统中包括的一个或多个存储器,可以是一种非易失性的计算机可读存储介质,例如只读存储器read-only memory(ROM)或可存储静态信息和指令的其他类型的静态存储设备,也可以是磁盘存储器。这些存储器可通过总线与处理器相连接。存储器,保存有执行本发明方案的程序代码,例如,执行图2所示实施例的方法的程序。执行本发明方案的程序代码保存在存储器中,并由处理器来控制执行。
通信接口,可以使用任何收发器一类的装置,以便与其他设备或通信网络 通信,如以太网,无线接入网(RAN),无线局域网(WLAN)等.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,各单元具体功能的执行过程参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
总之,以上所述仅为本发明技术方案的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (10)

  1. 一种分配宿主机资源的方法,其特征在于,包括:
    获取应用所需多个虚拟机的资源规格;
    根据排序规则和所述虚拟机的资源规格,对所述多个虚拟机的权值进行排序;
    按照虚拟机权值从大到小的顺序申请分配宿主机资源。
  2. 如权利要求1所述的方法,其特征在于:所述资源规格包括虚拟机的CPU值,虚拟机的内存值,或者虚拟机外部存储器值。
  3. 如权利要求1或2所述的方法,其特征在于:所述排序规则包括各资源规格所占的权重,所述虚拟机的权值为各资源规格的权值所占权重的和。
  4. 如权利要求3所述的方法,其特征在于:所述资源规格的权值为归一化的值,所述资源规格的归一化值为虚拟机的资源规格值除以资源规格的最小值。
  5. 如权利要求1-4任一项所述的方法,其特征在于:所述应用所需多个虚拟机的资源规格是通过一次性调用接口获取的,或者是通过读取应用信息获取的。
  6. 一种管理服务器,其特征在于,包括获取模块,排序模块,以及分配模块,其中:
    所述获取模块,用于获取应用所需多个虚拟机的资源规格;
    所述排序模块,用于根据排序规则和所述虚拟机的资源规格,对所述多个虚拟机的权值进行排序;
    所述分配模块,用于按照虚拟机权值从大到小的顺序申请分配宿主机资源。
  7. 如权利要求6所述的管理服务器,其特征在于:所述资源规格包括虚拟机的CPU值,虚拟机的内存值,或者虚拟机外部存储器值。
  8. 如权利要求6或7所述的管理服务器,其特征在于:所述排序规则包括各资源规格所占的权重,所述虚拟机的权值为各资源规格的权值所占权重的和。
  9. 如权利要求8所述的管理服务器,其特征在于:所述资源规格的权值为归一化的值,所述资源规格的归一化值为虚拟机的资源规格值除以资源规格的最小值。
  10. 如权利要求6-9任一项所述的管理服务器,其特征在于:所述应用所需多个虚拟机的资源规格是所述获取模块通过一次性调用接口获取的,或者是通过读取应用信息获取的。
PCT/CN2016/080255 2015-06-30 2016-04-26 一种分配宿主机资源的方法和装置 WO2017000645A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510374813.1 2015-06-30
CN201510374813.1A CN106325999A (zh) 2015-06-30 2015-06-30 一种分配宿主机资源的方法和装置

Publications (1)

Publication Number Publication Date
WO2017000645A1 true WO2017000645A1 (zh) 2017-01-05

Family

ID=57607588

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080255 WO2017000645A1 (zh) 2015-06-30 2016-04-26 一种分配宿主机资源的方法和装置

Country Status (2)

Country Link
CN (1) CN106325999A (zh)
WO (1) WO2017000645A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189556A (zh) * 2018-08-29 2019-01-11 郑州云海信息技术有限公司 一种基于负载均衡的亲和性规则冲突监测方法及装置

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106872811A (zh) * 2015-12-10 2017-06-20 中国船舶工业系统工程研究院 一种基于信号特征的测试通道分配方法
CN107748691B (zh) * 2017-10-30 2020-04-24 平安科技(深圳)有限公司 虚拟机部署方法、装置、设备及计算机可读存储介质
CN109753353B (zh) * 2017-11-07 2023-04-18 阿里巴巴集团控股有限公司 虚拟机资源分配方法、装置及电子设备
CN107861794A (zh) * 2017-11-13 2018-03-30 郑州云海信息技术有限公司 一种在云计算系统中建立虚拟机的方法和装置
CN113312150A (zh) * 2021-06-21 2021-08-27 中国电信股份有限公司 边缘云的带宽保障方法及相关设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719082A (zh) * 2009-12-24 2010-06-02 中国科学院计算技术研究所 虚拟化计算平台中应用请求调度的方法及其系统
CN102521055A (zh) * 2011-12-15 2012-06-27 广州杰赛科技股份有限公司 一种虚拟机资源分配方法及其系统
CN103336722A (zh) * 2013-07-16 2013-10-02 上海大学 一种虚拟机cpu资源监控和动态分配方法

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070271560A1 (en) * 2006-05-18 2007-11-22 Microsoft Corporation Deploying virtual machine to host based on workload characterizations
US8548790B2 (en) * 2011-01-07 2013-10-01 International Business Machines Corporation Rapidly determining fragmentation in computing environments
CN102096461B (zh) * 2011-01-13 2013-06-19 浙江大学 基于虚拟机迁移和负载感知整合的云数据中心节能方法
US9225772B2 (en) * 2011-09-26 2015-12-29 Knoa Software, Inc. Method, system and program product for allocation and/or prioritization of electronic resources
CN102929701B (zh) * 2012-10-17 2015-04-29 北京搜狐新媒体信息技术有限公司 一种批量虚拟机的调度方法及装置
CN103617076A (zh) * 2013-10-31 2014-03-05 中兴通讯股份有限公司 一种虚拟化资源的调度方法和系统及服务端

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719082A (zh) * 2009-12-24 2010-06-02 中国科学院计算技术研究所 虚拟化计算平台中应用请求调度的方法及其系统
CN102521055A (zh) * 2011-12-15 2012-06-27 广州杰赛科技股份有限公司 一种虚拟机资源分配方法及其系统
CN103336722A (zh) * 2013-07-16 2013-10-02 上海大学 一种虚拟机cpu资源监控和动态分配方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189556A (zh) * 2018-08-29 2019-01-11 郑州云海信息技术有限公司 一种基于负载均衡的亲和性规则冲突监测方法及装置
CN109189556B (zh) * 2018-08-29 2022-08-12 郑州云海信息技术有限公司 一种基于负载均衡的亲和性规则冲突监测方法及装置

Also Published As

Publication number Publication date
CN106325999A (zh) 2017-01-11

Similar Documents

Publication Publication Date Title
WO2017000645A1 (zh) 一种分配宿主机资源的方法和装置
US11073992B2 (en) Allocation and balancing of storage resources
US9569243B2 (en) Offloading and parallelizing translation table operations
US10896064B2 (en) Coordinated, topology-aware CPU-GPU-memory scheduling for containerized workloads
CN109684065B (zh) 一种资源调度方法、装置及系统
US20190065280A1 (en) Hybrid virtual machine configuration management
US8825863B2 (en) Virtual machine placement within a server farm
JP5510556B2 (ja) 仮想マシンのストレージスペースおよび物理ホストを管理するための方法およびシステム
US11301303B2 (en) Resource pool processing to determine to create new virtual resource pools and storage devices based on currebt pools and devices not meeting SLA requirements
CN103797462B (zh) 一种创建虚拟机的方法和装置
US10324754B2 (en) Managing virtual machine patterns
US9547519B2 (en) Overcommitting virtual machine hosts
US9483503B2 (en) Placing a database
US11099895B2 (en) Estimating and managing resource provisioning speed based on provisioning instruction
US9218198B2 (en) Method and system for specifying the layout of computer system resources
US20160352821A1 (en) Method and system for allocating resources for virtual hosts
CN105302536A (zh) MapReduce应用的相关参数的配置方法和装置
KR20220025746A (ko) 컴퓨팅 자원의 동적 할당
US10990519B2 (en) Multi-tenant cloud elastic garbage collector
WO2020108536A1 (zh) 一种虚拟网络资源分配方法、系统及电子设备
KR102640232B1 (ko) 가상화 환경에서의 자원 할당 방법 및 장치
US9891954B2 (en) Cluster resource management in a virtualized computing environment
CN114489952A (zh) 队列分配方法及装置
US10223284B2 (en) Flexible I/O DMA address allocation in virtualized systems
CN114281516A (zh) 一种基于numa属性的资源分配方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16817009

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16817009

Country of ref document: EP

Kind code of ref document: A1