Package org.cloudbus.cloudsim.allocationpolicies
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
-
ClassDescriptionAn interface to be implemented by each class that represents a policy used by a
Datacenter
to choose aHost
to place or migrate a givenVm
orVmGroup
.An abstract class that represents the policy used by aDatacenter
to choose aHost
to place or migrate a givenVm
.A Best Fit VmAllocationPolicy implementation that chooses, as the host for a VM, the one with the most number of PEs in use, which has enough free PEs for a VM.A First Fit VM allocation policy which finds the first Host having suitable resources to place a given VM.A VM allocation policy which finds a random Host having suitable resources to place a given VM.A Round-Robin VM allocation policy which finds the next Host having suitable resources to place a given VM in a circular way.A VmAllocationPolicy implementation that chooses, as the host for a VM, that one with the fewest PEs in use.