public sealed class BasicYarnAutoscalingConfig : IMessage<BasicYarnAutoscalingConfig>, IEquatable<BasicYarnAutoscalingConfig>, IDeepCloneable<BasicYarnAutoscalingConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dataproc v1 API class BasicYarnAutoscalingConfig.
public Duration GracefulDecommissionTimeout { get; set; }
Required. Timeout for YARN graceful decommissioning of Node Managers.
Specifies the duration to wait for jobs to complete before forcefully
removing workers (and potentially interrupting jobs). Only applicable to
downscaling operations.
Required. Fraction of average YARN pending memory in the last cooldown
period for which to remove workers. A scale-down factor of 1 will result in
scaling down so that there is no available memory remaining after the
update (more aggressive scaling). A scale-down factor of 0 disables
removing workers, which can be beneficial for autoscaling a single job.
See How autoscaling
works
for more information.
public double ScaleDownMinWorkerFraction { get; set; }
Optional. Minimum scale-down threshold as a fraction of total cluster size
before scaling occurs. For example, in a 20-worker cluster, a threshold of
0.1 means the autoscaler must recommend at least a 2 worker scale-down for
the cluster to scale. A threshold of 0 means the autoscaler will scale down
on any recommended change.
Required. Fraction of average YARN pending memory in the last cooldown
period for which to add workers. A scale-up factor of 1.0 will result in
scaling up so that there is no pending memory remaining after the update
(more aggressive scaling). A scale-up factor closer to 0 will result in a
smaller magnitude of scaling up (less aggressive scaling). See How
autoscaling
works
for more information.
public double ScaleUpMinWorkerFraction { get; set; }
Optional. Minimum scale-up threshold as a fraction of total cluster size
before scaling occurs. For example, in a 20-worker cluster, a threshold of
0.1 means the autoscaler must recommend at least a 2-worker scale-up for
the cluster to scale. A threshold of 0 means the autoscaler will scale up
on any recommended change.
[[["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\u003eThis document provides reference documentation for the \u003ccode\u003eBasicYarnAutoscalingConfig\u003c/code\u003e class within the Google Cloud Dataproc v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBasicYarnAutoscalingConfig\u003c/code\u003e class offers basic autoscaling configurations for YARN, which helps manage the resource allocation for worker nodes.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of this class include \u003ccode\u003eGracefulDecommissionTimeout\u003c/code\u003e, \u003ccode\u003eScaleDownFactor\u003c/code\u003e, \u003ccode\u003eScaleDownMinWorkerFraction\u003c/code\u003e, \u003ccode\u003eScaleUpFactor\u003c/code\u003e, and \u003ccode\u003eScaleUpMinWorkerFraction\u003c/code\u003e, which allow for fine-tuning of the autoscaling behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this class is 5.17.0, and the document also lists prior versions ranging from 3.1.0 up to 5.16.0.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Dataproc v1 API - Class BasicYarnAutoscalingConfig (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.BasicYarnAutoscalingConfig)\n- [5.19.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.19.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.18.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.18.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.17.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.17.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.16.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.16.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.15.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.15.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.14.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.14.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.13.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.13.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.12.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.12.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.11.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.11.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.10.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.10.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.9.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.9.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.8.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.8.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.7.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.7.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.6.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.6.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.5.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.5.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.4.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.4.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.3.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.3.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.2.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.2.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.1.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.1.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.0.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/4.0.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.4.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.3.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.2.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.1.0/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig) \n\n public sealed class BasicYarnAutoscalingConfig : IMessage\u003cBasicYarnAutoscalingConfig\u003e, IEquatable\u003cBasicYarnAutoscalingConfig\u003e, IDeepCloneable\u003cBasicYarnAutoscalingConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Dataproc v1 API class BasicYarnAutoscalingConfig.\n\nBasic autoscaling configurations for YARN. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BasicYarnAutoscalingConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BasicYarnAutoscalingConfig](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BasicYarnAutoscalingConfig](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BasicYarnAutoscalingConfig](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.BasicYarnAutoscalingConfig), [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### BasicYarnAutoscalingConfig()\n\n public BasicYarnAutoscalingConfig()\n\n### BasicYarnAutoscalingConfig(BasicYarnAutoscalingConfig)\n\n public BasicYarnAutoscalingConfig(BasicYarnAutoscalingConfig other)\n\nProperties\n----------\n\n### GracefulDecommissionTimeout\n\n public Duration GracefulDecommissionTimeout { get; set; }\n\nRequired. Timeout for YARN graceful decommissioning of Node Managers.\nSpecifies the duration to wait for jobs to complete before forcefully\nremoving workers (and potentially interrupting jobs). Only applicable to\ndownscaling operations.\n\nBounds: \\[0s, 1d\\].\n\n### ScaleDownFactor\n\n public double ScaleDownFactor { get; set; }\n\nRequired. Fraction of average YARN pending memory in the last cooldown\nperiod for which to remove workers. A scale-down factor of 1 will result in\nscaling down so that there is no available memory remaining after the\nupdate (more aggressive scaling). A scale-down factor of 0 disables\nremoving workers, which can be beneficial for autoscaling a single job.\nSee [How autoscaling\nworks](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)\nfor more information.\n\nBounds: \\[0.0, 1.0\\].\n\n### ScaleDownMinWorkerFraction\n\n public double ScaleDownMinWorkerFraction { get; set; }\n\nOptional. Minimum scale-down threshold as a fraction of total cluster size\nbefore scaling occurs. For example, in a 20-worker cluster, a threshold of\n0.1 means the autoscaler must recommend at least a 2 worker scale-down for\nthe cluster to scale. A threshold of 0 means the autoscaler will scale down\non any recommended change.\n\nBounds: \\[0.0, 1.0\\]. Default: 0.0.\n\n### ScaleUpFactor\n\n public double ScaleUpFactor { get; set; }\n\nRequired. Fraction of average YARN pending memory in the last cooldown\nperiod for which to add workers. A scale-up factor of 1.0 will result in\nscaling up so that there is no pending memory remaining after the update\n(more aggressive scaling). A scale-up factor closer to 0 will result in a\nsmaller magnitude of scaling up (less aggressive scaling). See [How\nautoscaling\nworks](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)\nfor more information.\n\nBounds: \\[0.0, 1.0\\].\n\n### ScaleUpMinWorkerFraction\n\n public double ScaleUpMinWorkerFraction { get; set; }\n\nOptional. Minimum scale-up threshold as a fraction of total cluster size\nbefore scaling occurs. For example, in a 20-worker cluster, a threshold of\n0.1 means the autoscaler must recommend at least a 2-worker scale-up for\nthe cluster to scale. A threshold of 0 means the autoscaler will scale up\non any recommended change.\n\nBounds: \\[0.0, 1.0\\]. Default: 0.0."]]