public sealed class InstanceGroupAutoscalingPolicyConfig : IMessage<InstanceGroupAutoscalingPolicyConfig>, IEquatable<InstanceGroupAutoscalingPolicyConfig>, IDeepCloneable<InstanceGroupAutoscalingPolicyConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dataproc v1 API class InstanceGroupAutoscalingPolicyConfig.
Configuration for the size bounds of an instance group, including its
proportional size to other groups.
Required. Maximum number of instances for this group. Required for primary
workers. Note that by default, clusters will not use secondary workers.
Required for secondary workers if the minimum secondary instances is set.
Optional. Weight for the instance group, which is used to determine the
fraction of total workers in the cluster from this instance group.
For example, if primary workers have weight 2, and secondary workers have
weight 1, the cluster will have approximately 2 primary workers for each
secondary worker.
The cluster may not reach the specified balance if constrained
by min/max bounds or other autoscaling settings. For example, if
max_instances for secondary workers is 0, then only primary workers will
be added. The cluster can also be out of balance when created.
If weight is not set on any instance group, the cluster will default to
equal weight for all groups: the cluster will attempt to maintain an equal
number of workers in each group within the configured size bounds for each
group. If weight is set for one group only, the cluster will default to
zero weight on the unset group. For example if weight is set only on
primary workers, the cluster will use primary workers only and no
secondary workers.
[[["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 latest version available for \u003ccode\u003eInstanceGroupAutoscalingPolicyConfig\u003c/code\u003e in the Google Cloud Dataproc V1 API is 5.17.0.\u003c/p\u003e\n"],["\u003cp\u003eThis page provides reference documentation for the \u003ccode\u003eInstanceGroupAutoscalingPolicyConfig\u003c/code\u003e class, which configures size bounds for instance groups in Google Cloud Dataproc clusters.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInstanceGroupAutoscalingPolicyConfig\u003c/code\u003e class offers properties like \u003ccode\u003eMaxInstances\u003c/code\u003e, \u003ccode\u003eMinInstances\u003c/code\u003e, and \u003ccode\u003eWeight\u003c/code\u003e to define the instance group's configuration.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers a wide range of previous versions going back to version 3.1.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eInstanceGroupAutoscalingPolicyConfig\u003c/code\u003e is a class that has inherited members from \u003ccode\u003eobject\u003c/code\u003e and implements methods from \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interface.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Dataproc v1 API - Class InstanceGroupAutoscalingPolicyConfig (5.20.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.20.0 (latest)](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.19.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.19.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.18.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.18.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.17.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.17.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.16.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.16.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.15.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.15.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.14.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.14.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.13.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.13.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.12.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.12.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.11.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.11.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.10.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.10.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.9.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.9.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.8.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.8.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.7.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.7.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.6.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.6.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.5.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.5.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.4.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.4.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.3.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.3.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.2.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.2.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.1.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.1.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.0.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/4.0.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.4.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.3.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.2.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.1.0/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig) \n\n public sealed class InstanceGroupAutoscalingPolicyConfig : IMessage\u003cInstanceGroupAutoscalingPolicyConfig\u003e, IEquatable\u003cInstanceGroupAutoscalingPolicyConfig\u003e, IDeepCloneable\u003cInstanceGroupAutoscalingPolicyConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Dataproc v1 API class InstanceGroupAutoscalingPolicyConfig.\n\nConfiguration for the size bounds of an instance group, including its\nproportional size to other groups. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e InstanceGroupAutoscalingPolicyConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[InstanceGroupAutoscalingPolicyConfig](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[InstanceGroupAutoscalingPolicyConfig](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[InstanceGroupAutoscalingPolicyConfig](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.InstanceGroupAutoscalingPolicyConfig), [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.Dataproc.V1](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Dataproc.V1.dll\n\nConstructors\n------------\n\n### InstanceGroupAutoscalingPolicyConfig()\n\n public InstanceGroupAutoscalingPolicyConfig()\n\n### InstanceGroupAutoscalingPolicyConfig(InstanceGroupAutoscalingPolicyConfig)\n\n public InstanceGroupAutoscalingPolicyConfig(InstanceGroupAutoscalingPolicyConfig other)\n\nProperties\n----------\n\n### MaxInstances\n\n public int MaxInstances { get; set; }\n\nRequired. Maximum number of instances for this group. Required for primary\nworkers. Note that by default, clusters will not use secondary workers.\nRequired for secondary workers if the minimum secondary instances is set.\n\nPrimary workers - Bounds: \\[min_instances, ).\nSecondary workers - Bounds: \\[min_instances, ). Default: 0.\n\n### MinInstances\n\n public int MinInstances { get; set; }\n\nOptional. Minimum number of instances for this group.\n\nPrimary workers - Bounds: \\[2, max_instances\\]. Default: 2.\nSecondary workers - Bounds: \\[0, max_instances\\]. Default: 0.\n\n### Weight\n\n public int Weight { get; set; }\n\nOptional. Weight for the instance group, which is used to determine the\nfraction of total workers in the cluster from this instance group.\nFor example, if primary workers have weight 2, and secondary workers have\nweight 1, the cluster will have approximately 2 primary workers for each\nsecondary worker.\n\nThe cluster may not reach the specified balance if constrained\nby min/max bounds or other autoscaling settings. For example, if\n`max_instances` for secondary workers is 0, then only primary workers will\nbe added. The cluster can also be out of balance when created.\n\nIf weight is not set on any instance group, the cluster will default to\nequal weight for all groups: the cluster will attempt to maintain an equal\nnumber of workers in each group within the configured size bounds for each\ngroup. If weight is set for one group only, the cluster will default to\nzero weight on the unset group. For example if weight is set only on\nprimary workers, the cluster will use primary workers only and no\nsecondary workers."]]