It’s a Best Fit policy which selects the Host having the most used amount of CPU MIPS to place a given VM, disregarding energy consumption.
Author: Anton Beloglazov, Manoel Campos da Silva Filho
VmAllocationPolicyMigrationBestFitStaticThreshold(PowerVmSelectionPolicy vmSelectionPolicy, double overUtilizationThreshold, BiFunction<VmAllocationPolicy, Vm, Optional<Host>> findHostForVmFunction)¶
Creates a new VmAllocationPolicy, changing the
Functionto select a Host for a Vm.
findHostForVmInternal(Vm vm, Stream<Host> hostStream)¶
Gets the Host having the least available MIPS capacity (max used MIPS).
This method is ignoring the additional filtering performed by the super class. This way, Host selection is performed ignoring energy consumption. However, all the basic filters defined in the super class are ensured, since this method is called just after they are applied.