Movatterモバイル変換


[0]ホーム

URL:


CN106201661B - Method and device for elastic scaling virtual machine cluster - Google Patents

Method and device for elastic scaling virtual machine cluster
Download PDF

Info

Publication number
CN106201661B
CN106201661BCN201610575356.7ACN201610575356ACN106201661BCN 106201661 BCN106201661 BCN 106201661BCN 201610575356 ACN201610575356 ACN 201610575356ACN 106201661 BCN106201661 BCN 106201661B
Authority
CN
China
Prior art keywords
virtual machine
target
cluster
configuration level
released
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
Application number
CN201610575356.7A
Other languages
Chinese (zh)
Other versions
CN106201661A (en
Inventor
简恒懿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co LtdfiledCriticalBeijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201610575356.7ApriorityCriticalpatent/CN106201661B/en
Publication of CN106201661ApublicationCriticalpatent/CN106201661A/en
Priority to US15/429,342prioritypatent/US10572285B2/en
Application grantedgrantedCritical
Publication of CN106201661BpublicationCriticalpatent/CN106201661B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请公开了用于弹性伸缩虚拟机集群的方法和装置。所述方法的一具体实施方式包括:在部署服务时,计算虚拟机集群中虚拟机的第一剩余资源量;获取待部署服务的资源需求量;获取虚拟机集群中虚拟机的配置等级;根据第一剩余资源量是否满足资源需求量,确定具有预定配置等级的虚拟机作为目标虚拟机;将待部署服务部署至目标虚拟机。该实施方式可以在包括不同配置等级的虚拟机集群中部署服务,并且可以在单个虚拟机上混合布置不同的服务,从而降低了部署服务的成本并且提高了虚拟机集群的资源利用率。

The present application discloses a method and a device for elastically scaling virtual machine clusters. A specific implementation of the method includes: when deploying the service, calculating the first remaining resource amount of the virtual machine in the virtual machine cluster; obtaining the resource requirement of the service to be deployed; obtaining the configuration level of the virtual machine in the virtual machine cluster; according to Whether the first remaining resource amount meets the resource demand amount, determine a virtual machine with a predetermined configuration level as the target virtual machine; deploy the service to be deployed to the target virtual machine. In this embodiment, services can be deployed in virtual machine clusters with different configuration levels, and different services can be mixed and arranged on a single virtual machine, thereby reducing the cost of deploying services and improving resource utilization of the virtual machine cluster.

Description

Translated fromChinese
用于弹性伸缩虚拟机集群的方法和装置Method and device for elastic scaling virtual machine cluster

技术领域technical field

本申请涉及计算机技术领域,具体涉及互联网技术领域,尤其涉及用于弹性伸缩虚拟机集群的方法和装置。The present application relates to the field of computer technology, in particular to the field of Internet technology, and in particular to a method and device for elastically scaling virtual machine clusters.

背景技术Background technique

弹性伸缩虚拟机集群,即在需要的时候增加虚拟机到集群中,或者用更高配的虚拟机替换原有的虚拟机,不需要的时候从集群中删除虚拟机,或者用低配的虚拟机替换原有的虚拟机,从而达到降低整个虚拟机集群成本的目的,提高虚拟机集群的投入产出比。Elastic scaling of virtual machine clusters, that is, add virtual machines to the cluster when needed, or replace the original virtual machines with higher configuration virtual machines, delete virtual machines from the cluster when not needed, or use low configuration virtual machines Replace the original virtual machine, so as to achieve the purpose of reducing the cost of the entire virtual machine cluster and improve the input-output ratio of the virtual machine cluster.

在现有技术中,虚拟机集群中的虚拟机配置等级完全相同,集群的弹性伸缩通常是通过监控集群的状态适应性调整集群的虚拟机数量来实现的。例如,可以在监控到虚拟机的CPU利用率、内存占用率、网络访问量等指标超过一个阈值时添加新的虚拟机到集群中,在监控到的上述指标低于另一个阈值时从集群中释放一台虚拟机。In the prior art, the configuration levels of the virtual machines in the virtual machine cluster are exactly the same, and the elastic scaling of the cluster is usually realized by monitoring the status of the cluster and adaptively adjusting the number of virtual machines in the cluster. For example, you can add a new virtual machine to the cluster when the monitored indicators such as the CPU utilization rate, memory usage rate, and network access volume of the virtual machine exceed a threshold, and remove the virtual machine from the cluster when the monitored indicators are lower than another threshold. Release a virtual machine.

然而,上述基于监控的弹性伸缩虚拟机集群的技术,存在如下问题:由于监控有一定的时延,需要等收集到监控数据并且监控数据到达阈值时才能添加新的虚拟机或释放集群中的虚拟机;而且新创建的虚拟机需要花一定时间才能创建完成,从而导致整个伸缩过程滞后比较长的时间。此外,同构的虚拟机配置等级相同,不利于通过混合部署服务来最大化每个虚拟机的资源利用率。However, the above monitoring-based elastically scalable virtual machine cluster technology has the following problems: Since the monitoring has a certain delay, it is necessary to wait until the monitoring data is collected and the monitoring data reaches the threshold before adding new virtual machines or releasing virtual machines in the cluster. machine; and it takes a certain amount of time to create a newly created virtual machine, which causes a relatively long delay in the entire scaling process. In addition, homogeneous virtual machines have the same configuration level, which is not conducive to maximizing the resource utilization of each virtual machine through mixed deployment services.

发明内容Contents of the invention

本申请的目的在于提出一种改进的用于弹性伸缩虚拟机集群的方法和装置,来解决以上背景技术部分提到的技术问题。The purpose of the present application is to propose an improved method and device for elastically scaling virtual machine clusters to solve the technical problems mentioned in the background technology section above.

第一方面,本申请提供了一种用于弹性伸缩虚拟机集群的方法,所述方法包括:在部署服务时,计算虚拟机集群中虚拟机的第一剩余资源量;获取待部署服务的资源需求量;获取虚拟机集群中虚拟机的配置等级;根据所述第一剩余资源量是否满足所述资源需求量,确定具有预定配置等级的虚拟机作为目标虚拟机;将所述待部署服务部署至所述目标虚拟机。In a first aspect, the present application provides a method for elastically scaling a virtual machine cluster, the method comprising: when deploying a service, calculating the first remaining resource amount of a virtual machine in the virtual machine cluster; obtaining resources of the service to be deployed demand; obtain the configuration level of the virtual machine in the virtual machine cluster; determine a virtual machine with a predetermined configuration level as the target virtual machine according to whether the first remaining resource meets the resource demand; deploy the service to be deployed to the target virtual machine.

在一些实施例中,所述根据所述第一剩余资源量是否满足所述资源需求量,确定具有预定配置等级的虚拟机作为目标虚拟机包括:响应于所述第一剩余资源量满足所述资源需求量,选择配置等级最高的虚拟机中的一台作为目标虚拟机;或响应于所述第一剩余资源量不满足所述资源需求量,从所述虚拟机集群中选择配置等级最低的虚拟机中的一台作为参考虚拟机,并基于所述参考虚拟机是否为最高配置等级,确定目标虚拟机。In some embodiments, the determining a virtual machine with a predetermined configuration level as the target virtual machine according to whether the first remaining resource amount satisfies the resource requirement includes: responding to the first remaining resource amount meeting the resource demand, select one of the virtual machines with the highest configuration level as the target virtual machine; or in response to the first remaining resource amount not meeting the resource demand, select the lowest configuration level from the virtual machine cluster One of the virtual machines is used as a reference virtual machine, and based on whether the reference virtual machine is at the highest configuration level, the target virtual machine is determined.

在一些实施例中,所述基于所述参考虚拟机是否为最高配置等级,确定目标虚拟机包括:响应于所述参考虚拟机的配置等级是最高配置等级,申请一台满足所述资源需求量的最低配置等级的虚拟机,将申请的虚拟机加入所述虚拟机集群中,并将申请的虚拟机作为目标虚拟机;或响应于所述参考虚拟机的配置等级不是最高配置等级,计算对所述参考虚拟机提升配置等级后的虚拟机的第二剩余资源量,基于所述第二剩余资源量是否满足所述资源需求量,确定目标虚拟机。In some embodiments, the determining the target virtual machine based on whether the reference virtual machine is at the highest configuration level includes: in response to the configuration level of the reference virtual machine being the highest configuration level, applying for a virtual machine that meets the resource requirement the virtual machine with the lowest configuration level, add the applied virtual machine to the virtual machine cluster, and use the applied virtual machine as the target virtual machine; or in response to the configuration level of the reference virtual machine being not the highest configuration level, calculate the The second remaining resource amount of the virtual machine after the configuration level of the reference virtual machine is increased, and the target virtual machine is determined based on whether the second remaining resource amount satisfies the resource demand amount.

在一些实施例中,所述基于所述第二剩余资源量是否满足所述资源需求量,确定目标虚拟机包括:响应于所述第二剩余资源量满足所述资源需求量,申请一台提升配置等级后的虚拟机,将所述参考虚拟机上的服务迁移至申请的虚拟机中,释放所述参考虚拟机,将所述申请的虚拟机加入所述虚拟机集群中,并将所述申请的虚拟机作为目标虚拟机;或响应于所述第二剩余资源量未满足所述资源需求量,申请一台满足所述资源需求量的最低配置等级的虚拟机,将申请的虚拟机加入所述虚拟机集群中,并将所述申请的虚拟机作为目标虚拟机。In some embodiments, the determining the target virtual machine based on whether the second amount of remaining resources satisfies the resource requirement includes: applying for an upgrade in response to the second remaining resource amount meeting the resource requirement Configure the leveled virtual machine, migrate the service on the reference virtual machine to the applied virtual machine, release the reference virtual machine, add the applied virtual machine to the virtual machine cluster, and transfer the applied virtual machine to the virtual machine cluster. The applied virtual machine is used as the target virtual machine; or in response to the fact that the second remaining resource amount does not meet the resource requirement, apply for a virtual machine with the lowest configuration level that meets the resource requirement, and add the applied virtual machine to the In the virtual machine cluster, the applied virtual machine is used as the target virtual machine.

在一些实施例中,所述响应于所述第一剩余资源量满足所述资源需求量,选择配置等级最高的虚拟机中的一台作为目标虚拟机包括:响应于所述第一剩余资源量满足所述资源需求量,若所述配置等级最高的虚拟机的数量大于1,则选择所述配置等级最高的虚拟机中剩余资源量最小的虚拟机作为目标虚拟机。In some embodiments, in response to the first amount of remaining resources meeting the resource requirement, selecting one of the virtual machines with the highest configuration level as the target virtual machine includes: responding to the first amount of remaining resources To meet the resource demand, if the number of the virtual machines with the highest configuration level is greater than 1, select the virtual machine with the smallest remaining resources among the virtual machines with the highest configuration level as the target virtual machine.

在一些实施例中,所述从虚拟机集群中选择配置等级最低的虚拟机中的一台作为参考虚拟机包括:若虚拟机集群中配置等级最低的虚拟机的数量大于1,则选择配置等级最低的虚拟机中剩余资源量最小的虚拟机作为参考虚拟机。In some embodiments, the selecting one of the virtual machines with the lowest configuration level from the virtual machine cluster as the reference virtual machine includes: if the number of virtual machines with the lowest configuration level in the virtual machine cluster is greater than 1, then selecting the configuration level The virtual machine with the smallest remaining resources among the lowest virtual machines is used as the reference virtual machine.

在一些实施例中,所述方法还包括以下释放虚拟机的步骤:从所述虚拟机集群中选择至少一台被占用资源最少的虚拟机作为待释放虚拟机;判断所述虚拟机集群中除待释放虚拟机之外的其他虚拟机的剩余资源量是否满足部署所述待释放虚拟机上的服务所需要的资源量;若是,则将待释放虚拟机上的服务迁移至所述其他虚拟机,并释放所述待释放虚拟机。In some embodiments, the method further includes the step of releasing the virtual machine: selecting at least one virtual machine with the least occupied resources from the virtual machine cluster as the virtual machine to be released; Whether the remaining resources of other virtual machines other than the virtual machine to be released meet the amount of resources required to deploy the services on the virtual machine to be released; if so, migrate the services on the virtual machine to be released to the other virtual machines , and release the virtual machine to be released.

在一些实施例中,从所述虚拟机集群中选择至少一台被占用资源最少的虚拟机作为待释放虚拟机包括:若被占用资源最少的虚拟机的数量大于1,则选择被占用资源最少的虚拟机中配置等级最低的虚拟机作为所述待释放虚拟机。In some embodiments, selecting at least one virtual machine with the least occupied resources from the virtual machine cluster as the virtual machine to be released includes: if the number of virtual machines with the least occupied resources is greater than 1, selecting the virtual machine with the least occupied resources The virtual machine with the lowest configuration level among the virtual machines is used as the virtual machine to be released.

在一些实施例中,所述方法还包括:间隔预定时间重复执行所述释放虚拟机的步骤。In some embodiments, the method further includes: repeatedly performing the step of releasing the virtual machine at predetermined time intervals.

第二方面,本申请提供了一种用于弹性伸缩虚拟机集群的装置,所述装置包括:余量计算单元,用于在部署服务时,计算虚拟机集群中虚拟机的第一剩余资源量;需求获取单元,用于获取待部署服务的资源需求量;等级获取单元,用于获取虚拟机集群中虚拟机的配置等级;目标确定单元,用于根据所述第一剩余资源量是否满足所述资源需求量,确定具有预定配置等级的虚拟机作为目标虚拟机;服务部署单元,用于将所述待部署服务部署至所述目标虚拟机。In a second aspect, the present application provides an apparatus for elastically scaling a virtual machine cluster, the apparatus comprising: a surplus calculation unit configured to calculate the first remaining resource amount of a virtual machine in a virtual machine cluster when deploying a service a requirement acquisition unit, configured to acquire the resource demand of the service to be deployed; a level acquisition unit, configured to acquire the configuration level of the virtual machine in the virtual machine cluster; a target determination unit, configured to satisfy the required level according to whether the first remaining resource amount satisfies the The resource requirement is used to determine a virtual machine with a predetermined configuration level as a target virtual machine; a service deployment unit is configured to deploy the service to be deployed to the target virtual machine.

在一些实施例中,所述目标确定单元包括:第一目标确定子单元,用于响应于所述第一剩余资源量满足所述资源需求量,选择配置等级最高的虚拟机中的一台作为目标虚拟机;或第二目标确定子单元,用于响应于所述第一剩余资源量不满足所述资源需求量,从所述虚拟机集群中选择配置等级最低的虚拟机中的一台作为参考虚拟机,并基于所述参考虚拟机是否为最高配置等级,确定目标虚拟机。In some embodiments, the target determination unit includes: a first target determination subunit, configured to select one of the virtual machines with the highest configuration level as the response to the first remaining resource amount meeting the resource demand amount. a target virtual machine; or a second target determining subunit, configured to select one of the virtual machines with the lowest configuration level from the virtual machine cluster as A reference virtual machine is used, and based on whether the reference virtual machine is at the highest configuration level, a target virtual machine is determined.

在一些实施例中,所述第二目标确定子单元进一步用于:响应于所述参考虚拟机的配置等级是最高配置等级,申请一台满足所述资源需求量的最低配置等级的虚拟机,将申请的虚拟机加入所述虚拟机集群中,并将申请的虚拟机作为目标虚拟机;或响应于所述参考虚拟机的配置等级不是最高配置等级,计算对所述参考虚拟机提升配置等级后的虚拟机的第二剩余资源量,基于所述第二剩余资源量是否满足所述资源需求量,确定目标虚拟机。In some embodiments, the second target determination subunit is further configured to: in response to the configuration level of the reference virtual machine being the highest configuration level, apply for a virtual machine with the lowest configuration level that meets the resource requirement, adding the applied virtual machine to the virtual machine cluster, and using the applied virtual machine as a target virtual machine; or in response to the fact that the configuration level of the reference virtual machine is not the highest configuration level, calculating to increase the configuration level of the reference virtual machine The second remaining resource amount of the subsequent virtual machine is determined based on whether the second remaining resource amount satisfies the resource demand amount, and the target virtual machine is determined.

在一些实施例中,所述第二目标确定子单元进一步用于:响应于所述第二剩余资源量满足所述资源需求量,申请一台提升配置等级后的虚拟机,将所述参考虚拟机上的服务迁移至申请的虚拟机中,释放所述参考虚拟机,将所述申请的虚拟机加入所述虚拟机集群中,并将所述申请的虚拟机作为目标虚拟机;或响应于所述第二剩余资源量未满足所述资源需求量,申请一台满足所述资源需求量的最低配置等级的虚拟机,将申请的虚拟机加入所述虚拟机集群中,并将所述申请的虚拟机作为目标虚拟机。In some embodiments, the second target determination subunit is further configured to: apply for a virtual machine with an upgraded configuration level in response to the second remaining resource amount meeting the resource demand amount, and set the reference virtual machine The service on the machine is migrated to the applied virtual machine, the reference virtual machine is released, the applied virtual machine is added to the virtual machine cluster, and the applied virtual machine is used as the target virtual machine; or in response The second remaining resource amount does not meet the resource requirement, applying for a virtual machine with the lowest configuration level that meets the resource requirement, adding the applied virtual machine to the virtual machine cluster, and adding the applied virtual machine as the target virtual machine.

在一些实施例中,所述第一目标确定子单元进一步用于:响应于所述第一剩余资源量满足所述资源需求量,若所述配置等级最高的虚拟机的数量大于1,则选择所述配置等级最高的虚拟机中剩余资源量最小的虚拟机作为目标虚拟机。In some embodiments, the first target determination subunit is further configured to: in response to the first remaining resource amount meeting the resource demand amount, if the number of virtual machines with the highest configuration level is greater than 1, select Among the virtual machines with the highest configuration level, the virtual machine with the smallest amount of remaining resources is used as the target virtual machine.

在一些实施例中,所述第二目标确定子单元进一步用于:若虚拟机集群中配置等级最低的虚拟机的数量大于1,则选择配置等级最低的虚拟机中剩余资源量最小的虚拟机作为参考虚拟机。In some embodiments, the second target determination subunit is further configured to: if the number of virtual machines with the lowest configuration level in the virtual machine cluster is greater than 1, select the virtual machine with the smallest amount of remaining resources among the virtual machines with the lowest configuration level as a reference virtual machine.

在一些实施例中,所述装置还包括虚拟机释放单元,所述虚拟机释放单元包括:目标选定子单元,用于从所述虚拟机集群中选择至少一台被占用资源最少的虚拟机作为待释放虚拟机;资源判断子单元,用于判断所述虚拟机集群中除待释放虚拟机之外的其他虚拟机的剩余资源量是否满足部署所述待释放虚拟机上的服务所需要的资源量;虚拟机释放子单元,用于若所述虚拟机集群中除待释放虚拟机之外的其他虚拟机的剩余资源量满足部署所述待释放虚拟机上的服务所需要的资源量,则将待释放虚拟机上的服务迁移至所述其他虚拟机,并释放所述待释放虚拟机。In some embodiments, the device further includes a virtual machine release unit, the virtual machine release unit includes: a target selection subunit, configured to select at least one virtual machine with the least occupied resources from the virtual machine cluster As a virtual machine to be released; a resource judging subunit, configured to judge whether the remaining resources of other virtual machines in the virtual machine cluster other than the virtual machine to be released meet the requirements for deploying services on the virtual machine to be released Amount of resources; a virtual machine release subunit, configured to if the remaining resources of other virtual machines in the virtual machine cluster except the virtual machine to be released meet the resource amount required for deploying the service on the virtual machine to be released, Migrate the service on the virtual machine to be released to the other virtual machine, and release the virtual machine to be released.

在一些实施例中,所述目标选定单元进一步用于:若被占用资源最少的虚拟机的数量大于1,则选择被占用资源最少的虚拟机中配置等级最低的虚拟机作为所述待释放虚拟机。In some embodiments, the target selection unit is further configured to: if the number of virtual machines with the least occupied resources is greater than 1, select the virtual machine with the lowest configuration level among the virtual machines with the fewest occupied resources as the virtual machine to be released virtual machine.

在一些实施例中,所述装置还包括:定时释放单元,用于间隔预定时间调用所述虚拟机释放单元以释放虚拟机。In some embodiments, the apparatus further includes: a timing release unit, configured to invoke the virtual machine release unit at predetermined time intervals to release the virtual machine.

本申请提供的用于弹性伸缩虚拟机集群的方法和装置,通过在部署服务时,计算虚拟机集群中虚拟机的第一剩余资源量,而后获取待部署服务的资源需求量,之后获取虚拟机集群中虚拟机的配置等级,之后根据所述第一剩余资源量是否满足所述资源需求量,确定具有预定配置等级的虚拟机作为目标虚拟机,最后将所述待部署服务部署至所述目标虚拟机,从而可以在包括不同配置等级的虚拟机集群中部署服务,并且可以在单个虚拟机上混合布置不同的服务,从而降低了部署服务的成本并且提高了虚拟机集群的资源利用率。The method and device for elastically scaling virtual machine clusters provided by this application calculate the first remaining resource amount of virtual machines in the virtual machine cluster when deploying services, and then obtain the resource requirements of the services to be deployed, and then obtain the virtual machine The configuration level of the virtual machine in the cluster, and then according to whether the first remaining resource amount satisfies the resource requirement, determine a virtual machine with a predetermined configuration level as the target virtual machine, and finally deploy the service to be deployed to the target Virtual machines, so that services can be deployed in virtual machine clusters including different configuration levels, and different services can be mixed and arranged on a single virtual machine, thereby reducing the cost of deploying services and improving the resource utilization of virtual machine clusters.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1是本申请可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which the present application can be applied;

图2是根据本申请的用于弹性伸缩虚拟机集群的方法的一个实施例的流程图;FIG. 2 is a flowchart of an embodiment of a method for elastically scaling a virtual machine cluster according to the present application;

图3是根据本申请的用于弹性伸缩虚拟机集群的方法的一个应用场景的流程图;FIG. 3 is a flowchart of an application scenario of a method for elastically scaling a virtual machine cluster according to the present application;

图4是根据本申请的用于弹性伸缩虚拟机集群的方法中释放虚拟机的方法的一个实施例的流程图;FIG. 4 is a flowchart of an embodiment of a method for releasing a virtual machine in a method for elastically scaling a virtual machine cluster according to the present application;

图5是根据本申请的用于弹性伸缩虚拟机集群的装置的一个实施例的结构示意图;FIG. 5 is a schematic structural diagram of an embodiment of an apparatus for elastically scaling a virtual machine cluster according to the present application;

图6是适于用来实现本申请实施例的终端设备或服务器的计算机系统的结构示意图。Fig. 6 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present application.

具体实施方式Detailed ways

下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

图1示出了可以应用本申请的用于弹性伸缩虚拟机集群的方法或用于弹性伸缩虚拟机集群的装置的实施例的示例性系统架构100。FIG. 1 shows an exemplary system architecture 100 to which embodiments of the method for elastically scaling a virtual machine cluster or the apparatus for elastically scaling a virtual machine cluster of the present application can be applied.

如图1所示,系统架构100包括终端设备101、102、103,网络104和服务器105、106。网络104用以在终端设备101、102、103和服务器105、106之间提供通信链路的介质。网络104包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , the system architecture 100 includes terminal devices 101 , 102 , 103 , a network 104 and servers 105 , 106 . The network 104 serves as a medium for providing communication links between the terminal devices 101 , 102 , 103 and the servers 105 , 106 . Network 104 includes various connection types, such as wires, wireless communication links, or fiber optic cables, among others.

用户110可以使用终端设备101、102、103通过网络104与服务器105、106交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如网页浏览器应用、购物类应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。The user 110 can use the terminal device 101 , 102 , 103 to interact with the server 105 , 106 through the network 104 to receive or send messages and the like. Various communication client applications can be installed on the terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, and the like.

终端设备101、102、103可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture ExpertsGroup Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving PictureExperts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。Terminal devices 101, 102, 103 can be various electronic devices with display screens and support web browsing, including but not limited to smartphones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, moving picture Expert Compression Standard Audio Layer 3), MP4 (Moving PictureExperts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) Players, Laptop Portable Computers and Desktop Computers, etc.

