VmAllocationPolicyMigrationMedianAbsoluteDeviation

public class VmAllocationPolicyMigrationMedianAbsoluteDeviation extends VmAllocationPolicyMigrationDynamicUpperThresholdFirstFit

A VM allocation policy that uses Median Absolute Deviation (MAD) to compute a dynamic threshold in order to detect host over utilization. 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:

Author:Anton Beloglazov

Constructors

VmAllocationPolicyMigrationMedianAbsoluteDeviation

public VmAllocationPolicyMigrationMedianAbsoluteDeviation(PowerVmSelectionPolicy vmSelectionPolicy)

Creates a VmAllocationPolicyMigrationMedianAbsoluteDeviation with a safety parameter equals to 0 and no fallback policy.

Parameters:
  • vmSelectionPolicy – the policy that defines how VMs are selected for migration

VmAllocationPolicyMigrationMedianAbsoluteDeviation

public VmAllocationPolicyMigrationMedianAbsoluteDeviation(PowerVmSelectionPolicy vmSelectionPolicy, double safetyParameter, VmAllocationPolicyMigration fallbackPolicy)

Creates a VmAllocationPolicyMigrationMedianAbsoluteDeviation.

Parameters:
  • vmSelectionPolicy – the policy that defines how VMs are selected for migration
  • safetyParameter – the safety parameter
  • fallbackPolicy – the fallback VM allocation policy to be used when the over utilization host detection doesn’t have data to be computed

Methods

computeHostUtilizationMeasure

public double computeHostUtilizationMeasure(Host host)

Computes the host utilization MAD used for generating the host over utilization threshold.

Parameters:
  • host – the host
Throws:
  • {@inheritDoc}
Returns:

the host utilization MAD