主权项 |
1. A system comprising:
a plurality of work groups each comprising a plurality of virtual machines, the plurality of work groups comprising a first work group that includes a first machine with a virtual machine (VM) to be migrated, the system configured for: generating, by the first machine, a migration request that identifies one or more contiguous memory regions used by the VM for operation; transmitting, by the first machine, the migration request to other work groups included in the plurality of work groups; receiving, by the first machine, a score from each of the other work groups indicating a number of contiguous memory regions identified in the migration request that are available at the respective work group; comparing the scores received from the other work groups and selecting one of the work groups having the most contiguous memory regions available, as compared to others of the work groups, as a destination; upon determining a tie in the scores of two or more of the work groups, selecting, as the destination for the VM, the work group having a shortest distance to the first machine; and causing a migration of the VM from the first machine to a second machine in the selected work group based on the identification of the selected work group as the destination. |