服务器105和106可以是提供各种服务的虚拟机集群中的虚拟机,例如对终端设备101、102、103上显示的网页提供支持的后台网页虚拟机集群中的虚拟机。后台网页虚拟机集群可以对接收到的网页页面请求等数据进行分析等处理,并将处理结果(例如网页页面数据)反馈给终端设备。The servers 105 and 106 may be virtual machines in a virtual machine cluster that provide various services, for example, a virtual machine in a background web page virtual machine cluster that provides support for web pages displayed on terminal devices 101 , 102 , and 103 . The background webpage virtual machine cluster can analyze and process the received webpage request and other data, and feed back the processing results (such as webpage data) to the terminal device.

需要说明的是,本申请实施例所提供的用于弹性伸缩虚拟机集群的方法一般由包括虚拟机105、106的虚拟机集群执行,相应地,用于弹性伸缩虚拟机集群的装置一般设置于包括虚拟机105、106的虚拟机集群中。It should be noted that the method for elastically scaling a virtual machine cluster provided in the embodiment of the present application is generally performed by a virtual machine cluster including virtual machines 105 and 106, and correspondingly, the device for elastically scaling a virtual machine cluster is generally set in In the virtual machine cluster including the virtual machines 105 and 106 .

应该理解,图1中的终端设备、网络和虚拟机集群中的虚拟机的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和虚拟机。It should be understood that the number of terminal devices, networks, and virtual machines in the virtual machine cluster in FIG. 1 is only illustrative. According to implementation needs, there can be any number of terminal devices, networks and virtual machines.

