Class ResourceScalingGradual

java.lang.Object
org.cloudsimplus.autoscaling.resources.ResourceScalingGradual
All Implemented Interfaces:
ResourceScaling

public class ResourceScalingGradual
extends java.lang.Object
implements ResourceScaling
A ResourceScaling for which the capacity of the resource to be scaled will be gradually resized according to the defined scaling factor. This scaling type may not automatically move a Vm from an under or overload state, since it will increase or decrease the resource capacity the specified fraction at a time.

This gradual resize may give the opportunity for the Vm workload to return to the normal state, without requiring further scaling. However, if the workload doesn't return quickly to the normal and expected state, that may cause longer SLA violation time.

This is the default type of scaling in case one is not defined.

Since:
CloudSim Plus 1.2.0
Author:
Manoel Campos da Silva Filho
  • Field Summary

    Fields inherited from interface org.cloudsimplus.autoscaling.resources.ResourceScaling

    NULL
  • Constructor Summary

    Constructors 
    Constructor Description
    ResourceScalingGradual()  
  • Method Summary

    Modifier and Type Method Description
    double getResourceAmountToScale​(VerticalVmScaling vmScaling)
    Computes the amount of resource to scale up or down, depending if the resource is over or underloaded, respectively.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait