Package org.cloudsimplus.allocationpolicies
package org.cloudsimplus.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, first-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 aHostto place or migrate a givenVmorVmGroup.An abstract class that represents the policy used by aDatacenterto choose aHostto place or migrate a givenVm.Allocates one different underloaded Host for each submitted VM from a List (in batch), ifDatacenterBroker.isBatchVmCreation()is true, so that the broker sends a List of VMs to be created in a single event (instead of sending a new event for each VM).A Best Fit VmAllocationPolicy implementation that chooses, as the host for a VM, the one with the highest 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 enough 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.