继续参考图2,示出了根据本申请的用于弹性伸缩虚拟机集群的方法的一个实施例的流程200。所述的用于弹性伸缩虚拟机集群的方法,包括以下步骤:Continuing to refer to FIG. 2 , a process 200 of an embodiment of a method for elastically scaling a virtual machine cluster according to the present application is shown. The method for elastically scaling virtual machine clusters includes the following steps:

步骤201,在部署服务时,计算虚拟机集群中虚拟机的第一剩余资源量。Step 201, when deploying a service, calculate a first remaining resource amount of a virtual machine in a virtual machine cluster.

在本实施例中,虚拟机集群可以是公有云或者私有云的中的虚拟机集群,该虚拟机集群需要使用虚拟机部署服务,并且具有可以访问创建和释放虚拟机的API。在这里,被部署的服务是无状态的,即数据可以是存在于外部存储中,譬如数据库、对象存储等,而不能保存于本地磁盘上。In this embodiment, the virtual machine cluster may be a virtual machine cluster in a public cloud or a private cloud, the virtual machine cluster needs to use a virtual machine deployment service, and has an API that can access creating and releasing a virtual machine. Here, the deployed service is stateless, that is, data can exist in external storage, such as databases, object storage, etc., but cannot be saved on local disks.

在部署服务时,为了确定哪些虚拟机内具有的剩余资源量可以直接部署服务,需要首先计算虚拟机集群内各个虚拟机的剩余资源量,这里的剩余资源量等于该虚拟机的总资源减去该虚拟机上部署服务所需的资源的总和,也即上述的第一剩余资源量。When deploying services, in order to determine which virtual machines have remaining resources that can directly deploy services, it is necessary to first calculate the remaining resources of each virtual machine in the virtual machine cluster, where the remaining resources are equal to the total resources of the virtual machine minus The sum of resources required for deploying services on the virtual machine, that is, the above-mentioned first remaining resource amount.

步骤202,获取待部署服务的资源需求量。Step 202, acquiring the resource requirement of the service to be deployed.

