public sealed class AutoscalingSettings.Types.AutoscalingPolicy : IMessage<AutoscalingSettings.Types.AutoscalingPolicy>, IEquatable<AutoscalingSettings.Types.AutoscalingPolicy>, IDeepCloneable<AutoscalingSettings.Types.AutoscalingPolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the VMware Engine v1 API class AutoscalingSettings.Types.AutoscalingPolicy.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eAutoscalingPolicy\u003c/code\u003e class in the VMware Engine v1 API defines the rules for autoscaling resources based on utilization.\u003c/p\u003e\n"],["\u003cp\u003eAutoscaling can be triggered by exceeding CPU, memory, or storage thresholds, and scale-out occurs if any threshold is exceeded.\u003c/p\u003e\n"],["\u003cp\u003eScale-in operations happen when all specified thresholds for CPU, consumed memory, granted memory, and storage are below the set levels.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNodeTypeId\u003c/code\u003e property determines which node type is affected by scaling, while \u003ccode\u003eScaleOutSize\u003c/code\u003e specifies the number of nodes added during a scale-out event.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions available for this class, starting from version 1.0.0, with 1.6.0 being the latest.\u003c/p\u003e\n"]]],[],null,["# VMware Engine v1 API - Class AutoscalingSettings.Types.AutoscalingPolicy (1.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types.AutoscalingPolicy)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/1.5.0/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types.AutoscalingPolicy)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/1.4.0/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types.AutoscalingPolicy)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/1.3.0/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types.AutoscalingPolicy)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/1.2.0/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types.AutoscalingPolicy)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/1.1.0/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types.AutoscalingPolicy)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/1.0.0/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types.AutoscalingPolicy) \n\n public sealed class AutoscalingSettings.Types.AutoscalingPolicy : IMessage\u003cAutoscalingSettings.Types.AutoscalingPolicy\u003e, IEquatable\u003cAutoscalingSettings.Types.AutoscalingPolicy\u003e, IDeepCloneable\u003cAutoscalingSettings.Types.AutoscalingPolicy\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the VMware Engine v1 API class AutoscalingSettings.Types.AutoscalingPolicy.\n\nAutoscaling policy describes the behavior of the autoscaling\nwith respect to the resource utilization.\nThe scale-out operation is initiated if the utilization\nexceeds ANY of the respective thresholds.\nThe scale-in operation is initiated if the utilization\nis below ALL of the respective thresholds. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AutoscalingSettings.Types.AutoscalingPolicy \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AutoscalingSettings](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings)[Types](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types)[AutoscalingPolicy](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types.AutoscalingPolicy), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AutoscalingSettings](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings)[Types](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types)[AutoscalingPolicy](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types.AutoscalingPolicy), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AutoscalingSettings](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings)[Types](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types)[AutoscalingPolicy](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types.AutoscalingPolicy), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.VmwareEngine.V1](/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.VmwareEngine.V1.dll\n\nConstructors\n------------\n\n### AutoscalingPolicy()\n\n public AutoscalingPolicy()\n\n### AutoscalingPolicy(AutoscalingPolicy)\n\n public AutoscalingPolicy(AutoscalingSettings.Types.AutoscalingPolicy other)\n\nProperties\n----------\n\n### ConsumedMemoryThresholds\n\n public AutoscalingSettings.Types.Thresholds ConsumedMemoryThresholds { get; set; }\n\nOptional. Utilization thresholds pertaining to amount of consumed memory.\n\n### CpuThresholds\n\n public AutoscalingSettings.Types.Thresholds CpuThresholds { get; set; }\n\nOptional. Utilization thresholds pertaining to CPU utilization.\n\n### GrantedMemoryThresholds\n\n public AutoscalingSettings.Types.Thresholds GrantedMemoryThresholds { get; set; }\n\nOptional. Utilization thresholds pertaining to amount of granted memory.\n\n### NodeTypeId\n\n public string NodeTypeId { get; set; }\n\nRequired. The canonical identifier of the node type to add or remove.\nCorresponds to the `NodeType`.\n\n### ScaleOutSize\n\n public int ScaleOutSize { get; set; }\n\nRequired. Number of nodes to add to a cluster during a scale-out\noperation. Must be divisible by 2 for stretched clusters. During a\nscale-in operation only one node (or 2 for stretched clusters) are\nremoved in a single iteration.\n\n### StorageThresholds\n\n public AutoscalingSettings.Types.Thresholds StorageThresholds { get; set; }\n\nOptional. Utilization thresholds pertaining to amount of consumed\nstorage."]]