Class ResourceScalingGradual
java.lang.Object
org.cloudsimplus.autoscaling.resources.ResourceScalingGradual
- All Implemented Interfaces:
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
-
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
-
ResourceScalingGradual
public ResourceScalingGradual()
-
-
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:
-