在本实施例中,在部署服务的时候,为了确定哪些虚拟机内具有的剩余资源量可以直接部署服务,在计算虚拟机集群内各个虚拟机的剩余资源量之后,需要进一步获取输入的对待部署服务所需要的资源需求量的预算,即该服务需要使用多少核中央处理器(CPU)、多少兆(M)内存等。In this embodiment, when deploying services, in order to determine which virtual machines have remaining resources that can directly deploy services, after calculating the remaining resources of each virtual machine in the virtual machine cluster, it is necessary to further obtain the input to-be-deployed The budget for the resource demand required by the service, that is, how many cores of the central processing unit (CPU), how many megabytes (M) of memory, etc., the service needs to use.

步骤203,获取虚拟机集群中虚拟机的配置等级。Step 203, acquiring the configuration level of the virtual machines in the virtual machine cluster.

在本实施例中,虚拟机集群中虚拟机的配置等级为预设的多个等级,每个等级具有特定的资源配置(CPU核数、内存大小),并且配置等级越高,折合的资源成本(每CPU核、每M内存成本)越低。In this embodiment, the configuration levels of the virtual machines in the virtual machine cluster are multiple preset levels, each level has a specific resource configuration (number of CPU cores, memory size), and the higher the configuration level, the equivalent resource cost (per CPU core, per M memory cost) is lower.

在这里,获取虚拟机集群中虚拟机的配置等级,是为了确定该虚拟机是否可以升级至更高配置等级,以及在该虚拟机可以升级至更高配置等级时,确定该虚拟机应当升级至哪一种配置等级。Here, obtaining the configuration level of the virtual machine in the virtual machine cluster is to determine whether the virtual machine can be upgraded to a higher configuration level, and when the virtual machine can be upgraded to a higher configuration level, determine that the virtual machine should be upgraded to a higher configuration level. Which configuration level.

步骤204,根据第一剩余资源量是否满足资源需求量,确定具有预定配置等级的虚拟机作为目标虚拟机。Step 204: Determine a virtual machine with a predetermined configuration level as a target virtual machine according to whether the first remaining resource amount satisfies the resource demand amount.

在本实施例中,首先可以根据第一剩余资源量是否满足资源需求量,确定是否需要新申请虚拟机:若第一剩余资源量满足资源需求量,则可以充分利用第一剩余资源量部署服务;若第一剩余资源量不满足资源需求量,则需要考虑新申请虚拟机以部署服务。In this embodiment, first, it may be determined whether a new application for a virtual machine is required according to whether the first remaining resource amount meets the resource requirement: if the first remaining resource amount meets the resource requirement, then the first remaining resource amount can be fully utilized to deploy the service ; If the first remaining resource amount does not meet the resource requirement, it is necessary to consider applying for a new virtual machine to deploy the service.

在确定是否需要新申请虚拟机之后,可以根据实际需要选择具有预定配置等级的虚拟机作为部署服务的目标虚拟机。这里的虚拟机集群中虚拟机的配置等级,可以根据预设的虚拟机配置等级档次分为多个档次,每个档次的资源配置等级(CPU核数、内存大小)不同,并且配置等级越高,折合的资源成本(每CPU核、每M内存成本)越低。After determining whether a new application virtual machine is required, a virtual machine with a predetermined configuration level may be selected as a target virtual machine for deploying services according to actual needs. The virtual machine configuration level in the virtual machine cluster here can be divided into multiple levels according to the preset virtual machine configuration level. The resource configuration level (CPU core number, memory size) of each level is different, and the higher the configuration level , the lower the equivalent resource cost (per CPU core, per M memory cost).

示例性的,若第一剩余资源量满足资源需求量,为了提高资源利用率,可以选择最低配置的虚拟机作为目标虚拟机;为了减少该服务进行迁移的可能,则可以选择配置等级最高的虚拟机中的一台作为目标虚拟机,由于该目标虚拟机为最高配置等级,因此后续不会再对该虚拟机进行升级,从而减少了该服务进行迁移的可能。Exemplarily, if the first remaining resource amount satisfies the resource demand, in order to improve resource utilization, the virtual machine with the lowest configuration can be selected as the target virtual machine; in order to reduce the possibility of service migration, the virtual machine with the highest configuration level can be selected One of the virtual machines is used as the target virtual machine. Since the target virtual machine is at the highest configuration level, the virtual machine will not be upgraded in the future, thereby reducing the possibility of migration of the service.

示例性的,若第一剩余资源量不满足资源需求量,为了提高资源利用率,则可以从虚拟机集群中选择配置等级最低的虚拟机中的一台作为参考虚拟机,并基于参考虚拟机是否为最高配置等级,确定目标虚拟机。Exemplarily, if the first remaining resource amount does not meet the resource demand, in order to improve resource utilization, one of the virtual machines with the lowest configuration level may be selected from the virtual machine cluster as a reference virtual machine, and based on the reference virtual machine Whether it is the highest configuration level, determine the target virtual machine.

在确定参考虚拟机之后,根据参考虚拟机是否为最高配置等级的虚拟机来确定其是否可以升级为更高配置的虚拟机,从而进一步根据确定结果确定目标虚拟机。After the reference virtual machine is determined, it is determined whether the reference virtual machine can be upgraded to a virtual machine with a higher configuration according to whether the reference virtual machine is a virtual machine with the highest configuration level, so as to further determine the target virtual machine according to the determination result.

示例性的,响应于参考虚拟机的配置等级是最高配置等级,那么参考虚拟机已经无法升级为更高等级的虚拟机,此时可以申请一台满足资源需求量的最低配置等级的虚拟机,将申请的虚拟机加入虚拟机集群中,并将申请的虚拟机作为目标虚拟机。可选地,若配置等级最高的虚拟机的数量大于1,为了进一步提高资源利用率,可以选择配置等级最高的虚拟机中剩余资源量最小的虚拟机作为目标虚拟机。Exemplarily, in response to the fact that the configuration level of the reference virtual machine is the highest configuration level, then the reference virtual machine cannot be upgraded to a virtual machine of a higher level. At this time, a virtual machine with the lowest configuration level that meets the resource requirements can be applied for, Add the applied virtual machine to the virtual machine cluster, and use the applied virtual machine as the target virtual machine. Optionally, if the number of virtual machines with the highest configuration level is greater than 1, in order to further improve resource utilization, the virtual machine with the smallest amount of remaining resources among the virtual machines with the highest configuration level may be selected as the target virtual machine.

备选地,响应于参考虚拟机的配置等级不是最高配置等级,那么参考虚拟机可以升级为更高等级的虚拟机,此时可以计算对参考虚拟机提升配置等级后的虚拟机的第二剩余资源量,基于第二剩余资源量是否满足资源需求量来确定目标虚拟机。可选地,若虚拟机集群中配置等级最低的虚拟机的数量大于1,为了进一步提高资源利用率,可以选择配置等级最低的虚拟机中剩余资源量最小的虚拟机作为参考虚拟机。Alternatively, in response to the fact that the configuration level of the reference virtual machine is not the highest configuration level, then the reference virtual machine can be upgraded to a virtual machine of a higher level, and at this time, the second residual value of the virtual machine after the configuration level of the reference virtual machine is upgraded can be calculated. The resource amount is used to determine the target virtual machine based on whether the second remaining resource amount meets the resource demand amount. Optionally, if the number of virtual machines with the lowest configuration level in the virtual machine cluster is greater than 1, in order to further improve resource utilization, the virtual machine with the smallest amount of remaining resources among the virtual machines with the lowest configuration level may be selected as the reference virtual machine.

在这里,对参考虚拟机提升配置等级后的虚拟机,是一台新申请的更高配置等级的虚拟机,并且将原虚拟机中的服务迁移至其中;而第二剩余资源量是指该新申请的虚拟机在部署原虚拟机中的服务后剩余的资源量。Here, the virtual machine after upgrading the configuration level of the reference virtual machine is a newly applied virtual machine with a higher configuration level, and the services in the original virtual machine are migrated to it; and the second remaining resource amount refers to the new virtual machine The amount of remaining resources of the requested virtual machine after the services in the original virtual machine are deployed.

这里的基于第二剩余资源量是否满足资源需求量,确定目标虚拟机,至少可以包括以下两项之一:若第二剩余资源量满足资源需求量,则可以申请一台提升配置等级后的虚拟机,将参考虚拟机上的服务迁移至申请的虚拟机中,释放参考虚拟机,将申请的虚拟机加入虚拟机集群中,并将申请的虚拟机作为目标虚拟机;以及若第二剩余资源量未满足资源需求量,则可以申请一台满足资源需求量的最低配置等级的虚拟机,将申请的虚拟机加入虚拟机集群中,并将申请的虚拟机作为目标虚拟机。Here, the determination of the target virtual machine based on whether the second remaining resource meets the resource demand can include at least one of the following two items: If the second remaining resource meets the resource demand, you can apply for a virtual machine with an upgraded configuration level. machine, migrate the services on the reference virtual machine to the applied virtual machine, release the reference virtual machine, add the applied virtual machine to the virtual machine cluster, and use the applied virtual machine as the target virtual machine; and if the second remaining resource If the amount does not meet the resource requirements, you can apply for a virtual machine with the lowest configuration level that meets the resource requirements, add the applied virtual machine to the virtual machine cluster, and use the applied virtual machine as the target virtual machine.

步骤205,将待部署服务部署至目标虚拟机。Step 205, deploying the service to be deployed to the target virtual machine.

在本实施例中,基于步骤204中确定的目标虚拟机,可以将待部署服务部署至目标虚拟机。In this embodiment, based on the target virtual machine determined in step 204, the service to be deployed may be deployed to the target virtual machine.

在这里,本领域技术人员应当理解,上述的实施例中的将待部署服务部署至目标虚拟机的步骤和将申请的虚拟机加入虚拟机集群中的步骤,除了按照上述实施例中示出的执行顺序执行外,还可以并行地执行或按相反的顺序执行。Here, those skilled in the art should understand that the steps of deploying the service to be deployed to the target virtual machine and adding the applied virtual machine into the virtual machine cluster in the above-mentioned embodiments, except In addition to executing sequentially, they can also be executed in parallel or in reverse order.

继续参考图3,其示出了用于弹性伸缩虚拟机集群的方法的一个应用场景的流程300。该用于弹性伸缩虚拟机集群的方法的流程300,包括以下步骤:Continue to refer to FIG. 3 , which shows a process 300 of an application scenario of the method for elastically scaling a virtual machine cluster. The process 300 of the method for elastically scaling a virtual machine cluster includes the following steps:

在步骤301中,在部署服务时,计算虚拟机集群中虚拟机的第一剩余资源量,之后执行步骤302。In step 301, when the service is deployed, the first remaining resource amount of the virtual machine in the virtual machine cluster is calculated, and then step 302 is executed.

在步骤302中,获取待部署服务的资源需求量,之后执行步骤303。In step 302, the resource requirement of the service to be deployed is obtained, and then step 303 is executed.

在步骤303中,获取第一剩余资源量满足资源需求量的虚拟机的列表,之后执行步骤304。In step 303, a list of virtual machines whose first remaining resource amount meets the resource demand amount is obtained, and then step 304 is executed.

在步骤304中,判断列表是否为空,若否,则执行步骤305,若是,则执行步骤307。In step 304, it is judged whether the list is empty, if not, execute step 305, and if yes, execute step 307.

在步骤305中,选择列表中配置等级最高的虚拟机中的一台作为目标虚拟机,之后执行步骤306。In step 305, one of the virtual machines with the highest configuration level in the list is selected as the target virtual machine, and then step 306 is executed.

在步骤306中,将待部署服务部署至目标虚拟机中。In step 306, the service to be deployed is deployed to the target virtual machine.

在步骤307中,从虚拟机集群中选择配置等级最低的虚拟机中的一台作为参考虚拟机,之后执行步骤308。In step 307, one of the virtual machines with the lowest configuration level is selected from the virtual machine cluster as a reference virtual machine, and then step 308 is executed.

在步骤308中,判断参考虚拟机的配置等级是否为最高配置等级,若是,则执行步骤309,若否,则执行步骤311。In step 308, it is judged whether the configuration level of the reference virtual machine is the highest configuration level, if yes, execute step 309, if not, execute step 311.

在步骤309中,申请一台满足资源需求量的最低配置等级的虚拟机,之后执行步骤310。In step 309, apply for a virtual machine with the minimum configuration level meeting the resource requirement, and then execute step 310.

在步骤310中,将待部署服务部署至申请的虚拟机并将申请的虚拟机加入虚拟机集群中。In step 310, the service to be deployed is deployed to the applied virtual machine and the applied virtual machine is added to the virtual machine cluster.

在步骤311中,计算对参考虚拟机提升配置等级后的虚拟机的第二剩余资源量,之后执行步骤312。In step 311, the second remaining resource amount of the virtual machine whose configuration level is raised for the reference virtual machine is calculated, and then step 312 is executed.

在步骤312中,判断第二剩余资源量是否满足资源需求量,若是,则执行步骤313,若否,则执行步骤317。In step 312, it is judged whether the second remaining resource amount satisfies the resource requirement, if yes, execute step 313, and if not, execute step 317.

在步骤313中,申请一台提升配置等级后的虚拟机,之后执行步骤314。In step 313, apply for a virtual machine with an upgraded configuration level, and then execute step 314.

在步骤314中,将参考虚拟机上的服务迁移至申请的虚拟机中,之后执行步骤315。In step 314, the service on the reference virtual machine is migrated to the applied virtual machine, and then step 315 is executed.

在步骤315中,释放参考虚拟机,之后执行步骤316。In step 315, the reference virtual machine is released, and then step 316 is executed.

在步骤316中,将待部署服务部署于申请的虚拟机上并将申请的虚拟机加入虚拟机集群中。In step 316, the service to be deployed is deployed on the applied virtual machine and the applied virtual machine is added to the virtual machine cluster.

在步骤317中,申请一台满足待部署服务的资源需求量的最低配置等级的虚拟机。In step 317, apply for a virtual machine with a minimum configuration level that meets the resource requirements of the service to be deployed.

在步骤318中,将待部署服务部署至申请的虚拟机并将申请的虚拟机加入虚拟机集群中。In step 318, the service to be deployed is deployed to the applied virtual machine and the applied virtual machine is added to the virtual machine cluster.

在上述的应用场景中,基于获取的第一剩余资源量和待部署服务的资源需求量,可以计算出哪些虚拟机的第一剩余资源量满足资源需求量,进而统计这些第一剩余资源量满足资源需求量的虚拟机,得到第一剩余资源量满足资源需求量的虚拟机的列表。之后,可以采用查询语句查询列表的属性信息,根据返回的查询结果判断列表是否为空。若判断列表不为空,也就是当前虚拟机集群中有虚拟机能满足部署该服务的需要,因此可以从列表中选择配置最高的虚拟机中的一台作为目标虚拟机。In the above application scenario, based on the obtained first remaining resources and the resource requirements of the services to be deployed, it is possible to calculate which virtual machines whose first remaining resources meet the resource requirements, and then count these first remaining resources to meet the resource requirements. For the virtual machines with the required amount of resources, a list of the virtual machines with the first remaining resources meeting the required amount of resources is obtained. Afterwards, the attribute information of the list can be queried by a query statement, and whether the list is empty can be judged according to the returned query result. If the judgment list is not empty, that is, there are virtual machines in the current virtual machine cluster that can meet the needs of deploying the service, so one of the virtual machines with the highest configuration can be selected from the list as the target virtual machine.

在这里,如果提高参考虚拟机的配置等级(可以提高一档、两档,直到提高到最高配置等级)后的虚拟机可以满足该服务的资源需求,则可以申请一台提高参考虚拟机的配置等级后的虚拟机,将原参考虚拟机的服务全部部署到新申请的虚拟机上,然后释放原参考虚拟机,最后将待部署服务部署到这台新申请的更高配置等级的虚拟机上,并将虚拟机加入虚拟机集群中,即可结束。此时,若被部署的服务有多个实例,可以针对每个实例执行上述的过程。Here, if the virtual machine after increasing the configuration level of the reference virtual machine (you can increase it by one or two levels until it reaches the highest configuration level) can meet the resource requirements of the service, you can apply for an improved configuration of the reference virtual machine After leveling the virtual machine, deploy all the services of the original reference virtual machine to the newly applied virtual machine, then release the original reference virtual machine, and finally deploy the services to be deployed to the newly applied virtual machine with a higher configuration level. Add the virtual machine to the virtual machine cluster to end. At this point, if the deployed service has multiple instances, the above process can be performed for each instance.

如果参考虚拟机已经是最高配置等级(也就是集群中所有虚拟机都已经是最高配置等级),或者提高这台虚拟机的配置等级也还是不能满足该服务的资源需求,则申请一台能满足该服务资源需求的最低配的虚拟机,将服务部署到这台新申请的虚拟机上,并将虚拟机加入集群中,即可结束。If the reference virtual machine is already at the highest configuration level (that is, all virtual machines in the cluster are already at the highest configuration level), or if the configuration level of this virtual machine still cannot meet the resource requirements of the service, apply for one that can meet The virtual machine with the minimum configuration required by the service resource needs to deploy the service to this newly applied virtual machine, and add the virtual machine to the cluster to end.

本申请的上述实施例提供的方法,可以在包括不同配置等级的虚拟机集群中部署服务,并且可以在单个虚拟机上混合布置不同的服务,从而降低了部署服务的成本并且提高了虚拟机集群的资源利用率。The method provided by the above-mentioned embodiments of the present application can deploy services in virtual machine clusters including different configuration levels, and can mix and arrange different services on a single virtual machine, thereby reducing the cost of deploying services and improving the efficiency of virtual machine clusters. resource utilization.

进一步参考图4,其示出了用于弹性伸缩虚拟机集群的方法中释放虚拟机的方法的一个实施例的流程400。该用于释放虚拟机的方法的流程400,包括以下步骤:Further referring to FIG. 4 , it shows a process 400 of an embodiment of a method for releasing a virtual machine in a method for elastically scaling a virtual machine cluster. The process 400 of the method for releasing a virtual machine includes the following steps:

在步骤401中,从虚拟机集群中选择至少一台被占用资源最少的虚拟机作为待释放虚拟机。In step 401, at least one virtual machine with the least occupied resources is selected from the virtual machine cluster as the virtual machine to be released.

在步骤402中,判断虚拟机集群中除待释放虚拟机之外的其他虚拟机的剩余资源量是否满足部署待释放虚拟机上的服务所需要的资源量。In step 402, it is judged whether the remaining resource amount of other virtual machines in the virtual machine cluster except the virtual machine to be released meets the resource amount required for deploying the service on the virtual machine to be released.

