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
| Name | Type | JSON name | Description |
|---|---|---|---|
Enabled | bool? | enabled | Whether the autoscaler acts; true when omitted. |
MaxSize | int? | maxSize | The most members (1 to 200). |
Metric | Models.Compute.AutoscalingMetric? | metric | What the group follows. Omitted: only the schedules and `minSize` act. |
MinSize | int? | minSize | The fewest members (0 to 200). |
ScaleInCooldownSeconds | int? | scaleInCooldownSeconds | Seconds after any change before a shrink (0 to 86400); 300 when omitted. |
ScaleInMaxStep | int? | scaleInMaxStep | The most members one shrink removes (1 to 200); 5 when omitted. |
ScaleOutCooldownSeconds | int? | scaleOutCooldownSeconds | Seconds between two growths (0 to 86400); 60 when omitted. |
Schedules | List<Models.Compute.AutoscalingSchedule>? | schedules | Windows with a higher minimum (at most 10). |