×

Iterative rebalancing of virtual resources among VMs to allocate a second resource capacity by migrating to servers based on resource allocations and priorities of VMs

  • US 10,514,960 B2
  • Filed: 10/24/2016
  • Issued: 12/24/2019
  • Est. Priority Date: 01/29/2016
  • Status: Active Grant
First Claim
Patent Images

1. An apparatus, comprising:

  • at least one processor; and

    program code configured upon execution by the at least one processor to rebalance virtual resources for each virtual machine of a plurality of virtual machines running on a plurality of hosts of a virtualized computing environment, the virtualized computing environment of a type including a shared pool of resources disposed in the plurality of hosts and shared by the plurality of virtual machines, wherein the virtualized computing environment stores, for each virtual machine among the plurality of virtual machines, a respective first resource capacity that represents a first portion of the shared pool of resources for the respective virtual machine and a respective second resource capacity that represents a second portion of the shared pool of resources for the respective virtual machine that is greater than that of the first resource capacity, wherein the first resource capacity for each respective virtual machine is a minimum resource capacity that represents an assured portion of the shared pool of resources for the respective virtual machine, and wherein the second resource capacity for each respective virtual machine is a desired resource capacity that represents a desired portion of the shared pool of resources for the respective virtual machine, and wherein the program code is configured to;

    rebalance the virtual resources for the virtual machines by;

    identifying a virtual machine among the plurality of virtual machines that is allocated a smaller portion of the shared pool of resources than that of the respective second resource capacity for the respective second portion;

    determining using at least one processor if a home host for the identified virtual machine has sufficient unused capacity to support allocating to the identified virtual machine the respective second resource capacity for the identified virtual machine on the home host;

    in response to determining that the home host for the identified virtual machine has sufficient unused capacity to support allocating to the identified virtual machine the respective second resource capacity for the identified virtual machine on the home host, resizing the identified virtual machine on the home host to allocate at least the respective second resource capacity to the identified virtual machine;

    in response to determining that the home host for the identified virtual machine has insufficient unused capacity to support allocating to the identified virtual machine the respective second resource capacity for the identified virtual machine on the home host, attempting to identify a candidate host by;

    identifying a first candidate host among multiple hosts having sufficient unused capacity to support allocating the respective second resource capacity to the identified virtual machine after accounting for the respective second resource capacities for virtual machines already resident thereon;

    selecting the first candidate host from among the multiple hosts based upon the first candidate host having a greatest remaining resource capacity from among the multiple hosts, wherein a respective remaining resource capacity for the first candidate host is equal to that of another host among the multiple hosts, wherein the program code is configured to select the first candidate host further by selecting the first candidate host based upon the priorities of virtual machines hosted in the first candidate host, and wherein the priorities are specified by an administrator or a consumer and each represent a ratio to which a virtual machine receives unused virtual resources; and

    in response to successfully identifying the first candidate host, moving the identified virtual machine to the selected first candidate host and allocating to the identified virtual machine the respective second resource capacity for the identified virtual machine on the selected first candidate host; and

    leave such identified virtual machine on the home host in response to a failure to successfully identify the first candidate host and iteratively identify each virtual machine of the plurality of virtual machines running on the plurality of hosts, to rebalance the virtual resources.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×