CN106445631B - Method and system for deploying virtual machine and physical server - Google Patents
Method and system for deploying virtual machine and physical server Download PDFInfo
- Publication number
- CN106445631B CN106445631B CN201610740515.4A CN201610740515A CN106445631B CN 106445631 B CN106445631 B CN 106445631B CN 201610740515 A CN201610740515 A CN 201610740515A CN 106445631 B CN106445631 B CN 106445631B
- Authority
- CN
- China
- Prior art keywords
- physical server
- physical
- binding
- servers
- virtual machine
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45562—Creating, deleting, cloning virtual machine instances
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/503—Resource availability
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Hardware Redundancy (AREA)
- Computer And Data Communications (AREA)
Abstract
本发明公开了一种布署虚拟机的方法、系统以及物理服务器,所述方法包括:在多个物理服务器中,确定存在空闲资源的物理服务器;在存在空闲资源的物理服务器中未查找到满足所有第一约束性规则的物理服务器时,确定目标物理服务器,所述目标物理服务器满足所述至少一个第一约束性规则中的部分第一约束性规则,或所述目标物理服务器不满足所述至少一个第一约束性规则中的任一第一约束性规则;将所述待部署虚拟机布署在所述目标物理服务器中;采用本发明提供的布署虚拟机的方法、系统以及物理服务器,可提高物理服务器的利用率。
The invention discloses a method, a system and a physical server for deploying virtual machines. The method includes: among multiple physical servers, determining a physical server with idle resources; When all the physical servers of the first binding rule, determine the target physical server, the target physical server satisfies some of the first binding rules in the at least one first binding rule, or the target physical server does not meet the Any one of at least one first binding rule; deploying the virtual machine to be deployed in the target physical server; adopting the method, system and physical server for deploying a virtual machine provided by the present invention , which can improve the utilization of physical servers.
Description
技术领域technical field
本发明涉及虚拟机技术领域,尤其涉及一种部署虚拟机的方法、系统以及物理服务器。The present invention relates to the technical field of virtual machines, and in particular, to a method, a system and a physical server for deploying a virtual machine.
背景技术Background technique
随着互联网的飞速发展,云计算应运而生;所谓云计算是一种计算模式,如图1所示,云计算系统,主要由云计算平台和客户端组成;云计算平台用于统一提供物理服务器虚拟化后的资源,且可根据客户端的需求,为客户端分配资源。如图2所示,云计算平台上通常部署有调度系统,云计算平台部署虚拟机的具体实现是:该调度系统在物理服务器中布署虚拟机。With the rapid development of the Internet, cloud computing came into being; the so-called cloud computing is a computing model, as shown in Figure 1, the cloud computing system is mainly composed of a cloud computing platform and a client; the cloud computing platform is used to provide a unified physical The virtualized resources of the server can be allocated to the client according to the needs of the client. As shown in FIG. 2 , a scheduling system is usually deployed on the cloud computing platform, and the specific implementation of deploying virtual machines on the cloud computing platform is: the scheduling system deploys virtual machines in physical servers.
目前,在虚拟机布署前,通常会预先为每个虚拟机设置一种约束性规则;云计算平台的调度系统一般采用下述方法,布置虚拟机:首先确定云计算系统中存在空闲资源的物理服务器,然后获取待布署虚拟机所具有的约束性规则,根据所述约束性规则,从存在空闲资源的物理服务器中,查找满足约束性规则的物理服务器;最后,将待布署虚拟机布署在查找出的物理服务器中;当然,如果此时未查找到满足约束性规则的物理服务器,则待布署虚拟机的布署失败,不再布署该虚拟机。At present, before the virtual machine is deployed, a binding rule is usually set for each virtual machine in advance; the scheduling system of the cloud computing platform generally adopts the following method to arrange the virtual machine: First, determine whether there are idle resources in the cloud computing system. physical server, and then obtain the binding rules of the virtual machine to be deployed, according to the binding rules, from the physical servers with idle resources, find the physical server that satisfies the binding rules; finally, the virtual machine to be deployed is It is deployed in the found physical server; of course, if no physical server that satisfies the binding rule is found at this time, the deployment of the virtual machine to be deployed fails, and the virtual machine is no longer deployed.
但是在实际应用中,采用上述布署方法,可能会出现未查找到符合条件的物理服务器,但存在有空闲资源的物理服务器的情况,从而造成资源的浪费。比如,如图3所示,云计算系统提供3个物理服务器,而每个物理服务器最多可部署4个虚拟机,且在物理服务器1中已布署有虚拟机1,还剩余三个空闲资源;物理服务器2中已布署有虚拟机2,也还剩余三个空闲资源,而物理服务器3中已部署有虚拟机3、虚拟机4、虚拟机5和虚拟机6,未有空闲资源;而此时,如果物理服务器1故障,导致虚拟机1也故障,而调度系统为了保证虚拟机1的正常运行,需重新部署虚拟机1,且虚拟机1预设的约束性规则为与虚拟机2不能部署在同一个物理服务器上,那么此时,调度系统,采用上述布署方法,将查询出存在空闲资源的物理服务器为物理服务器2,但由于物理服务器2中已部署有虚拟机2,并不满足虚拟机1的约束性规则,因此,此时虚拟机1并不能布署在物理服务器2上,虚拟机1的重建过程失败。However, in practical applications, using the above deployment method, there may be a situation in which physical servers that meet the conditions may not be found, but there are physical servers with idle resources, resulting in a waste of resources. For example, as shown in Figure 3, the cloud computing system provides 3 physical servers, and each physical server can deploy up to 4 virtual machines, and
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种布署虚拟机的方法、系统以及物理服务器,以提高物理服务器的利用率。Embodiments of the present invention provide a method, a system and a physical server for deploying a virtual machine, so as to improve the utilization rate of the physical server.
第一方面,提供一种布署虚拟机的方法,至少一个第一约束性规则作为调度系统选择用于部署待部署虚拟机的物理服务器的第一依据,上述方法包括:在多个物理服务器中,确定存在空闲资源的物理服务器;在存在空闲资源的物理服务器中未查找到满足所有第一约束性规则的物理服务器时,确定目标物理服务器,目标物理服务器满足至少一个第一约束性规则中的部分第一约束性规则,或目标物理服务器不满足至少一个第一约束性规则中的任一第一约束性规则;将待部署虚拟机布署在目标物理服务器中。In a first aspect, a method for deploying a virtual machine is provided, wherein at least one first binding rule is used as a first basis for a scheduling system to select a physical server for deploying a virtual machine to be deployed, and the method includes: among a plurality of physical servers , determine that there are physical servers with idle resources; when no physical servers that satisfy all the first binding rules are found in the physical servers that have idle resources, determine the target physical server, and the target physical server satisfies at least one of the first binding rules. Some of the first binding rules, or the target physical server does not satisfy any one of the at least one first binding rule; deploy the virtual machine to be deployed on the target physical server.
由于在本发明实施例中,在存在空闲资源的物理服务器中,未查找出满足所有第一约束性规则的物理服务器时,会在存在空闲资源的物理服务器中,确定目标物理服务器,然后将待部署虚拟机布署在目标物理服务器中;那么,采用本发明的方法,提高了在物理服务器部署虚拟机的成功率,从而提高了物理服务器的资源利用率。Because in this embodiment of the present invention, when a physical server that satisfies all the first binding rules is not found among the physical servers that have idle resources, the target physical server will be determined among the physical servers that have idle resources, and then the target physical server will be determined. The virtual machine is deployed in the target physical server; then, the method of the present invention improves the success rate of deploying the virtual machine on the physical server, thereby improving the resource utilization rate of the physical server.
结合第一方面,在第一种可能的实现方式中,第一约束性规则的个数为一个,在存在空闲资源的物理服务器中未查找到满足所有第一约束性规则的物理服务器时,确定目标物理服务器,包括:在存在空闲资源的物理服务器中未查找到满足第一约束性规则的物理服务器时,在存在空闲资源的物理服务器中选择任一物理服务器作为目标物理服务器。在具有设置一个第一约束性规则时,采用上述方法,可提高物理服务器的资源利用率。With reference to the first aspect, in a first possible implementation manner, the number of the first binding rules is one, and when no physical servers that satisfy all the first binding rules are found in the physical servers with idle resources, determine The target physical server includes: selecting any physical server from the physical servers with idle resources as the target physical server when no physical server satisfying the first binding rule is found in the physical servers with idle resources. When a first restrictive rule is set, the above method can improve the resource utilization of the physical server.
结合第一方面,在第二种可能的实现方式中,第一约束性规则的个数为M个,M为大于或等于2的正整数,M个第一约束性规则具有优先级;在存在空闲资源的物理服务器中未查找到满足所有第一约束性规则的物理服务器时,确定目标物理服务器,包括:在存在空闲资源的物理服务器中,按照M个第一约束性规则的优先级,逐个匹配第一约束性规则来筛选物理服务器;若匹配第I个第一约束性规则筛选到第一物理服务器,并且匹配第I个第一约束性规则的次优先级的第一约束性规则未从第一物理服务器中筛选到物理服务器,则从第一物理服务器中选择任一物理服务器作为目标物理服务器。在具有设置多个第一约束性规则时,采用上述方法,可提高物理服务器的资源利用率。With reference to the first aspect, in a second possible implementation manner, the number of the first binding rules is M, where M is a positive integer greater than or equal to 2, and the M first binding rules have priority; When a physical server that satisfies all the first binding rules is not found in the physical servers with idle resources, determining the target physical server, including: among the physical servers with idle resources, according to the priority of the M first binding rules, one by one The physical server is filtered by matching the first binding rule; if the first binding rule matching the first binding rule is filtered to the first physical server, and the first binding rule matching the second priority of the first binding rule is not selected from the first binding rule If a physical server is selected from the first physical servers, any physical server is selected from the first physical servers as the target physical server. When multiple first restrictive rules are set, the above method can improve the resource utilization of the physical server.
结合第一方面、第一方面的第一种可能的实现方式或第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,上述方法还包括:在存在空闲资源的物理服务器中,查找满足至少一个第一约束性规则中所有第一约束性规则的物理服务器;在查找出满足至少一个第一约束性规则中所有第一约束性规则的物理服务器时,将待部署虚拟机部署在满足所有第一约束性规则的物理服务器中。With reference to the first aspect, the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the above method further includes: Among the physical servers with idle resources, search for physical servers that satisfy all the first restrictive rules in the at least one first restrictive rule; when finding out the physical servers that satisfy all the first restrictive rules in the at least one first restrictive rule, The virtual machines to be deployed are deployed in physical servers that satisfy all the first binding rules.
结合第一方面、第一方面的第一种可能的实现方式、第一方面的第二种可能的实现方式或第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,在存在空闲资源的物理服务器中未查找到满足所有第一约束性规则的物理服务器时,确定目标物理服务器之前,上述方法还包括:在存在空闲资源的物理服务器中,查找满足第二约束性规则的物理服务器,第二约束性规则作为选择用于部署待部署虚拟机的物理服务器的第二依据;在满足第二约束性规则的物理服务器中,查找满足第一约束性规则的物理服务器。在本发明实施例中,在虚拟机部署时,用户根据需求,也可设置物理服务器必须要满足的第二约束性规则,从而使得虚拟机约束性规则的设置更加灵活。In combination with the first aspect, the first possible implementation manner of the first aspect, the second possible implementation manner of the first aspect, or the third possible implementation manner of the first aspect, the fourth possible implementation manner of the first aspect In the implementation of the method, when a physical server that satisfies all the first binding rules is not found in the physical servers that have idle resources, before determining the target physical server, the above method further includes: in the physical servers that have idle resources, searching for a physical server that satisfies all the first binding rules The physical server of the second binding rule, the second binding rule is used as the second basis for selecting the physical server for deploying the virtual machine to be deployed; in the physical server that satisfies the second binding rule, find the physical server that satisfies the first binding rule physical server. In the embodiment of the present invention, when the virtual machine is deployed, the user can also set the second binding rule that the physical server must satisfy according to the requirements, thereby making the setting of the binding rule of the virtual machine more flexible.
第二方面,本发明提供一种布署虚拟机的调度系统,云计算平台部署在至少一个物理服务器上,云计算平台包括调度系统;至少一个第一约束性规则作为选择用于部署待部署虚拟机的物理服务器的第一依据,上述调度系统包括:空闲资源确定单元,用于在多个物理服务器中,确定存在空闲资源的物理服务器;目标物理服务器确定单元,用于在存在空闲资源的物理服务器中未查找到满足所有第一约束性规则的物理服务器时,确定目标物理服务器,目标物理服务器满足至少一个第一约束性规则中的部分第一约束性规则,或目标物理服务器不满足至少一个第一约束性规则中的任一第一约束性规则;第一布署单元,用于将待部署虚拟机布署在目标物理服务器中。In a second aspect, the present invention provides a scheduling system for deploying virtual machines. A cloud computing platform is deployed on at least one physical server, and the cloud computing platform includes a scheduling system; at least one first binding rule is selected for deploying virtual machines to be deployed. The first basis for the physical server of the computer, the above-mentioned scheduling system includes: an idle resource determination unit, used for determining a physical server with idle resources among a plurality of physical servers; a target physical server determination unit, used for physical servers with idle resources. When a physical server that satisfies all the first binding rules is not found in the servers, the target physical server is determined, the target physical server satisfies some of the first binding rules in at least one first binding rule, or the target physical server does not meet at least one Any one of the first binding rules; a first deployment unit, configured to deploy the virtual machine to be deployed in the target physical server.
由于在本发明实施例中,在存在空闲资源的物理服务器中,未查找出满足所有第一约束性规则的物理服务器时,会在存在空闲资源的物理服务器中,确定目标物理服务器,然后将待部署虚拟机布署在目标物理服务器中;那么,采用本发明的系统,提高了在物理服务器部署虚拟机的成功率,从而提高了物理服务器的资源利用率。Because in this embodiment of the present invention, when a physical server that satisfies all the first binding rules is not found among the physical servers that have idle resources, the target physical server will be determined among the physical servers that have idle resources, and then the target physical server will be determined. The virtual machine is deployed in the target physical server; then, the system of the present invention improves the success rate of deploying the virtual machine on the physical server, thereby improving the resource utilization rate of the physical server.
结合第二方面,在第一种可能的实现方式中,在第一约束性规则的个数为一个时,上述目标物理服务器确定单元,具体用于:在存在空闲资源的物理服务器中未查找到满足第一约束性规则的物理服务器时,在存在空闲资源的物理服务器中选择任一物理服务器作为目标物理服务器。在具有设置一个第一约束性规则时,采用上述系统,可提高物理服务器的资源利用率。With reference to the second aspect, in a first possible implementation manner, when the number of the first binding rules is one, the above-mentioned target physical server determination unit is specifically used for: not finding a physical server with idle resources When a physical server satisfies the first binding rule, select any physical server as the target physical server among the physical servers with idle resources. When a first restrictive rule is set, the above-mentioned system can improve the resource utilization rate of the physical server.
结合第二方面,在第二种可能的实现方式中,第一约束性规则的个数为M个,M为大于或等于2的正整数,M个第一约束性规则具有优先级;上述目标物理服务器确定单元,具体用于:在存在空闲资源的物理服务器中,按照M个第一约束性规则的优先级,逐个匹配第一约束性规则来筛选物理服务器;若匹配第I个第一约束性规则筛选到第一物理服务器,并且匹配第I个第一约束性规则的次优先级的第一约束性规则未从第一物理服务器中筛选到物理服务器,则从第一物理服务器中选择任一物理服务器作为目标物理服务器。在具有设置多个第一约束性规则时,采用上述系统,可提高物理服务器的资源利用率。With reference to the second aspect, in the second possible implementation manner, the number of the first binding rules is M, where M is a positive integer greater than or equal to 2, and the M first binding rules have priority; the above goal The physical server determination unit is specifically used for: in the physical server with idle resources, according to the priority of the M first binding rules, one by one matching the first binding rules to filter the physical servers; The first physical server is selected from the first physical server, and the first binding rule matching the second priority of the first first binding rule is not selected from the first physical server, then any physical server is selected from the first physical server. A physical server serves as the target physical server. When multiple first restrictive rules are set, the above-mentioned system can improve the resource utilization rate of the physical server.
结合第二方面、第二方面的第一种可能的实现方式、第二方面的第二种可能的实现方式,在第三种可能的实现方式中,上述调度系统还包括:第一查找单元,用于在存在空闲资源的物理服务器中,查找满足至少一个第一约束性规则中所有第一约束性规则的物理服务器;第二布署单元,用于在查找出满足至少一个第一约束性规则中所有第一约束性规则的物理服务器时,将待部署虚拟机部署在满足所有第一约束性规则的物理服务器中。In combination with the second aspect, the first possible implementation manner of the second aspect, and the second possible implementation manner of the second aspect, in a third possible implementation manner, the scheduling system further includes: a first search unit, is used to search for physical servers that satisfy all the first restrictive rules in the at least one first restrictive rule among the physical servers that have idle resources; the second deployment unit is used to find out the physical servers that satisfy the at least one first restrictive rule When the physical servers that meet all the first binding rules are in, deploy the virtual machine to be deployed on the physical servers that satisfy all the first binding rules.
结合第二方面、第二方面的第一种可能的实现方式、第二方面的第二种可能的实现方式或第二方面的第三种可能的实现方式,在第四种可能的实现方式中,上述调度系统还包括:第二查找单元,用于在存在空闲资源的物理服务器中,查找满足第二约束性规则的物理服务器,第二约束性规则作为选择用于部署待部署虚拟机的物理服务器的第二依据;第三查找单元,用于在满足第二约束性规则的物理服务器中,查找满足第一约束性规则的物理服务器。在本发明实施例中,在虚拟机部署时,用户根据需求,也可设置物理服务器必须要满足的第二约束性规则,从而使得虚拟机约束性规则的设置更加灵活。In combination with the second aspect, the first possible implementation manner of the second aspect, the second possible implementation manner of the second aspect, or the third possible implementation manner of the second aspect, in the fourth possible implementation manner , the above-mentioned scheduling system further includes: a second search unit, used to search for a physical server that satisfies a second binding rule among the physical servers with idle resources, and the second binding rule is used to select the physical server for deploying the virtual machine to be deployed. The second basis of the server; the third search unit is configured to search for a physical server that satisfies the first binding rule among the physical servers that meet the second binding rule. In the embodiment of the present invention, when the virtual machine is deployed, the user can also set the second binding rule that the physical server must satisfy according to the requirements, thereby making the setting of the binding rule of the virtual machine more flexible.
第三方面,本发明还提供一种物理服务器,该物理服务器包括至少一个处理器、存储器和通信接口;至少一个处理器、存储器和通信接口均通过总线连接;存储器,用于存储计算机执行指令;至少一个处理器,用于执行存储器存储的计算机执行指令,使得物理服务器执行第一方面或者第一方面的各种可能设计提供的布署虚拟机的方法,或者使得物理服务器通过通信接口与云计算系统包括的其它物理服务器进行数据交互来执行第一方面或者第一方面的各种可能设计提供的布署虚拟机的方法。采用上述物理服务器,可提高在物理服务器部署虚拟机的成功率,从而提高物理服务器的资源利用率。In a third aspect, the present invention also provides a physical server, the physical server includes at least one processor, memory and communication interface; at least one processor, memory and communication interface are all connected through a bus; the memory is used for storing computer execution instructions; At least one processor for executing computer-executed instructions stored in the memory, so that the physical server executes the method for deploying a virtual machine provided by the first aspect or various possible designs of the first aspect, or enables the physical server to communicate with cloud computing through a communication interface Other physical servers included in the system perform data interaction to execute the first aspect or the method for deploying a virtual machine provided by various possible designs of the first aspect. By using the above physical server, the success rate of deploying virtual machines on the physical server can be improved, thereby improving the resource utilization rate of the physical server.
第四方面,提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,当物理服务器的至少一个处理器执行该计算机执行指令时,物理服务器执行上述第一方面或者第一方面的各种可能设计提供的布署虚拟机的方法。采用上述计算机可读介质,可提高在物理服务器部署虚拟机的成功率,从而提高物理服务器的资源利用率。A fourth aspect provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when at least one processor of a physical server executes the computer-executable instructions, the physical server executes the first aspect or the first Various possible designs of aspects provide methods of deploying virtual machines. By using the above computer-readable medium, the success rate of deploying a virtual machine on a physical server can be improved, thereby improving the resource utilization rate of the physical server.
第五方面,提供一种计算机程序产品,该计算机程序产品包括计算机执行指令,该计算机执行指令存储在计算机可读存储介质中。物理服务器的至少一个处理器可以从计算机可读存储介质读取该计算机执行指令,至少一个处理器执行该计算机执行指令使得物理服务器实施上述第一方面或者第一方面的各种可能设计提供的布署虚拟机的方法。采用上述计算机程序产品,可提高在物理服务器部署虚拟机的成功率,从而提高物理服务器的资源利用率。In a fifth aspect, a computer program product is provided, the computer program product comprising computer-executable instructions stored in a computer-readable storage medium. At least one processor of the physical server can read the computer-executable instructions from the computer-readable storage medium, and the at least one processor executes the computer-executable instructions to cause the physical server to implement the first aspect or the configuration provided by various possible designs of the first aspect. method for deploying virtual machines. By using the above computer program product, the success rate of deploying a virtual machine on a physical server can be improved, thereby improving the resource utilization rate of the physical server.
由于在本发明实施例中,在存在空闲资源的物理服务器中,未查找出满足所有第一约束性规则的物理服务器时,会在存在空闲资源的物理服务器中,确定目标物理服务器,然后将待部署虚拟机布署在目标物理服务器中;那么,采用本发明的方法,提高了在物理服务器中部署虚拟机的成功率,从而提高了物理服务器的资源利用率。Because in this embodiment of the present invention, when a physical server that satisfies all the first binding rules is not found among the physical servers that have idle resources, the target physical server will be determined among the physical servers that have idle resources, and then the target physical server will be determined. The virtual machine is deployed in the target physical server; then, the method of the present invention improves the success rate of deploying the virtual machine in the physical server, thereby improving the resource utilization rate of the physical server.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained according to these drawings.
图1为本发明实施例提供的云计算系统的示意图;1 is a schematic diagram of a cloud computing system provided by an embodiment of the present invention;
图2为本发明实施例提供的云计算系统的又一示意图;2 is another schematic diagram of a cloud computing system provided by an embodiment of the present invention;
图3为本发明实施例提供的云计算系统的又一示意图;3 is another schematic diagram of a cloud computing system provided by an embodiment of the present invention;
图4为本发明实施例提供的布署虚拟机的方法的一流程示意图;4 is a schematic flowchart of a method for deploying a virtual machine according to an embodiment of the present invention;
图5为本发明实施例提供的布署虚拟机的方法的又一流程示意图;5 is another schematic flowchart of a method for deploying a virtual machine according to an embodiment of the present invention;
图6为本发明实施例提供的云计算系统的又一示意图;6 is another schematic diagram of a cloud computing system provided by an embodiment of the present invention;
图7为本发明实施例提供的调度系统的结构示意图;FIG. 7 is a schematic structural diagram of a scheduling system provided by an embodiment of the present invention;
图8为本发明实施例提供的一种物理服务器。FIG. 8 is a physical server provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,并不是全部的实施例。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments.
本发明首先提供一种布署虚拟机的方法,该方法的应用场景具体如下:The present invention first provides a method for deploying virtual machines, and the application scenarios of the method are as follows:
对物理服务器和物理网络等物理资源进行资源虚拟化,利用云计算(CloudComputing)技术搭建云计算系统,云计算平台作为该云计算系统的管理中心,可以在物理服务器上部署虚拟机(Virtual Machine,简称VM)、部署虚拟网络、部署虚拟交换机等。Resource virtualization is performed on physical resources such as physical servers and physical networks, and cloud computing technology is used to build a cloud computing system. As the management center of the cloud computing system, the cloud computing platform can deploy virtual machines (Virtual Machines) on physical servers. VM for short), deploying virtual networks, deploying virtual switches, etc.
如图1所示,云计算系统,主要由云计算平台和客户端组成;云计算平台用于统一提供物理服务器虚拟化后的资源,且可根据客户端的需求,为客户端分配资源。As shown in Figure 1, a cloud computing system is mainly composed of a cloud computing platform and a client; the cloud computing platform is used to uniformly provide resources after physical server virtualization, and can allocate resources to clients according to the needs of clients.
如图2所示,云计算平台上部署有调度系统;云计算平台部署虚拟机的具体实现是:该调度系统在物理服务器中布署虚拟机。例如,调度系统可以接收客户端的指令,根据客户端的指令部署相应的虚拟机供客户端使用。As shown in Figure 2, a scheduling system is deployed on the cloud computing platform; the specific implementation of deploying virtual machines on the cloud computing platform is: the scheduling system deploys virtual machines in physical servers. For example, the scheduling system may receive an instruction from the client, and deploy a corresponding virtual machine for the client to use according to the instruction from the client.
通常,调度系统在虚拟机的创建、迁移以及HA(High Available,高可用)等过程中,均需要在物理服务器中布署虚拟机。其中,虚拟机的创建过程是指将一个新创建的虚拟机布署到物理服务器的过程;所述虚拟机的迁移过程是指由于对一物理服务器进行重新规划等原因,需将该物理服务器中的虚拟机,迁移到云计算系统资源池的其它物理服务器的过程,在虚拟机的迁移过程中,需迁移的虚拟机可正常运行,客户端不能获知该迁移过程;虚拟机的HA过程是指由于云计算系统中的一物理服务器故障,导致该物理服务器上的所有虚拟机均故障,在云计算系统的资源池中选择其它物理服务器,布署故障虚拟机的过程。可见,在上述创建的过程中,需将新创建的虚拟机布署在物理服务器中,而在上述迁移以及HA等过程中,需将待迁移以及故障虚拟机重新布署在物理服务器中。而在现有技术中,对上述新建虚拟机、待迁移虚拟机以及故障虚拟机的布署过程是相同的;在本发明中,为了方便说明,将上述新建虚拟机、待迁移虚拟机以及故障虚拟机统称为待布署虚拟机。Usually, the scheduling system needs to deploy the virtual machine on the physical server during the process of creating, migrating, and HA (High Availability) of the virtual machine. The process of creating a virtual machine refers to the process of deploying a newly created virtual machine to a physical server; the process of migrating a virtual machine refers to the process of re-planning a physical server, which needs to be stored in the physical server. In the process of migrating the virtual machine to other physical servers in the cloud computing system resource pool, during the virtual machine migration process, the virtual machine to be migrated can run normally, and the client cannot know the migration process; the HA process of the virtual machine refers to Due to the failure of a physical server in the cloud computing system, all virtual machines on the physical server are faulty. The process of selecting other physical servers in the resource pool of the cloud computing system and deploying the failed virtual machines. It can be seen that in the above creation process, the newly created virtual machine needs to be deployed on the physical server, and in the above migration and HA process, the to-be-migrated and faulty virtual machines need to be redeployed in the physical server. In the prior art, the deployment process of the above-mentioned newly-created virtual machine, the virtual machine to be migrated, and the faulty virtual machine are the same; The virtual machines are collectively referred to as the virtual machines to be deployed.
在现有技术中,为了满足业务性能或可靠性需求,一般为每个虚拟机设置一种约束性规则,该约束性规则可约束虚拟机的布署。目前,云计算平台的调度系统一般采用下述方法,布置虚拟机:首先确定云计算系统中存在空闲资源的物理服务器,然后获取待布署虚拟机所预设的约束性规则,根据所述约束性规则,从存在空闲资源的物理服务器中,查找满足约束性规则的物理服务器;最后,将待布署虚拟机布署在查找出的物理服务器中;当然,如果此时未查找到满足约束性规则的物理服务器,则待布署虚拟机的布署失败,不再布署该虚拟机。采用上述布署方法,有可能会出现未查找到满足约束性规则的物理服务器,但仍存在空闲资源物理服务器的情况,从而造成资源的浪费。比如,如图3所示,一云计算系统提供3个物理服务器,而每个物理服务器最多可部署4个虚拟机,且在物理服务器1中已布署有虚拟机1,还剩余三个空闲资源;物理服务器2中已布署有虚拟机2,也还剩余三个空闲资源,而物理服务器3中已部署有虚拟机3、虚拟机4、虚拟机5和虚拟机6,未有空闲资源;而此时,如果物理服务器1故障,导致虚拟机1也故障,而调度系统为了保证虚拟机1的正常运行,启动上述HA过程,重新在物理服务器中部署虚拟机1;同时,假设为虚拟机1预设的约束性规则是与虚拟机2不能部署在同一个物理服务器上,而调度系统采用上述布署方法查询出存在空闲资源的物理服务器为物理服务器2,但由于物理服务器2中已部署有虚拟机2,并不满足虚拟机1的约束性规则,因此,此时虚拟机1并不能布署在物理服务器2上,虚拟机1的HA过程失败。In the prior art, in order to meet service performance or reliability requirements, a constraint rule is generally set for each virtual machine, and the constraint rule can constrain the deployment of the virtual machine. At present, the scheduling system of the cloud computing platform generally adopts the following method to arrange the virtual machines: first, determine the physical servers with idle resources in the cloud computing system, and then obtain the preset binding rules for the virtual machines to be deployed, and according to the constraints According to the binding rules, find the physical servers that satisfy the binding rules from the physical servers with idle resources; finally, deploy the virtual machine to be deployed on the physical servers found; If the specified physical server is used, the deployment of the virtual machine to be deployed fails, and the virtual machine is no longer deployed. With the above deployment method, it is possible that no physical server that satisfies the binding rule is found, but there are still physical servers with idle resources, resulting in a waste of resources. For example, as shown in Figure 3, a cloud computing system provides 3 physical servers, and each physical server can deploy up to 4 virtual machines, and
实施例一Example 1
基于上述应用场景,本发明提供一种在物理服务器中布署虚拟机的方法,在该方法中,首先为待部署虚拟机设置一第一约束性规则,所述第一约束性规则可具体作为所述调度系统选择用于部署待部署虚拟机的物理服务器的第一依据,所述第一约束性规的数量可具体为一个或多个;这里为了方便区分不同的约束性规则,将约束性规则分为第一约束性规则和下述的第二约束性规则,而第一约束性规则可具体为物理服务器非必须满足的约束性规则,而关于第一约束性规则具体的内容,用户可自行设置。如图4所示,该方法,具体如下:Based on the above application scenario, the present invention provides a method for deploying a virtual machine in a physical server. In the method, a first binding rule is set for the virtual machine to be deployed, and the first binding rule can be specifically used as The scheduling system selects the first basis for deploying physical servers to be deployed virtual machines, and the number of the first binding rules may be one or more; here, for the convenience of distinguishing different binding rules, binding The rules are divided into first binding rules and the following second binding rules, and the first binding rules can be specifically binding rules that the physical server does not have to meet. For the specific content of the first binding rules, users can Set it up yourself. As shown in Figure 4, the method is as follows:
步骤S41:调度系统在云计算系统的多个物理服务器中,确定存在空闲资源的物理服务器。Step S41: The scheduling system determines, among the multiple physical servers in the cloud computing system, a physical server with idle resources.
具体地,确定待布署虚拟机对资源的需求,选择物理服务器的空闲资源满足该需求的物理服务器。其中,该资源,或者该空闲资源,具体可以包括计算资源、存储资源以及网络资源等软硬件资源的任一种或者任几种的组合。Specifically, the resource requirement of the virtual machine to be deployed is determined, and a physical server whose idle resources of the physical server meet the requirement is selected. The resource, or the idle resource, may specifically include any one or any combination of software and hardware resources such as computing resources, storage resources, and network resources.
举例说明,在对云计算系统中的物理服务器布署虚拟机前,会将每个物理服务器的中央处理器(CPU,Central Processing Unit)虚拟为多个vCPU(virtualCentralProcessing Unit,虚拟化中央处理器),比如可将一物理服务器的CPU虚拟为90个vCPU;在本发明实施例中,针对云计算系统中的任一物理服务器,可首先确定该物理服务器中的剩余vCPU资源是否能满足当前待布署虚拟机对vCPU的需求,如果能满足,则确定该物理服务器的vCPU资源满足需求,否则,确定该物理服务器不满足需求;然后,还需查看当前物理服务器的内存资源是否满足当前待部署虚拟机对内存的需求,比如,当前待部署虚拟机需要占用8G的内存,那么需具体查看该物理服务器的剩余内存是否大于8G,如果大于8G,确定当前物理服务器的内存满足需求;在物理服务器的剩余vCPU资源和剩余内存资源均满足虚拟机的需求时,确定该物理服务器存在空闲资源。For example, before deploying virtual machines to physical servers in a cloud computing system, the central processing unit (CPU, Central Processing Unit) of each physical server is virtualized into multiple vCPUs (virtual Central Processing Unit, virtualized central processing unit). For example, the CPU of a physical server can be virtualized into 90 vCPUs; in the embodiment of the present invention, for any physical server in the cloud computing system, it can be first determined whether the remaining vCPU resources in the physical server can meet the current to-be-deployed The vCPU requirements of the virtual machine to be deployed are determined. If the vCPU resources of the physical server can be satisfied, it is determined that the vCPU resources of the physical server meet the requirements. Otherwise, it is determined that the physical server does not meet the requirements. For example, if the current virtual machine to be deployed needs to occupy 8G of memory, you need to check whether the remaining memory of the physical server is greater than 8G. If it is greater than 8G, determine that the current physical server memory meets the requirements; When the remaining vCPU resources and remaining memory resources meet the requirements of the virtual machine, it is determined that the physical server has idle resources.
步骤S42:调度系统判断在存在空闲资源的物理服务器中,是否存在满足所有第一约束性规则的物理服务器;如果存在,执行步骤S43;否则,执行步骤S44。Step S42: The scheduling system judges whether there are physical servers that satisfy all the first binding rules among the physical servers with idle resources; if so, go to step S43; otherwise, go to step S44.
在本发明实施例中,所述第一约束性规则可具体为以下任一种规则或者以下任几种规则的组合:虚拟机vCPU核绑定规则、虚拟机NUMA(Non UniformMemory AccessAchitecture,非均匀访问内存模型)规则、虚拟机组互斥规则或虚拟机与物理服务器的关联规则等。所述云计算系统中物理服务器的CPU可以是多核的,所述多核是该CPU有多个处理核心,而每个核在任一时刻单独处理一个任务;而vCPU一般需绑定在物理服务器CPU的核上进行运行,而且vCPU一旦绑定了CPU的某个核,即对该核有独占性;设置虚拟机vCPU核绑定规则,是为了确保部署虚拟机的物理服务器中存在可供vCPU绑定的核;在云计算系统的物理服务器,一般将中央处理器CPU的运行资源分为多块,将内存资源也分为多块,且将运行资源与内存资源进行配对,比如将运行资源分为运行资源A1、运行资源B1和运行资源C1三块;将内存资源分为内存资源A1、内存资源B1和内存资源C1,然后将运行资源A1和内存资源A1设置为一对,将运行资源B1和内存资源B1设置为一对,将运行资源C1和内存资源C1设置为一对;而虚拟机在运行时,需占用物理服务器中的一对或多对资源,设置虚拟机NUMA规则是为了确保部署虚拟机的物理服务器中存在满足虚拟机运行的配对资源;所述虚机组互斥规则是指规定两个虚拟机不能布署在同一个物理服务器中的规则,这样做主要为了保证虚拟机运行的可靠性。比如,虚拟机1的机组互斥规则为与虚拟机2不能运行在同一物理服务器上,因为虚拟机1和虚拟机2提供的功能相同;在虚拟机的创建过程中,并不会将虚拟机1和虚拟机2布署在同一物理服务器上,从而可避免由于一物理服务器故障,导致虚拟机1和虚拟机2均故障的情况发生,从而提高了虚拟机运行的可靠性。所述虚拟机与物理服务器的关联规则主要为了约束虚拟机所能布署的物理服务器的规则,比如虚拟机与物理服务器的关联规则为物理服务器1、物理服务器2以及物理服务器3,那么该虚拟机仅能布署在物理服务器1、物理服务器2或物理服务器3中。In this embodiment of the present invention, the first binding rule may be any one of the following rules or a combination of any of the following rules: a virtual machine vCPU core binding rule, a virtual machine NUMA (Non UniformMemory AccessAchitecture, non-uniform access architecture) memory model) rules, virtual machine group mutual exclusion rules, or association rules between virtual machines and physical servers, etc. The CPU of the physical server in the cloud computing system may be multi-core, and the multi-core means that the CPU has multiple processing cores, and each core processes a task independently at any time; while the vCPU generally needs to be bound to the CPU of the physical server. It runs on a core, and once a vCPU is bound to a certain core of the CPU, it has exclusive rights to the core; the binding rules for virtual machine vCPU cores are set to ensure that there are virtual machines available for vCPU binding on the physical server where the virtual machine is deployed. In the physical server of the cloud computing system, the operating resources of the central processing unit (CPU) are generally divided into multiple blocks, and the memory resources are also divided into multiple blocks, and the operating resources are paired with the memory resources. For example, the operating resources are divided into Running resource A1, running resource B1 and running resource C1; divide the memory resources into memory resource A1, memory resource B1 and memory resource C1, then set running resource A1 and memory resource A1 as a pair, and set running resource B1 and The memory resource B1 is set as a pair, and the running resource C1 and the memory resource C1 are set as a pair; and when the virtual machine is running, it needs to occupy one or more pairs of resources in the physical server, and the NUMA rule of the virtual machine is set to ensure the deployment. In the physical server of the virtual machine, there are paired resources that satisfy the operation of the virtual machine; the virtual machine group mutual exclusion rule refers to the rule that two virtual machines cannot be deployed in the same physical server, which is mainly to ensure that the virtual machine runs. reliability. For example, the group mutual exclusion rule of
步骤S43:调度系统将待部署虚拟机布署在满足所有第一约束性规则的物理服务器中。Step S43: The scheduling system deploys the virtual machines to be deployed in physical servers that satisfy all the first binding rules.
步骤S44:调度系统在存在空闲资源的物理服务器,确定目标物理服务器,所述目标物理服务器满足部分第一约束性规则,或不满足任一第一约束性规则。Step S44: The scheduling system determines a target physical server in a physical server with idle resources, and the target physical server satisfies some of the first binding rules, or does not meet any of the first binding rules.
步骤S45:调度系统将待部署虚拟机部署在所述目标物理服务器中。Step S45: The scheduling system deploys the virtual machine to be deployed in the target physical server.
由于在本发明实施例中,在存在空闲资源的物理服务器中,未查找出满足所有第一约束性规则的物理服务器时,会在存在空闲资源的物理服务器中,确定目标物理服务器,然后将待部署虚拟机布署在目标物理服务器中;那么,采用本发明的方法,提高了在物理服务器部署虚拟机的成功率,从而提高了物理服务器的资源利用率。Because in this embodiment of the present invention, when a physical server that satisfies all the first binding rules is not found among the physical servers that have idle resources, the target physical server will be determined among the physical servers that have idle resources, and then the target physical server will be determined. The virtual machine is deployed in the target physical server; then, the method of the present invention improves the success rate of deploying the virtual machine on the physical server, thereby improving the resource utilization rate of the physical server.
实施例二Embodiment 2
在本发明实施例中,可为待部署虚拟机仅预设一个第一约束性规则,那么,上述实施例中的步骤S44“在存在空闲资源的物理服务器,确定目标物理服务器”,可具体为:所述调度系统,在存在空闲资源的物理服务器,选择任一物理服务器作为目标物理服务器。In this embodiment of the present invention, only one first binding rule may be preset for the virtual machine to be deployed. Then, the step S44 in the above-mentioned embodiment of "determining a target physical server in a physical server with idle resources" may be specifically: : The scheduling system selects any physical server as the target physical server among the physical servers with idle resources.
举例说明,假设上述为待部署虚拟机所预设的仅一个第一约束性规则为第一约束性规则A,在实际应用中,调度系统的整个处理流程,可具体为:首先在云计算系统的所有物理服务器,查找存在空闲资源的物理服务器;然后,在存在空闲资源的物理服务器,查找满足上述第一约束性规则A的物理服务器;如果可查找到满足第一约束性规则A的物理服务器,那么将待部署虚拟机布署在该物理服务器中;如果未未查找到到满足第一约束性规则A的物理服务器,那么在存在空闲资源的物理服务器,选择任一物理服务器,然后将待部署虚拟机布署在该物理服务器中。For example, assuming that the above-mentioned only one first binding rule preset for the virtual machine to be deployed is the first binding rule A, in practical applications, the entire processing flow of the scheduling system can be specifically: firstly, in the cloud computing system All the physical servers in , search for physical servers with idle resources; then, in physical servers with idle resources, search for physical servers that satisfy the above-mentioned first restrictive rule A; if a physical server that satisfies the first restrictive rule A can be found , then deploy the virtual machine to be deployed in the physical server; if no physical server that satisfies the first binding rule A is found, then select any physical server with idle resources, and then The deployment virtual machine is deployed on this physical server.
由上可见,采用上述方法,提高了在物理服务器部署虚拟机的成功率,从而提高了物理服务器的资源利用率。It can be seen from the above that the above method improves the success rate of deploying virtual machines on the physical server, thereby improving the resource utilization rate of the physical server.
实施例三Embodiment 3
在本发明实施例中,可预设为待部署虚拟机设置M个第一约束性规则,分别为第一约束性规则1、第一约束性规则2,依次类推,直至第一约束性规则M,M为大于或等于2的整数;上述M个第一约束性规则可具体为按照优先级进行排序的,也就是第一约束性规则1的优先级要高于第二约束性规则2、第一约束性规则2的优先级要高于第一约束性规则3,依次类推,第一约束性规则I-1的优先级要高于第一约束性规则I,而上述不同约束性规则的优先级可具体由用户根据自身需求所设置的。In this embodiment of the present invention, M first binding rules can be preset for the virtual machine to be deployed, which are respectively the first
具体地,上述实施例中的步骤S44“在存在空闲资源的物理服务器中,确定目标物理服务器”可具体为:所述调度系统可在存在空闲资源的物理服务器中,按照所述M个第一约束性规则的优先级,逐个匹配所述第一约束性规则来筛选物理服务器;若匹配第I个所述第一约束性规则筛选到第一物理服务器、并且匹配第I个所述第一约束性规则的次优先级的所述第一约束性规则未从所述第一物理服务器中筛选到物理服务器,则所述调度系统从所述第一物理服务器中选择任一物理服务器作为所述目标物理服务器。Specifically, the step S44 in the above-mentioned embodiment of "determining the target physical server among the physical servers with idle resources" may be specifically as follows: the scheduling system may, among the physical servers with idle resources, determine the target physical server according to the M first The priority of the restrictive rules, one by one matching the first restrictive rules to filter physical servers; if the first restrictive rule matches the first physical server, and matches the first restriction If the first restrictive rule of the sub-priority of the sexual rule does not select a physical server from the first physical server, the scheduling system selects any physical server from the first physical server as the target physical server.
更具体地,针对第一个约束性规则1,上述实施例中的步骤S44“在存在空闲资源的物理服务器,确定目标物理服务器”可具体为:所述调度系统在存在空闲资源的物理服务器中,查找满足第一约束性规则1的物理服务器;所述调度系统在未查找到满足第一约束性规则1的物理服务器时,在所述存在空闲资源的物理服务器中,选择任一物理服务器作为所述目标物理服务器;More specifically, with respect to the first
针对第一约束性规则I,所述I为大于等于2小于等于M的正整数,上述实施例中的步骤S44“在存在空闲资源的物理服务器,确定目标物理服务器”可具体为:所述调度系统在满足第一约束性规则I-1的物理服务器中,查找满足第一约束性规则I的物理服务器;所述调度系统在未查找到满足第一约束性规则I的物理服务器时,将满足第一约束性规则I-1的物理服务器中的任一物理服务器作为所述目标物理服务器。For the first binding rule I, the I is a positive integer greater than or equal to 2 and less than or equal to M, the step S44 in the above embodiment "determine the target physical server in the physical server with idle resources" may be specifically: the scheduling The system searches for a physical server that satisfies the first restrictive rule I among the physical servers that satisfy the first restrictive rule I-1; when the scheduling system does not find a physical server that meets the first restrictive rule I, it will Any one of the physical servers in the first binding rule I-1 is used as the target physical server.
具体的,对于具有M个第一约束性规则的待部署虚拟机,云计算平台中的调度系统,整个处理流程具体如下:首先从云计算系统的多个物理服务器,确定存在空闲资源的物理服务器;然后,从存在空闲资源的物理服务器中,查找满足第一约束性规则1的物理服务器;如果能查找出满足第一约束性规则1的物理服务器,在满足第一约束性规则1的物理服务器中,查找满足第一约束性规则2的物理服务器;如果未查找到满足第一约束性规则1的物理服务器,则任意选择一存在空闲资源的物理服务器,然后将待部署虚拟机部署在所选择的物理服务器中;如果能查找出满足第一约束性规则1的物理服务器,则在满足第一约束性规则1的物理服务器中,继续查找满足第一约束性规则2的物理服务器,如果能查找出满足第一约束性规则2的物理服务器,则继续在满足第一约束性规则2的物理服务器中,查找满足第一约束性规则3的物理服务器,依次类推,直至查找至第一约束性规则M;当然,此时,如果采用上述方法,能查找出对第一约束性规则1至M均满足的物理服务器,则说明存在满足所有第一约束性规则的物理服务器,然后将待部署虚拟机布署在满足所有第一约束性规则的物理服务器上即可。Specifically, for the to-be-deployed virtual machine with M first binding rules, the entire processing flow of the scheduling system in the cloud computing platform is as follows: First, from multiple physical servers in the cloud computing system, determine the physical server that has idle resources ; Then, from the physical servers that have idle resources, find the physical server that satisfies the first
假设为一待部署虚拟机预设三个第一约束性规则,分别为第一约束性规则1,第一约束性规则2和第一约束性规则3,如图5所示,调度系统的整个处理流程,如下:Assume that three first binding rules are preset for a virtual machine to be deployed, namely first binding
步骤S51:从云计算系统的多个物理服务器,查找存在空闲资源的物理服务器;Step S51: from a plurality of physical servers of the cloud computing system, search for physical servers with idle resources;
步骤S52:判断在存在空闲资源的物理服务器中,能否查找出满足第一约束性规则1的物理服务器;如果能查找出,执行步骤S53,否执,执行步骤S56;Step S52: determine whether a physical server that satisfies the first
步骤S53:判断在满足第一约束性规则1的物理服务器中,能否查找出满足第一约束性规则2的物理服务器;如果能查找出,执行步骤S54;否则,执行步骤S57;Step S53: Determine whether a physical server that satisfies the first binding rule 2 can be found among the physical servers that satisfy the first
步骤S54:判断在满足第一约束性规则2的物理服务器中,能否查找出满足第一约束性规则3的物理服务器;如果能查找出,执行步骤S55;否则,执行步骤S58;Step S54: determine whether a physical server that satisfies the first binding rule 2 can be found among the physical servers that satisfy the first binding rule 2; if it can be found, go to step S55; otherwise, go to step S58;
步骤S55:在满足第一约束性规则3的物理服务器中,选择物理服务器,将待部署虚拟机布署在所选择的物理服务器内;Step S55: in the physical servers that satisfy the first binding rule 3, select a physical server, and deploy the virtual machine to be deployed in the selected physical server;
步骤S56:在存在空闲资源的物理服器中,选择物理服务器,将待部署虚拟机布署在所选择的物理服务器内;Step S56: in the physical servers with idle resources, select a physical server, and deploy the virtual machine to be deployed in the selected physical server;
步骤S57:在满足第一约束性规则1的物理服务器中,任意选择物理服务器,且将待部署虚拟机布署在该物理服务器内;Step S57: Among the physical servers that satisfy the first
步骤S58:在满足第一约束性规则2的物理服务器中,任意选择物理服务器,且将待部署虚拟机布署在该物理服务器内。Step S58: Among the physical servers that satisfy the first binding rule 2, a physical server is arbitrarily selected, and the virtual machine to be deployed is deployed in the physical server.
通过前述可知,第一约束性规则为非必须满足的约束性规则,在未查找到满足所有第一约束性规则的物理服务器时,采用上述方法,可查找出满足第一约束性规则最多的物理服务器,从而在节约资源的基础上,进一步优化虚拟机的布署。It can be seen from the foregoing that the first binding rule is a binding rule that does not have to be satisfied. When no physical server that satisfies all the first binding rules is found, the above method can be used to find the physical server that satisfies the most first binding rules. server, so as to further optimize the deployment of virtual machines on the basis of saving resources.
实施例四Embodiment 4
在本发明实施例中,除了为待布部署虚拟机设置第一约束性规则外,还可为待部署虚拟机设置第二约束性规则,所述第二约束性规则作为所述调度系统选择用于部署待部署虚拟机的物理服务器的第二依据,所述第二约束性规则为在部署虚拟机时,物理服务器必须要满足的规则;所述第二约束性规则的数量可为一个也可为多个,用户可自行设置。在本发明实施例中,所述第二约束性规则也可具体为为以下任一种规则或者以下任几种规则的组合:虚拟机vCPU核绑定规则、虚拟机NUMA规则、虚拟机组互斥规则或虚拟机与物理服务器的关联规则;而将上述规则设置为第一约束性规则还是设置为第二约束性规则,用户可根据自身需求,自行设置。In this embodiment of the present invention, in addition to setting a first restrictive rule for the virtual machine to be deployed, a second restrictive rule may also be set for the virtual machine to be deployed, and the second restrictive rule is used for selecting the scheduling system. The second basis for deploying the physical server of the virtual machine to be deployed, the second binding rule is a rule that must be satisfied by the physical server when deploying the virtual machine; the number of the second binding rule can be one or one For multiple, users can set by themselves. In this embodiment of the present invention, the second binding rule may also be any one of the following rules or a combination of any of the following rules: virtual machine vCPU core binding rule, virtual machine NUMA rule, virtual machine group mutual exclusion A rule or an association rule between a virtual machine and a physical server; and whether the above rule is set as the first binding rule or the second binding rule, users can set it according to their own needs.
而上述实施例一、实施例二和实施例三所记载的方法还可包括:所述调度系统在存在空闲资源的物理服务器中,查找满足第二约束性规则的物理服务器;所述调度系统在满足第二约束性规则的物理服务器中,查找满足所有第一约束性规则的物理服务器。The methods described in the first embodiment, the second embodiment and the third embodiment may further include: the scheduling system searches for a physical server that satisfies the second binding rule among the physical servers with idle resources; From the physical servers that satisfy the second binding rule, search for physical servers that satisfy all the first binding rules.
具体的,对于设置有第一约束性规则和第二约束性规则的待部署虚拟机,所述调度系统,可具体按照下述方式,对待部署虚拟机进行部署:首先在云计算系统的多个物理服务器中,查找存在空闲资源的物理服务器;然后,在存在空闲资源的物理服务器,查找满足第二约束性规则的物理服务器;如果未查找到满足第二约束性规则的物理服务器,则待部署虚拟机的布署失败,停止对待部署虚拟机进行部署;当上述第二约束性规则为多个时,由于所述第二约束性规则为物理服务器必须要满足的约束性规则,因此,查找出的物理服务器,需满足所有的第二约束性规则,当物理服务器不满足任一第二约束性规则时,待部署虚拟机的部署失败;如果查找出满足第二约束性规则的物理服务器,则在满足第二约束性规则的物理服务器,继续查找满足第一约束性规则的物理服务器;在第一约束性规则为一个时,可具体参见上述实施例二的说明,而在第一约束性规则为多个时,可具体参见上述实施例三的说明。Specifically, for the to-be-deployed virtual machine set with the first binding rule and the second binding rule, the scheduling system may deploy the to-be-deployed virtual machine in the following manner: In the physical server, search for a physical server with idle resources; then, in a physical server with idle resources, search for a physical server that satisfies the second binding rule; if no physical server that satisfies the second binding rule is found, it is to be deployed The deployment of the virtual machine fails, and the deployment of the virtual machine to be deployed is stopped; when there are multiple second binding rules, because the second binding rules are binding rules that must be satisfied by the physical server, find out The physical server needs to meet all the second binding rules. When the physical server does not meet any second binding rule, the deployment of the virtual machine to be deployed fails; if a physical server that meets the second binding rule is found, then On the physical server that satisfies the second binding rule, continue to search for the physical server that satisfies the first binding rule; when there is one first binding When there are more than one, please refer to the description of the third embodiment.
由上可见,在本发明实施例中,在虚拟机部署时,用户根据需求,也可设置物理服务器必须要满足的第二约束性规则,从而使得虚拟机约束性规则的设置更加灵活。It can be seen from the above that in this embodiment of the present invention, when deploying a virtual machine, the user can also set the second binding rule that the physical server must satisfy according to requirements, thereby making the setting of the binding rule for the virtual machine more flexible.
实施例五Embodiment 5
本发明还提供第二种布署虚拟机的方法,具体如下,仍可参照图6,服务器1故障,导致服务器1中的虚拟机1也出现故障,此时启动上述HA机制,在资源池中选择其它物理服务器,重新部署虚拟机1;而虚拟机所预设的第一约束性规则。可具体参见表1。The present invention also provides a second method for deploying virtual machines, the details are as follows, still referring to FIG. 6 , the failure of
表1虚拟机1的第一约束性规则Table 1 First Binding Rules for
在本发明实施例中,调度系统将首先确定存在空闲资源的物理服务器,通过图6可得出,物理服务器2与物理服务器3中均存在空闲资源;然后,根据虚拟机1预设的第一约束性规则,按照优先级高低,依次在物理服务器2和物理服务器3中查找,满足第一优先级“虚拟机vCPU核绑定规则”和第二优先级“虚拟机NUMA规则”的物理服务器,假设仅有物理服务器2均满足上述两个规则;此时调度系统,将继续查看物理服务器2是否满足第三优先级的“虚拟机组互斥规则”,但物理服务器2已布署有虚拟机2,不满足第三优先级的“虚拟机组互斥规则”,但此时物理服务器2是满足高优先级第一约束性规则最多的物理服务器,因此,将虚拟机1布署在物理服务器2中,从而保护了业务的可靠性。In the embodiment of the present invention, the scheduling system will first determine the physical servers with idle resources. From FIG. 6 , it can be concluded that there are idle resources in both the physical server 2 and the physical server 3; Binding rules, according to the priority, search in physical server 2 and physical server 3 in turn, and meet the first priority "virtual machine vCPU core binding rule" and the second priority "virtual machine NUMA rule" Physical server, Assume that only physical server 2 satisfies the above two rules; at this time, the scheduling system will continue to check whether physical server 2 satisfies the "virtual group mutual exclusion rule" of the third priority, but physical server 2 has already deployed virtual machine 2 , does not meet the "Virtual Group Mutual Exclusion Rule" of the third priority, but at this time physical server 2 is the physical server that satisfies the most high-priority first binding rules, therefore,
实施例六Embodiment 6
与上述方法相对应的,本发明还提供一种布署虚拟机的调度系统,所述云计算平台部署在多个物理服务器上,云计算平台包括调度系统;至少一个第一约束性规则作为选择用于部署待部署虚拟机的物理服务器的第一依据,如图7所示,调度系统700包括:Corresponding to the above method, the present invention also provides a scheduling system for deploying virtual machines, the cloud computing platform is deployed on a plurality of physical servers, and the cloud computing platform includes a scheduling system; at least one first binding rule is selected as the The first basis for deploying the physical server of the virtual machine to be deployed, as shown in FIG. 7 , the scheduling system 700 includes:
空闲资源确定单元71,用于在多个物理服务器中,确定存在空闲资源的物理服务器;An idle resource determining unit 71, configured to determine a physical server with idle resources among the plurality of physical servers;
目标物理服务器确定单元72,用于在存在空闲资源的物理服务器中未查找到满足所有第一约束性规则的物理服务器时,确定目标物理服务器,所述目标物理服务器满足所述至少一个第一约束性规则中的部分第一约束性规则,或所述目标物理服务器不满足所述至少一个第一约束性规则中的任一第一约束性规则;The target physical server determining unit 72 is configured to determine a target physical server when no physical server that satisfies all the first constraint rules is found in the physical servers with idle resources, and the target physical server satisfies the at least one first constraint part of the first binding rules in the binding rules, or the target physical server does not satisfy any one of the at least one first binding rules;
第一布署单元73,用于将所述待部署虚拟机布署在所述目标物理服务器中。The first deployment unit 73 is configured to deploy the to-be-deployed virtual machine in the target physical server.
可选的,在所述第一约束性规则的个数为一个时,所述目标物理服务器确定单元72,具体用于:在存在空闲资源的物理服务器中未查找到满足所述第一约束性规则的物理服务器时,在存在空闲资源的物理服务器中选择任一物理服务器作为所述目标物理服务器。Optionally, when the number of the first constraint rules is one, the target physical server determination unit 72 is specifically configured to: find no physical server that satisfies the first constraint in the physical servers with idle resources. When selecting the physical server of the rule, select any physical server as the target physical server among the physical servers with idle resources.
可选的,所述第一约束性规则的个数为M个,所述M为大于或等于2的正整数,M个第一约束性规则具有优先级;所述目标物理服务器确定单元72,可具体用于:在存在空闲资源的物理服务器中,按照所述M个第一约束性规则的优先级,逐个匹配所述第一约束性规则来筛选物理服务器;若匹配第I个所述第一约束性规则筛选到第一物理服务器,并且匹配第I个所述第一约束性规则的次优先级的所述第一约束性规则未从所述第一物理服务器中筛选到物理服务器,则从所述第一物理服务器中选择任一物理服务器作为所述目标物理服务器。Optionally, the number of the first binding rules is M, the M is a positive integer greater than or equal to 2, and the M first binding rules have priorities; the target physical server determining unit 72, It can be specifically used for: in a physical server with idle resources, according to the priority of the M first binding rules, one by one matching the first binding rules to filter physical servers; A binding rule is screened to the first physical server, and the first binding rule matching the sub-priority of the first one of the first binding rules is not screened to a physical server from the first physical server, then Any physical server is selected from the first physical servers as the target physical server.
可选的,调度系统700还包括:第一查找单元,用于在存在空闲资源的物理服务器中,查找满足所述至少一个第一约束性规则中所有第一约束性规则的物理服务器;第二布署单元,用于在查找出满足所述至少一个第一约束性规则中所有第一约束性规则的物理服务器时,将所述待部署虚拟机部署在所述满足所有第一约束性规则的物理服务器中。Optionally, the scheduling system 700 further includes: a first search unit, configured to search for physical servers that satisfy all the first restrictive rules in the at least one first restrictive rule among physical servers with idle resources; a second The deployment unit is configured to deploy the virtual machine to be deployed in the physical server that satisfies all the first binding rules in the at least one first binding rule in the physical server.
可选的,调度系统700还可包括:第二查找单元,用于在存在空闲资源的物理服务器中,查找满足第二约束性规则的物理服务器,所述第二约束性规则作为选择用于部署待部署虚拟机的物理服务器的第二依据;第三查找单元,用于在满足所述第二约束性规则的物理服务器中,查找满足所述第一约束性规则的物理服务器。Optionally, the scheduling system 700 may further include: a second search unit, configured to search for a physical server that satisfies a second binding rule among physical servers with idle resources, where the second binding rule is selected for deployment a second basis for the physical server on which the virtual machine is to be deployed; and a third search unit, configured to search for a physical server that satisfies the first binding rule among the physical servers that meet the second binding rule.
由于在本发明实施例中,在存在空闲资源的物理服务器中,未查找出满足所有第一约束性规则的物理服务器时,会在存在空闲资源的物理服务器中,确定目标物理服务器,然后将待部署虚拟机布署在目标物理服务器中;那么,采用本发明的调度系统,提高了在物理服务器部署虚拟机的成功率,从而提高了物理服务器的资源利用率。Because in this embodiment of the present invention, when a physical server that satisfies all the first binding rules is not found among the physical servers that have idle resources, the target physical server will be determined among the physical servers that have idle resources, and then the target physical server will be determined. The deployed virtual machine is deployed in the target physical server; then, using the scheduling system of the present invention improves the success rate of deploying the virtual machine on the physical server, thereby improving the resource utilization rate of the physical server.
实施例七Embodiment 7
云计算平台是部署在多个物理服务器上的,因此调度系统可以是部署在至少一个物理服务器上的,因此具体执行布署虚拟机的方法的硬件主体为物理服务器,实现上述调度系统的硬件主体也是物理服务器。因此与上述实施例相对应的,本发明还公开了一种物理服务器,所述物理服务器,如图8所示。The cloud computing platform is deployed on multiple physical servers, so the scheduling system can be deployed on at least one physical server. Therefore, the hardware subject for implementing the method for deploying virtual machines is the physical server, and the hardware subject implementing the above scheduling system is the physical server. Also a physical server. Therefore, corresponding to the above embodiments, the present invention also discloses a physical server, the physical server is shown in FIG. 8 .
物理服务器800包括至少一个处理器801、存储器802和通信接口803;所述至少一个处理器801、所述存储器802和所述通信接口803均通过总线804连接。The
所述存储器802,用于存储计算机执行指令。The
所述至少一个处理器801,用于执行所述存储器802存储的计算机执行指令,使得所述物理服务器800执行上述方法实施例提供的布署虚拟机的方法,或者使得所述物理服务器800实现调度系统的部分或者全部功能;或者,The at least one
所述至少一个处理器801,用于执行所述存储器802存储的计算机执行指令,使得所述物理服务器800通过所述通信接口803与云计算系统包括的其它物理服务器进行数据交互来执行上述方法实施例提供的布署虚拟机的方法,或者使得所述物理服务器800通过所述通信接口803与云计算系统包括的其它物理服务器进行数据交互来实现调度系统的部分或者全部功能。The at least one
至少一个处理器801,可以包括不同类型的处理器801,或者包括相同类型的处理器801;处理器801可以是以下的任一种:中央处理器(Central Processing Unit,简称CPU)、ARM处理器、现场可编程门阵列(Field Programmable Gate Array,简称FPGA)、专用处理器等具有计算处理能力的器件。一种可选实施方式,所述至少一个处理器801还可以集成为众核处理器。At least one
存储器802可以是以下的任一种或任一种组合:随机存取存储器(Random AccessMemory,简称RAM)、只读存储器(read only memory,简称ROM)、非易失性存储器(non-volatile memory,简称NVM)、固态硬盘(Solid State Drives,简称SSD)、机械硬盘、磁盘、磁盘整列等存储介质。The
通信接口803用于物理服务器800与其他设备(例如虚拟机系统中的其他物理服务器)进行数据交互。通信接口803可以是以下的任一种或任一种组合:网络接口(例如以太网接口)、无线网卡等具有网络接入功能的器件。The
该总线804可以包括地址总线、数据总线、控制总线等,为便于表示,图8用一条粗线表示该总线。总线804可以是以下的任一种或任一种组合:工业标准体系结构(IndustryStandard Architecture,简称ISA)总线、外设组件互连标准(Peripheral ComponentInterconnect,简称PCI)总线、扩展工业标准结构(Extended Industry StandardArchitecture,简称EISA)总线等有线数据传输的器件。The
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although preferred embodiments of the present invention have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment and all changes and modifications that fall within the scope of the present invention.
显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施例的精神和范围。这样,倘若本发明实施例的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. Thus, provided that these modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (9)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610740515.4A CN106445631B (en) | 2016-08-26 | 2016-08-26 | Method and system for deploying virtual machine and physical server |
PCT/CN2017/072988 WO2018036104A1 (en) | 2016-08-26 | 2017-02-06 | Virtual machine deployment method, system and physical server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610740515.4A CN106445631B (en) | 2016-08-26 | 2016-08-26 | Method and system for deploying virtual machine and physical server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106445631A CN106445631A (en) | 2017-02-22 |
CN106445631B true CN106445631B (en) | 2020-02-14 |
Family
ID=58182273
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610740515.4A Active CN106445631B (en) | 2016-08-26 | 2016-08-26 | Method and system for deploying virtual machine and physical server |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106445631B (en) |
WO (1) | WO2018036104A1 (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107643939A (en) * | 2017-09-14 | 2018-01-30 | 郑州云海信息技术有限公司 | A kind of method and system for distributing virtual machine |
CN107748691B (en) * | 2017-10-30 | 2020-04-24 | 平安科技(深圳)有限公司 | Virtual machine deployment method, device, equipment and computer readable storage medium |
CN110990024B (en) * | 2019-11-28 | 2024-02-09 | 合肥讯飞数码科技有限公司 | Application deployment method, device, equipment and storage medium |
CN111324424B (en) * | 2020-04-15 | 2023-07-18 | 中国联合网络通信集团有限公司 | A virtual machine deployment method, device, server and storage medium |
CN114461332B (en) * | 2020-11-09 | 2024-05-28 | 上海大学 | A virtual machine deployment method based on application characteristics |
CN113687949B (en) * | 2021-08-31 | 2023-01-31 | 中国联合网络通信集团有限公司 | Server deployment method, device, deployment equipment and storage medium |
CN118210593B (en) * | 2024-03-27 | 2025-08-19 | 超聚变数字技术有限公司 | Virtual machine core binding method and computing device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102096461A (en) * | 2011-01-13 | 2011-06-15 | 浙江大学 | Energy-saving method of cloud data center based on virtual machine migration and load perception integration |
CN103226489A (en) * | 2012-01-30 | 2013-07-31 | 国际商业机器公司 | Integrated virtual infrastructure system |
CN104750541A (en) * | 2015-04-22 | 2015-07-01 | 成都睿峰科技有限公司 | Virtual machine migration method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201324187A (en) * | 2011-12-15 | 2013-06-16 | Hon Hai Prec Ind Co Ltd | System and method for deploying virtual machines |
CN104639594A (en) * | 2013-11-15 | 2015-05-20 | 中国电信股份有限公司 | System and method for allocating physical resources and virtual resources |
US9582303B2 (en) * | 2014-03-03 | 2017-02-28 | Vmware, Inc. | Extending placement constraints for virtual machine placement, load balancing migrations, and failover without coding |
CN105141697A (en) * | 2015-09-16 | 2015-12-09 | 国云科技股份有限公司 | A Cloud Computing Task Scheduling Method with Multiple QoS Constraints |
-
2016
- 2016-08-26 CN CN201610740515.4A patent/CN106445631B/en active Active
-
2017
- 2017-02-06 WO PCT/CN2017/072988 patent/WO2018036104A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102096461A (en) * | 2011-01-13 | 2011-06-15 | 浙江大学 | Energy-saving method of cloud data center based on virtual machine migration and load perception integration |
CN103226489A (en) * | 2012-01-30 | 2013-07-31 | 国际商业机器公司 | Integrated virtual infrastructure system |
CN104750541A (en) * | 2015-04-22 | 2015-07-01 | 成都睿峰科技有限公司 | Virtual machine migration method |
Also Published As
Publication number | Publication date |
---|---|
WO2018036104A1 (en) | 2018-03-01 |
CN106445631A (en) | 2017-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106445631B (en) | Method and system for deploying virtual machine and physical server | |
US10474488B2 (en) | Configuration of a cluster of hosts in virtualized computing environments | |
US9766945B2 (en) | Virtual resource scheduling for containers with migration | |
US11924117B2 (en) | Automated local scaling of compute instances | |
US10324754B2 (en) | Managing virtual machine patterns | |
US20190278624A1 (en) | Live migration of virtual machines in distributed computing systems | |
US8635493B2 (en) | High availability system allowing conditionally reserved computing resource use and reclamation upon a failover | |
US10019321B1 (en) | Unique identifiers for data replication, migration, failover operations and failback operations | |
US9256460B2 (en) | Selective checkpointing of links in a data flow based on a set of predefined criteria | |
US9401835B2 (en) | Data integration on retargetable engines in a networked environment | |
US9727358B2 (en) | Failover detection and treatment in checkpoint systems | |
US11461191B2 (en) | Orchestrating and prioritizing the rebuild of storage object components in a hyper-converged infrastructure | |
US11886898B2 (en) | GPU-remoting latency aware virtual machine migration | |
US20240385869A1 (en) | Techniques for Concurrently Supporting Virtual NUMA and CPU/Memory Hot-Add in a Virtual Machine | |
US20200233723A1 (en) | Consolidation of identical virtual machines on host computing systems to enable page sharing | |
CN108459906A (en) | A kind of dispatching method and device of VCPU threads | |
US9971785B1 (en) | System and methods for performing distributed data replication in a networked virtualization environment | |
CN113326158A (en) | Fault detection method and equipment | |
CN106020971A (en) | CPU (Central Processing Unit) scheduling method and device in cloud host system | |
US10102024B2 (en) | System and methods to create virtual machines with affinity rules and services asymmetry | |
US11157309B2 (en) | Operating cluster computer system with coupling facility | |
Goutam et al. | The performance evaluation of proactive fault tolerant scheme over cloud using CloudSim simulator | |
US10776148B1 (en) | System and method for utilizing computational power of a server farm | |
US11797729B2 (en) | Hyper-converged infrastructure (HCI) operation predictor | |
US9836315B1 (en) | De-referenced package execution |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |