# Class AutoscalingPolicy (1.12.0)

1.12.0 (latest) 1.11.0 1.10.0 1.9.0 1.8.3 1.7.0 1.6.1 1.5.0 1.4.4 1.3.0 1.2.0 1.1.1 1.0.1 0.2.2 0.1.1

    AutoscalingPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Autoscaling policy describes the behavior of the autoscaling
with respect to the resource utilization.
The scale-out operation is initiated if the utilization exceeds
ANY of the respective thresholds.
The scale-in operation is initiated if the utilization is below
ALL of the respective thresholds.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `node_type_id` | `str` Required. The canonical identifier of the node type to add or remove. Corresponds to the `NodeType`. |
| `scale_out_size` | `int` Required. Number of nodes to add to a cluster during a scale-out operation. Must be divisible by 2 for stretched clusters. During a scale-in operation only one node (or 2 for stretched clusters) are removed in a single iteration. |
| `cpu_thresholds` | `https://docs.cloud.google.com/python/docs/reference/vmwareengine/latest/google.cloud.vmwareengine_v1.types.AutoscalingSettings.Thresholds` Optional. Utilization thresholds pertaining to CPU utilization. |
| `granted_memory_thresholds` | `https://docs.cloud.google.com/python/docs/reference/vmwareengine/latest/google.cloud.vmwareengine_v1.types.AutoscalingSettings.Thresholds` Optional. Utilization thresholds pertaining to amount of granted memory. |
| `consumed_memory_thresholds` | `https://docs.cloud.google.com/python/docs/reference/vmwareengine/latest/google.cloud.vmwareengine_v1.types.AutoscalingSettings.Thresholds` Optional. Utilization thresholds pertaining to amount of consumed memory. |
| `storage_thresholds` | `https://docs.cloud.google.com/python/docs/reference/vmwareengine/latest/google.cloud.vmwareengine_v1.types.AutoscalingSettings.Thresholds` Optional. Utilization thresholds pertaining to amount of consumed storage. |