SDK reference / Models / Compute

AutoscalingPolicy

Kind: class

Namespace: Egulu.Sdk.Models.Compute

The autoscaler of a VM group (CMP-9): it changes the group's size by itself, within minSize and maxSize, to keep the metric at its target, as thehorizontal pod autoscaler does: the members needed are the size times the reading over the target (a reading within 10 % of the target changesnothing). A growth waits for its cool-down since the last growth; a shrink for its cool-down since the last change, and removes at most scaleInMaxStepmembers, never one that scale-in protection holds. The autoscaler pauses while a rolling update is under way. A group that is autoscaled is resized byits policy, not by :resize. Every decision, and every hold with its reason, is in the group's autoscalerDecisions.

Properties

NameTypeJSON nameDescription
Enabledbool?enabledWhether the autoscaler acts; true when omitted.
MaxSizeint?maxSizeThe most members (1 to 200).
MetricModels.Compute.AutoscalingMetric?metricWhat the group follows. Omitted: only the schedules and `minSize` act.
MinSizeint?minSizeThe fewest members (0 to 200).
ScaleInCooldownSecondsint?scaleInCooldownSecondsSeconds after any change before a shrink (0 to 86400); 300 when omitted.
ScaleInMaxStepint?scaleInMaxStepThe most members one shrink removes (1 to 200); 5 when omitted.
ScaleOutCooldownSecondsint?scaleOutCooldownSecondsSeconds between two growths (0 to 86400); 60 when omitted.
SchedulesList<Models.Compute.AutoscalingSchedule>?schedulesWindows with a higher minimum (at most 10).