It’s a Worst Fit policy which selects the Host having the least used amount of CPU MIPS to place a given VM, disregarding energy consumption.
Author: Anton Beloglazov, Manoel Campos da Silva Filho
VmAllocationPolicyMigrationWorstFitStaticThreshold(VmSelectionPolicy 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 most available MIPS capacity (min 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.