Class ResourceScalingInstantaneous
java.lang.Object
org.cloudsimplus.autoscaling.resources.ResourceScalingInstantaneous
- All Implemented Interfaces:
ResourceScaling
A
ResourceScaling
for which the capacity of the resource to be scaled will be
instantaneously resized to move the Vm from the under or overload state.
This way, the SLA violation time will be reduced.
This scaling type will resize the resource capacity in the following way:
- in underload conditions: it decreases the resource capacity to be equal to the current load of the resource being scaled;
- in overload conditions: it increases the resource capacity to be equal to the current load of the resource being scaled.
scaling factor
, for safety.
This extra amount added is to enable the resource usage to grow up to the scaling factor
without needing to resize the resource again. If it grows up to the scaling factor,
a new up scaling request will be sent.
If the scaling factor for this type of scaling is zero, it means that the scaling object will always resize the resource to the exact amount that is being used.
- 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
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getResourceAmountToScale
(VerticalVmScaling vmScaling) Computes the amount of resource to scale up or down, depending if the resource is over or underloaded, respectively.
-
Constructor Details
-
ResourceScalingInstantaneous
public ResourceScalingInstantaneous()
-
-
Method Details
-
getResourceAmountToScale
Description copied from interface:ResourceScaling
Computes the amount of resource to scale up or down, depending if the resource is over or underloaded, respectively.- Specified by:
getResourceAmountToScale
in interfaceResourceScaling
- Parameters:
vmScaling
- theVerticalVmScaling
object that is in charge to scale a resource.- Returns:
-