主权项 |
1. A method for placing virtual machines in a collection, the method comprising:
determining, by a computing device, a compatible set of hosts prior to placing virtual machines in the collection, wherein the compatible set is determined on the basis of the compatibility of types of resources in the host with the virtual machines in the collection; determining, by the computing device, a plurality of equivalence sets of hosts from the compatible set of hosts prior to placing virtual machines in the collection, wherein hosts in an equivalence set of hosts are considered similar; testing equivalence sets of hosts in the plurality of equivalence sets of hosts, wherein a test of an equivalence set of hosts determines a number of virtual machines in the collection that can be placed on hosts in the equivalence set of hosts; ranking the tested equivalence sets of hosts, wherein the ranking is based on the testing; and selecting an equivalence set of hosts from the ranked equivalence sets of hosts in which to place the virtual machines in the collection based on the rankings; and placing at least a portion of the virtual machines in the collection on one or more hosts in the selected equivalence set of hosts. |