在步骤403中,若虚拟机集群中除待释放虚拟机之外的其他虚拟机的剩余资源量满足部署待释放虚拟机上的服务所需要的资源量,则将待释放虚拟机上的服务迁移至其他虚拟机,并释放待释放虚拟机。In step 403, if the remaining resources of other virtual machines in the virtual machine cluster other than the virtual machine to be released meet the amount of resources required for deploying the service on the virtual machine to be released, then migrate the service on the virtual machine to be released to other virtual machines, and release the virtual machines to be released.

在本实施例中,当用户要删除服务的时候,虚拟机集群的控制系统可以直接从服务部署的虚拟机上删除该服务,但是这时不会对虚拟机做任何的变动(不会释放虚拟机)。In this embodiment, when a user wants to delete a service, the control system of the virtual machine cluster can directly delete the service from the virtual machine deployed by the service, but at this time no changes will be made to the virtual machine (the virtual machine will not be released). machine).

在释放虚拟机时,首先从集群中选择一台已经被占用的资源(已被占用的资源等于该虚拟机上部署服务所需的资源的总和)最少的虚拟机。When releasing a virtual machine, first select a virtual machine with the least occupied resources (the occupied resources are equal to the sum of resources required for deploying services on the virtual machine) from the cluster.

如果其他虚拟机的剩余资源不足以部署该虚拟机上的服务,也就是该虚拟机上的服务不能全部迁移到其他虚拟机上,则结束定时任务。If the remaining resources of other virtual machines are not enough to deploy the services on the virtual machine, that is, all the services on the virtual machine cannot be migrated to other virtual machines, the scheduled task ends.

如果其他虚拟机的剩余资源足够部署该虚拟机上的服务,则将该虚拟机上的所有服务迁移到其他虚拟机上,并释放该虚拟机。If the remaining resources of other virtual machines are sufficient to deploy services on the virtual machine, all services on the virtual machine are migrated to other virtual machines, and the virtual machine is released.

在本实施例的一些可选实现方式中,从虚拟机集群中选择至少一台被占用资源最少的虚拟机作为待释放虚拟机可以包括:若被占用资源最少的虚拟机的数量大于1,则选择被占用资源最少的虚拟机中配置等级最低的虚拟机作为待释放虚拟机。In some optional implementations of this embodiment, selecting at least one virtual machine with the least occupied resources from the virtual machine cluster as the virtual machine to be released may include: if the number of virtual machines with the least occupied resources is greater than 1, then Select the virtual machine with the lowest configuration level among the virtual machines with the least occupied resources as the virtual machine to be released.

在本实施例的一些可选实现方式中,上述释放虚拟机的方法还可以包括:间隔预定时间重复执行释放虚拟机的步骤。也即释放虚拟机的动作是定时完成的,譬如每小时或者每天执行一次。间隔预定时间重复上述定时执行任务,直到没有可以释放的虚拟机为止。In some optional implementation manners of this embodiment, the method for releasing the virtual machine may further include: repeatedly performing the step of releasing the virtual machine at intervals of predetermined time intervals. That is, the action of releasing the virtual machine is performed periodically, such as once every hour or every day. The above-mentioned scheduled execution tasks are repeated at predetermined intervals until there is no virtual machine that can be released.

本申请上述实施例的释放虚拟机的方法,可以定时从虚拟机集群中选择可以释放的虚拟机进行释放,从而提高了释放虚拟机的效率,进而提高了虚拟机集群的资源利用率。The method for releasing a virtual machine in the above embodiments of the present application can periodically select a releasable virtual machine from the virtual machine cluster for release, thereby improving the efficiency of releasing the virtual machine and further improving the resource utilization rate of the virtual machine cluster.

进一步参考图5,作为对上述各图所示方法的实现,本申请提供了一种用于弹性伸缩虚拟机集群的装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。Further referring to FIG. 5 , as an implementation of the methods shown in the above figures, the present application provides an embodiment of a device for elastically scaling virtual machine clusters. This device embodiment is similar to the method embodiment shown in FIG. 2 Correspondingly, the device can be specifically applied to various electronic devices.

如图5所示,本实施例的配置用于弹性伸缩虚拟机集群的装置500可以包括但不限于:余量计算单元510、需求获取单元520、等级获取单元530、目标确定单元540和服务部署单元550。As shown in FIG. 5 , the apparatus 500 configured for elastically scaling virtual machine clusters in this embodiment may include, but is not limited to: a margin calculation unit 510, a demand acquisition unit 520, a level acquisition unit 530, a target determination unit 540, and a service deployment Unit 550.

其中,余量计算单元510,配置用于在部署服务时,计算虚拟机集群中虚拟机的第一剩余资源量。需求获取单元520,配置用于获取待部署服务的资源需求量。等级获取单元530,配置用于获取虚拟机集群中虚拟机的配置等级。目标确定单元540,配置用于根据第一剩余资源量是否满足资源需求量,确定具有预定配置等级的虚拟机作为目标虚拟机。服务部署单元550,配置用于将待部署服务部署至目标虚拟机。Wherein, the remaining amount calculation unit 510 is configured to calculate the first remaining resource amount of the virtual machine in the virtual machine cluster when deploying the service. The demand obtaining unit 520 is configured to obtain the resource demand of the service to be deployed. The level obtaining unit 530 is configured to obtain the configuration level of the virtual machines in the virtual machine cluster. The target determining unit 540 is configured to determine a virtual machine with a predetermined configuration level as the target virtual machine according to whether the first remaining resource amount satisfies the resource demand amount. The service deployment unit 550 is configured to deploy the service to be deployed to the target virtual machine.

在本实施例的一些可选的实现方式中,目标确定单元可以包括但不限于:第一目标确定子单元541,配置用于响应于第一剩余资源量满足资源需求量,选择配置等级最高的虚拟机中的一台作为目标虚拟机;或第二目标确定子单元542,配置用于响应于第一剩余资源量不满足资源需求量,从虚拟机集群中选择配置等级最低的虚拟机中的一台作为参考虚拟机,并基于参考虚拟机是否为最高配置等级,确定目标虚拟机。In some optional implementations of this embodiment, the target determination unit may include but not limited to: a first target determination subunit 541 configured to select the resource with the highest configuration level in response to the first remaining resource amount meeting the resource demand amount. One of the virtual machines is used as the target virtual machine; or the second target determination subunit 542 is configured to select a virtual machine with the lowest configuration level from the virtual machine cluster in response to the first remaining resource amount not meeting the resource requirement One is used as a reference virtual machine, and the target virtual machine is determined based on whether the reference virtual machine is at the highest configuration level.

在本实施例的一些可选的实现方式中,第二目标确定子单元进一步配置用于:响应于参考虚拟机的配置等级是最高配置等级,申请一台满足资源需求量的最低配置等级的虚拟机,将申请的虚拟机加入虚拟机集群中,并将申请的虚拟机作为目标虚拟机;或响应于参考虚拟机的配置等级不是最高配置等级,计算对参考虚拟机提升配置等级后的虚拟机的第二剩余资源量,基于第二剩余资源量是否满足资源需求量,确定目标虚拟机。In some optional implementations of this embodiment, the second target determination subunit is further configured to: in response to the configuration level of the reference virtual machine being the highest configuration level, apply for a virtual machine with the lowest configuration level that meets the resource demand machine, add the applied virtual machine to the virtual machine cluster, and use the applied virtual machine as the target virtual machine; or respond to the fact that the configuration level of the reference virtual machine is not the highest configuration level, calculate the virtual machine after the configuration level of the reference virtual machine is raised The second remaining resource amount of the target virtual machine is determined based on whether the second remaining resource amount satisfies the resource requirement.

在本实施例的一些可选的实现方式中,第二目标确定子单元进一步配置用于:响应于第二剩余资源量满足资源需求量,申请一台提升配置等级后的虚拟机,将参考虚拟机上的服务迁移至申请的虚拟机中,释放参考虚拟机,将申请的虚拟机加入虚拟机集群中,并将申请的虚拟机作为目标虚拟机;或响应于第二剩余资源量未满足资源需求量,申请一台满足资源需求量的最低配置等级的虚拟机,将申请的虚拟机加入虚拟机集群中,并将申请的虚拟机作为目标虚拟机。In some optional implementations of this embodiment, the second target determination subunit is further configured to: apply for a virtual machine with an upgraded configuration level in response to the second remaining resource amount meeting the resource demand amount, and refer to the virtual machine The service on the machine is migrated to the applied virtual machine, the reference virtual machine is released, the applied virtual machine is added to the virtual machine cluster, and the applied virtual machine is used as the target virtual machine; Demand, apply for a virtual machine with the minimum configuration level that meets the resource demand, add the applied virtual machine to the virtual machine cluster, and use the applied virtual machine as the target virtual machine.

在本实施例的一些可选的实现方式中,第一目标确定子单元进一步配置用于:响应于第一剩余资源量满足资源需求量,若配置等级最高的虚拟机的数量大于1,则选择配置等级最高的虚拟机中剩余资源量最小的虚拟机作为目标虚拟机。In some optional implementation manners of this embodiment, the first target determining subunit is further configured to: in response to the first remaining resource amount meeting the resource demand amount, if the number of virtual machines with the highest configuration level is greater than 1, select The virtual machine with the smallest amount of remaining resources among the virtual machines with the highest level is configured as the target virtual machine.

