Class VmAllocationPolicyMigrationLocalRegressionRobust
- java.lang.Object
-
- org.cloudbus.cloudsim.allocationpolicies.VmAllocationPolicyAbstract
-
- org.cloudbus.cloudsim.allocationpolicies.migration.VmAllocationPolicyMigrationAbstract
-
- org.cloudbus.cloudsim.allocationpolicies.migration.VmAllocationPolicyMigrationDynamicUpperThresholdFirstFit
-
- org.cloudbus.cloudsim.allocationpolicies.migration.VmAllocationPolicyMigrationLocalRegression
-
- org.cloudbus.cloudsim.allocationpolicies.migration.VmAllocationPolicyMigrationLocalRegressionRobust
-
- All Implemented Interfaces:
VmAllocationPolicyMigration
,VmAllocationPolicyMigrationDynamicUpperThreshold
,VmAllocationPolicy
public class VmAllocationPolicyMigrationLocalRegressionRobust extends VmAllocationPolicyMigrationLocalRegression
A VM allocation policy that uses Local Regression Robust (LRR) to predict host utilization (load) and define if a host is overloaded or not. It's a Best Fit policy which selects the Host with most efficient power usage to place a given VM.If you are using any algorithms, policies or workload included in the power package please cite the following paper:
- Since:
- CloudSim Toolkit 3.0
- Author:
- Anton Beloglazov
-
-
Field Summary
-
Fields inherited from interface org.cloudbus.cloudsim.allocationpolicies.VmAllocationPolicy
NULL
-
Fields inherited from interface org.cloudbus.cloudsim.allocationpolicies.migration.VmAllocationPolicyMigration
NULL
-
-
Constructor Summary
Constructors Constructor Description VmAllocationPolicyMigrationLocalRegressionRobust(PowerVmSelectionPolicy vmSelectionPolicy)
Creates a VmAllocationPolicyMigrationLocalRegressionRobust with asafety parameter
equals to 0 and nofallback policy
.VmAllocationPolicyMigrationLocalRegressionRobust(PowerVmSelectionPolicy vmSelectionPolicy, double safetyParameter, VmAllocationPolicyMigration fallbackVmAllocationPolicy)
Creates a VmAllocationPolicyMigrationLocalRegressionRobust.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double[]
getParameterEstimates(double[] reversedUsageHistory)
Gets the utilization estimates.-
Methods inherited from class org.cloudbus.cloudsim.allocationpolicies.migration.VmAllocationPolicyMigrationLocalRegression
computeHostUtilizationMeasure, getMaximumVmMigrationTime, getOverUtilizationThreshold, getSchedulingInterval, isHostOverloaded, setSchedulingInterval
-
Methods inherited from class org.cloudbus.cloudsim.allocationpolicies.migration.VmAllocationPolicyMigrationDynamicUpperThresholdFirstFit
getFallbackVmAllocationPolicy, getSafetyParameter, setFallbackVmAllocationPolicy, setSafetyParameter
-
Methods inherited from class org.cloudbus.cloudsim.allocationpolicies.migration.VmAllocationPolicyMigrationAbstract
addHistoryEntryIfAbsent, findHostForVm, findHostForVm, findHostForVm, findHostForVmInternal, getHostCpuUsageArray, getMaxUtilizationAfterAllocation, getMetricHistory, getOptimizedAllocationMap, getPowerAfterAllocation, getPowerAfterAllocationDifference, getSwitchedOffHosts, getTimeHistory, getUnderUtilizationThreshold, getUtilizationHistory, getUtilizationOfCpuMips, getVmSelectionPolicy, getVmsToMigrateFromUnderUtilizedHost, isHostUnderloaded, notAllVmsAreMigratingOut, setUnderUtilizationThreshold, setVmSelectionPolicy
-
Methods inherited from class org.cloudbus.cloudsim.allocationpolicies.VmAllocationPolicyAbstract
addPesFromHost, addUsedPes, allocateHostForVm, allocateHostForVm, deallocateHostForVm, getDatacenter, getHostFreePesMap, getHostList, removeUsedPes, scaleVmVertically, setDatacenter, setFindHostForVmFunction, setHostFreePesMap, setUsedPes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cloudbus.cloudsim.allocationpolicies.VmAllocationPolicy
allocateHostForVm, allocateHostForVm, deallocateHostForVm, findHostForVm, getDatacenter, getHostList, getOptimizedAllocationMap, scaleVmVertically, setDatacenter, setFindHostForVmFunction
-
Methods inherited from interface org.cloudbus.cloudsim.allocationpolicies.migration.VmAllocationPolicyMigration
getMetricHistory, getTimeHistory, getUnderUtilizationThreshold, getUtilizationHistory, isHostUnderloaded, setUnderUtilizationThreshold
-
-
-
-
Constructor Detail
-
VmAllocationPolicyMigrationLocalRegressionRobust
public VmAllocationPolicyMigrationLocalRegressionRobust(PowerVmSelectionPolicy vmSelectionPolicy)
Creates a VmAllocationPolicyMigrationLocalRegressionRobust with asafety parameter
equals to 0 and nofallback policy
.- Parameters:
vmSelectionPolicy
- the policy that defines how VMs are selected for migration
-
VmAllocationPolicyMigrationLocalRegressionRobust
public VmAllocationPolicyMigrationLocalRegressionRobust(PowerVmSelectionPolicy vmSelectionPolicy, double safetyParameter, VmAllocationPolicyMigration fallbackVmAllocationPolicy)
Creates a VmAllocationPolicyMigrationLocalRegressionRobust.- Parameters:
vmSelectionPolicy
- the policy that defines how VMs are selected for migrationsafetyParameter
- the safety parameterfallbackVmAllocationPolicy
- the fallback VM allocation policy to be used when the over utilization host detection doesn't have data to be computed
-
-
Method Detail
-
getParameterEstimates
protected double[] getParameterEstimates(double[] reversedUsageHistory)
Gets the utilization estimates.- Overrides:
getParameterEstimates
in classVmAllocationPolicyMigrationLocalRegression
- Parameters:
reversedUsageHistory
- the utilization history in reverse order- Returns:
- the utilization estimates
-
-