public interface AutoScaleRule
withAutoScaleByAttributeName()
task scheduler builder method).Modifier and Type | Method and Description |
---|---|
long |
getCoolDownSecs()
Returns the amount of time to wait from the beginning of a scale up or scale down operation before
initiating another autoscale operation (a.k.a the "cool down" time).
|
int |
getMaxIdleHostsToKeep()
Returns the maximum number of hosts, in the autoscale group this rule applies to, that Fenzo is to keep
in idle readiness.
|
default int |
getMaxSize()
Returns the maximum number of hosts to expect in the autoscale group for this rule.
|
int |
getMinIdleHostsToKeep()
Returns the minimum number of hosts, in the autoscale group this rule applies to, that Fenzo is to keep
in idle readiness.
|
default int |
getMinSize()
Returns the minimum number of hosts to expect in the autoscale group for this rule.
|
java.lang.String |
getRuleName()
Returns the value, for the group of hosts that this rule applies to, of the host attribute that you have
designated to differentiate autoscale groups.
|
default int |
getShortfallAdjustedAgents(int numberOfAgents)
Returns adjusted number of agents.
|
boolean |
idleMachineTooSmall(VirtualMachineLease lease)
Determines whether a host has too few resources to be considered an idle but potentially useful host.
|
java.lang.String getRuleName()
int getMinIdleHostsToKeep()
default int getMinSize()
0
effectively
disables this function.int getMaxIdleHostsToKeep()
default int getMaxSize()
Integer.MAX_VALUE
effectively disables this function.default int getShortfallAdjustedAgents(int numberOfAgents)
long getCoolDownSecs()
boolean idleMachineTooSmall(VirtualMachineLease lease)
lease
- the lease object that representes the hosttrue
if the idle machine has too few resources to count as idle, false
otherwise