Package org.cloudbus.cloudsim.allocationpolicies

Provides classes that implement policies for a Datacenter to select a Host to place or migrate a VM, based on some criteria defined by each class. Different policies can follow approaches such as best-fit, worst-fit and so on.

Each Datacenter must have its own instance of a VmAllocationPolicy. The most basic implementation is provided by the class VmAllocationPolicySimple. Only classes that implement the VmAllocationPolicyMigration interface are able to perform VM migration.

Author:
Manoel Campos da Silva Filho
  • Interface Summary 
    Interface Description
    VmAllocationPolicy
    An interface to be implemented by each class that represents a policy used by a Datacenter to choose a Host to place or migrate a given Vm or VmGroup.
  • Class Summary 
    Class Description
    VmAllocationPolicyAbstract
    An abstract class that represents the policy used by a Datacenter to choose a Host to place or migrate a given Vm.
    VmAllocationPolicyBestFit
    A Worst Fit VmAllocationPolicy implementation that chooses, as the host for a VM, that one with the most number of PEs in use, which are enough for a VM.
    VmAllocationPolicyFirstFit
    A First Fit VM allocation policy which finds the first Host having suitable resources to place a given VM.
    VmAllocationPolicyRandom
    A VM allocation policy which finds a random Host having suitable resources to place a given VM.
    VmAllocationPolicyRoundRobin
    A Round-Robin VM allocation policy which finds the next Host having suitable resources to place a given VM in a circular way.
    VmAllocationPolicySimple
    A VmAllocationPolicy implementation that chooses, as the host for a VM, that one with the fewest PEs in use.
    VmAllocationPolicyWorstFit
    A Worst Fit VmAllocationPolicy implementation that chooses, as the host for a VM, that one with the least number of PEs in use, which are enough for the VM.