Patent ID: 9569277
Date: 2017-02-14
CPC Classifications: G06F

Claim:
1. An apparatus, comprising: at least one processor; and program code configured upon execution by the at least one processor to rebalance a workload of a virtualized computing environment, the virtualized computing environment of a type including a shared pool of resources disposed in a plurality of hosts and a plurality of virtual machines resident on the plurality of hosts and configured to share the shared pool of resources, 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, and wherein the program code is configured to rebalance the workload by: wherein the program code is configured to attempt to identify the second candidate host by identifying multiple hosts among the plurality of hosts having sufficient unused capacity to support allocating the respective first resource capacity to the identified virtual machine after accounting for the respective second resource capacities for virtual machines already resident thereon and selecting the second candidate host from among the multiple hosts based upon the second candidate host having a greatest remaining resource capacity from among the multiple hosts, wherein a respective remaining resource capacity for the second candidate host is equal to that of another host among the multiple hosts, wherein the program code is configured to select the second candidate host further by selecting the second candidate host over the other host to minimize resource contention, wherein the virtualized computing environment further stores, for each virtual machine among the plurality of virtual machines, a respective shared weight representing a ratio to which the respective virtual machine receives unused resource capacity relative to other virtual machines, and wherein the program code is configured to select the second candidate host over the other host to minimize resource contention by selecting the second candidate host based upon the second candidate host having a lower sum of shared weights for virtual machines resident on the second candidate host than that of the other host.