在本实施例的一些可选的实现方式中,第二目标确定子单元进一步配置用于:若虚拟机集群中配置等级最低的虚拟机的数量大于1,则选择配置等级最低的虚拟机中剩余资源量最小的虚拟机作为参考虚拟机。In some optional implementations of this embodiment, the second target determination subunit is further configured to: if the number of virtual machines with the lowest configuration level in the virtual machine cluster is greater than 1, select the remaining virtual machines with the lowest configuration level The virtual machine with the smallest amount of resources is used as the reference virtual machine.

在本实施例的一些可选的实现方式中,装置还可以包括但不限于虚拟机释放单元560,虚拟机释放单元可以包括但不限于:目标选定子单元561,配置用于从虚拟机集群中选择至少一台被占用资源最少的虚拟机作为待释放虚拟机;资源判断子单元562,配置用于判断虚拟机集群中除待释放虚拟机之外的其他虚拟机的剩余资源量是否满足部署待释放虚拟机上的服务所需要的资源量;虚拟机释放子单元563,配置用于若虚拟机集群中除待释放虚拟机之外的其他虚拟机的剩余资源量满足部署待释放虚拟机上的服务所需要的资源量,则将待释放虚拟机上的服务迁移至其他虚拟机,并释放待释放虚拟机。In some optional implementations of this embodiment, the device may further include, but not limited to, a virtual machine release unit 560, and the virtual machine release unit may include, but not limited to: a target selection subunit 561 configured to select from a virtual machine cluster Select at least one virtual machine with the least occupied resources as the virtual machine to be released; the resource judging subunit 562 is configured to judge whether the remaining resources of other virtual machines in the virtual machine cluster except the virtual machine to be released meet the deployment The amount of resources required by the service on the virtual machine to be released; the virtual machine release subunit 563 is configured for if the remaining resources of other virtual machines in the virtual machine cluster except the virtual machine to be released meet the requirement of deploying on the virtual machine to be released If the amount of resources required by the service is determined, the service on the virtual machine to be released is migrated to another virtual machine, and the virtual machine to be released is released.

在本实施例的一些可选的实现方式中,目标选定单元进一步配置用于:若被占用资源最少的虚拟机的数量大于1,则选择被占用资源最少的虚拟机中配置等级最低的虚拟机作为待释放虚拟机。In some optional implementations of this embodiment, the target selection unit is further configured to: if the number of virtual machines with the least occupied resources is greater than 1, select the virtual machine with the lowest configuration level among the virtual machines with the fewest occupied resources machine as a virtual machine to be released.

在本实施例的一些可选的实现方式中,装置还可以包括但不限于:定时释放单元570,配置用于间隔预定时间调用虚拟机释放单元以释放虚拟机。In some optional implementation manners of this embodiment, the device may further include, but not limited to: a timing release unit 570 configured to call the virtual machine release unit at predetermined intervals to release the virtual machine.

本领域技术人员可以理解,上述用于弹性伸缩虚拟机集群的装置500还包括一些其他公知结构,例如处理器、存储器等,为了不必要地模糊本公开的实施例,这些公知的结构在图5中未示出。Those skilled in the art can understand that the above-mentioned apparatus 500 for elastically scaling virtual machine clusters also includes some other known structures, such as processors, memories, etc. In order to unnecessarily obscure the embodiments of the present disclosure, these known structures are shown in FIG. 5 not shown in

应当理解,装置500中记载的单元510至单元550分别与参考图2中描述的方法中的各个步骤相对应;装置500中记载的单元560和单元570分别与参考图4中描述的方法的各个步骤相对应。由此,上文针对用于弹性伸缩虚拟机集群的方法描述的操作和特征同样适用于装置500及其中包含的单元,在此不再赘述。装置500的相应单元可以与终端设备和/或服务器中的单元相互配合以实现本申请实施例的方案。It should be understood that the unit 510 to unit 550 recorded in the device 500 correspond to each step in the method described with reference to FIG. corresponding to the steps. Therefore, the operations and features described above for the method for elastically scaling a virtual machine cluster are also applicable to the apparatus 500 and the units contained therein, and will not be repeated here. The corresponding units of the apparatus 500 may cooperate with the units in the terminal device and/or the server to implement the solutions of the embodiments of the present application.

在本申请的上述实施例中,第一剩余资源量及第二剩余资源量仅代表两个不同的剩余资源量。本领域技术人员应当理解,其中的第一或第二并不构成对剩余资源量的特殊限定。In the above embodiments of the present application, the first remaining resource amount and the second remaining resource amount only represent two different remaining resource amounts. Those skilled in the art should understand that the first or second does not constitute a special limitation on the amount of remaining resources.

在本申请的上述实施例中,第一目标确定子单元及第二目标确定子单元仅代表两个不同的目标确定子单元,两者确定目标虚拟机的源虚拟机和确定方式不同。本领域技术人员应当理解,其中的第一或第二并不构成对目标确定子单元的特殊限定。In the above embodiments of the present application, the first target determination subunit and the second target determination subunit represent only two different target determination subunits, and the source virtual machine and determination method of the target virtual machine are determined differently. Those skilled in the art should understand that the first or second does not constitute a special limitation on the target determining subunit.

下面参考图6,其示出了适于用来实现本申请实施例的虚拟机服务器的物理计算机系统600的结构示意图。Referring now to FIG. 6 , it shows a schematic structural diagram of a physical computer system 600 suitable for implementing the virtual machine server of the embodiment of the present application.

如图6所示,计算机系统600包括中央处理单元(CPU)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储部分608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有系统600操作所需的各种程序和数据。CPU 601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6 , a computer system 600 includes a central processing unit (CPU) 601 that can be programmed according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage section 608 into a random-access memory (RAM) 603 Instead, various appropriate actions and processes are performed. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601 , ROM 602 , and RAM 603 are connected to each other via a bus 604 . An input/output (I/O) interface 605 is also connected to the bus 604 .

以下部件连接至I/O接口605:包括键盘、鼠标等的输入部分606;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分607;包括硬盘等的存储部分608;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分609。通信部分609经由诸如因特网的网络执行通信处理。驱动器610也根据需要连接至I/O接口605。可拆卸介质611,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器610上,以便于从其上读出的计算机程序根据需要被安装入存储部分608。The following components are connected to the I/O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 608 including a hard disk, etc. and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, optical disk, magneto-optical disk, semiconductor memory, etc. is mounted on the drive 610 as necessary so that a computer program read therefrom is installed into the storage section 608 as necessary.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括有形地包含在机器可读介质上的计算机程序,所述计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分609从网络上被下载和安装,和/或从可拆卸介质611被安装。在该计算机程序被中央处理单元(CPU)601执行时,执行本申请的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product including a computer program tangibly embodied on a machine-readable medium, the computer program including program code for performing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication portion 609 and/or installed from removable media 611 . When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the method of the present application are performed.

附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,所述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logic devices for implementing the specified Executable instructions for a function. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.

描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括余量计算单元、需求获取单元、等级获取单元、目标确定单元和服务部署单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,余量计算单元还可以被描述为“在部署服务时,计算虚拟机集群中虚拟机的第一剩余资源量的单元”。The units involved in the embodiments described in the present application may be implemented by means of software or by means of hardware. The described units can also be set in a processor, for example, it can be described as: a processor includes a balance calculation unit, a demand acquisition unit, a level acquisition unit, a target determination unit and a service deployment unit. Wherein, the names of these units do not limit the unit itself in some cases, for example, the remaining calculation unit can also be described as "when deploying services, calculate the first remaining resource of the virtual machine in the virtual machine cluster Quantitative unit".

作为另一方面,本申请还提供了一种非易失性计算机存储介质,该非易失性计算机存储介质可以是上述实施例中所述装置中所包含的非易失性计算机存储介质;也可以是单独存在,未装配入终端中的非易失性计算机存储介质。上述非易失性计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备:在部署服务时,计算虚拟机集群中虚拟机的第一剩余资源量;获取待部署服务的资源需求量;获取虚拟机集群中虚拟机的配置等级;根据第一剩余资源量是否满足资源需求量,确定具有预定配置等级的虚拟机作为目标虚拟机;将待部署服务部署至目标虚拟机。As another aspect, the present application also provides a non-volatile computer storage medium, which may be the non-volatile computer storage medium contained in the device described in the above embodiments; It may be a non-volatile computer storage medium that exists independently and is not assembled into the terminal. The above-mentioned non-volatile computer storage medium stores one or more programs, and when the one or more programs are executed by a device, the device: when deploying services, calculates the first virtual machine in the virtual machine cluster The amount of remaining resources; obtaining the resource requirement of the service to be deployed; obtaining the configuration level of the virtual machine in the virtual machine cluster; according to whether the first remaining resource amount meets the resource requirement, determining a virtual machine with a predetermined configuration level as the target virtual machine; The service to be deployed is deployed to the target virtual machine.

以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离所述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principle. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, but should also cover the technical solution formed by the above-mentioned technical features without departing from the inventive concept. Other technical solutions formed by any combination of or equivalent features thereof. For example, a technical solution formed by replacing the above-mentioned features with technical features with similar functions disclosed in (but not limited to) this application.

Claims (18)

Whether meet the resources requirement according to first surplus yield, determines the virtual machine with predetermined configurations gradeAs target virtual machine, including:It is unsatisfactory for the resources requirement in response to first surplus yield, from the virtual machineA conduct in cluster in the elementary virtual machine of option and installment refers to virtual machine, and whether is based on the reference virtual machineFor highest configuration level, target virtual machine is determined;It is described to be based on whether the reference virtual machine is highest configuration level, determine meshMarking virtual machine includes:It is not highest configuration level in response to the configuration level with reference to virtual machine, calculates to described with reference to emptyWhether quasi- machine promotes the second surplus yield of the virtual machine after configuration level, be highest configuration etc. based on the reference virtual machineGrade, determines target virtual machine;It is described to be based on whether the reference virtual machine is highest configuration level, determine target virtual machine packetIt includes:Meet the resources requirement in response to second surplus yield, apply for a virtual machine promoted after configuration level,By in the virtual machine of the services migrating with reference on virtual machine to application, release is described with reference to virtual machine, by the applicationVirtual machine is added in the cluster virtual machine, and using the virtual machine of the application as target virtual machine;
Target determination unit, for whether meeting the resources requirement according to first surplus yield, determining has in advanceThe virtual machine of configuration level is determined as target virtual machine, including:Second target determination subelement, for surplus in response to described firstRemaining stock number is unsatisfactory for the resources requirement, and one from the elementary virtual machine of option and installment in the cluster virtual machineWhether platform, which is used as, refers to virtual machine, and be highest configuration level based on the reference virtual machine, determines target virtual machine;DescribedTwo target determination subelements are further used for:It is not highest configuration level in response to the configuration level with reference to virtual machine, meterThe second surplus yield for promoting the virtual machine after configuration level with reference to virtual machine to described is calculated, second surplus resources are based onWhether amount meets the resources requirement, determines target virtual machine;Meet the resource in response to second surplus yieldDemand applies for a virtual machine promoted after configuration level, by the services migrating with reference on virtual machine to the void of applicationIn quasi- machine, release is described to refer to virtual machine, and the virtual machine of the application is added in the cluster virtual machine, and by the applicationVirtual machine as target virtual machine;
CN201610575356.7A2016-07-202016-07-20 Method and device for elastic scaling virtual machine clusterActiveCN106201661B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201610575356.7ACN106201661B (en)2016-07-202016-07-20 Method and device for elastic scaling virtual machine cluster
US15/429,342US10572285B2 (en)2016-07-202017-02-10Method and apparatus for elastically scaling virtual machine cluster

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610575356.7ACN106201661B (en)2016-07-202016-07-20 Method and device for elastic scaling virtual machine cluster

Publications (2)

Publication NumberPublication Date
CN106201661A CN106201661A (en)2016-12-07
CN106201661Btrue CN106201661B (en)2018-09-14

Family

ID=57491037

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610575356.7AActiveCN106201661B (en)2016-07-202016-07-20 Method and device for elastic scaling virtual machine cluster

Country Status (2)

CountryLink
US (1)US10572285B2 (en)
CN (1)CN106201661B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110928689A (en)*2019-12-052020-03-27中国人民解放军军事科学院国防科技创新研究院Self-adaptive resource management method and device for distributed reinforcement learning training

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108399101B (en)*2017-02-062021-03-16腾讯科技(深圳)有限公司 Method, apparatus and system for resource scheduling
JP6969282B2 (en)*2017-10-252021-11-24富士通株式会社 Information processing equipment, information processing system and information processing method
CN107748691B (en)*2017-10-302020-04-24平安科技(深圳)有限公司Virtual machine deployment method, device, equipment and computer readable storage medium
CN109597674B (en)*2018-04-202021-04-06中国科学院高能物理研究所Shared virtual resource pool share scheduling method and system
US20190386895A1 (en)*2018-06-132019-12-19At&T Intellectual Property I, L.P.East-west traffic monitoring solutions for the microservice virtualized data center lan
US11294719B2 (en)*2018-07-172022-04-05Vmware, Inc.Generating metrics for quantifying computing resource usage based on cost and utilization of virtualized services and optimizing performance through virtualized service migration
CN108900361B (en)*2018-08-102021-05-25北京金山云网络技术有限公司 Cloud resource configuration determination method, device and electronic device
CN110888733B (en)*2018-09-112023-12-26三六零科技集团有限公司Cluster resource use condition processing method and device and electronic equipment
US11133987B2 (en)*2018-10-242021-09-28Cox Communications, Inc.Systems and methods for network configuration management
CN109639486B (en)*2018-12-132021-10-15杭州当虹科技股份有限公司Live broadcast-based cloud host elastic expansion method
CN110958311A (en)*2019-11-272020-04-03北京大学YARN-based shared cluster elastic expansion system and method
CN110990024B (en)*2019-11-282024-02-09合肥讯飞数码科技有限公司Application deployment method, device, equipment and storage medium
CN111736957A (en)*2020-06-292020-10-02平安普惠企业管理有限公司 Hybrid deployment method, device, device and storage medium for multiple types of services
CN112162819B (en)*2020-09-182023-12-22北京浪潮数据技术有限公司Application deployment method crossing virtual machines and Kubernetes clusters
CN114996003B (en)*2022-05-272024-10-01北京火山引擎科技有限公司 A cloud service deployment method, device, electronic device and storage medium
CN115643178B (en)*2022-10-262024-12-06新华三信息安全技术有限公司 A network range configuration method, device, equipment and machine-readable storage medium
CN116225703A (en)*2023-02-162023-06-06中移动信息技术有限公司 Cluster processing method, device, device, and computer-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102446115A (en)*2012-01-092012-05-09浙江大学Dynamic deployment method of virtual machine
CN103019861A (en)*2012-12-112013-04-03华为技术有限公司Distribution method and distribution device of virtual machine
CN103455378A (en)*2013-09-052013-12-18华为技术有限公司Resource distribution method of virtual clusters, device and system
CN103577271A (en)*2013-11-142014-02-12浪潮(北京)电子信息产业有限公司Cloud management platform, host machines and virtual machine resource deploying method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US8914511B1 (en)*2009-06-262014-12-16VMTurbo, Inc.Managing resources in virtualization systems
TW201336264A (en)*2012-02-162013-09-01Hon Hai Prec Ind Co LtdMethod for increasing virtual machines
KR20140045156A (en)*2012-10-082014-04-16한국전자통신연구원Apparatus and method for provisioning
US20140149493A1 (en)*2012-11-292014-05-29Utku Gunay ACERMethod for joint service placement and service routing in a distributed cloud
US10048976B2 (en)*2013-11-292018-08-14New Jersey Institute Of TechnologyAllocation of virtual machines to physical machines through dominant resource assisted heuristics
US10142161B2 (en)*2016-01-192018-11-27Radware, Ltd.Techniques for distribution of application delivery

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102446115A (en)*2012-01-092012-05-09浙江大学Dynamic deployment method of virtual machine
CN103019861A (en)*2012-12-112013-04-03华为技术有限公司Distribution method and distribution device of virtual machine
CN103455378A (en)*2013-09-052013-12-18华为技术有限公司Resource distribution method of virtual clusters, device and system
CN103577271A (en)*2013-11-142014-02-12浪潮(北京)电子信息产业有限公司Cloud management platform, host machines and virtual machine resource deploying method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110928689A (en)*2019-12-052020-03-27中国人民解放军军事科学院国防科技创新研究院Self-adaptive resource management method and device for distributed reinforcement learning training

Also Published As

Publication numberPublication date
CN106201661A (en)2016-12-07
US10572285B2 (en)2020-02-25
US20180027061A1 (en)2018-01-25

Similar Documents

PublicationPublication DateTitle
CN106201661B (en) Method and device for elastic scaling virtual machine cluster
US10355934B2 (en)Vertical scaling of computing instances
EP3401787B1 (en)Analyzing resource utilization of a cloud computing resource in a cloud computing environment
CN103425529B (en)The system and method for virtual machine is migrated between network computing environment based on the utilization of resources
US10430218B2 (en)Management of demand for virtual computing resources
US8996647B2 (en)Optimizing storage between mobile devices and cloud storage providers
CN111694646B (en)Resource scheduling method, device, electronic equipment and computer readable storage medium
CN109408205B (en)Task scheduling method and device based on hadoop cluster
CN104243405B (en)A kind of request processing method, apparatus and system
US20130019015A1 (en)Application Resource Manager over a Cloud
RU2697700C2 (en)Equitable division of system resources in execution of working process
CN104620222A (en) Extend a virtual machine instance
CN108052384A (en)A kind of task processing method, service platform and electronic equipment
US11388232B2 (en)Replication of content to one or more servers
CN110716809B (en) Method and apparatus for scheduling cloud resources
JP2017107274A (en) Virtual machine expansion method, information processing apparatus, and virtual machine expansion system
US20140282540A1 (en)Performant host selection for virtualization centers
JP7740845B2 (en) Tag-driven scheduling of computing resources for function execution
JP2021504780A (en) Application Prioritization for Automatic Diagonal Scaling in a Distributed Computing Environment
CN114155026A (en) A resource allocation method, device, server and storage medium
CN114546587A (en) A method for expanding and shrinking capacity of online image recognition service and related device
CN115629853A (en)Task scheduling method and device
CN114237902A (en)Service deployment method and device, electronic equipment and computer readable medium
KR101695238B1 (en)System and method for job scheduling using multi computing resource
CN107045452B (en)Virtual machine scheduling method and device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp