public final class BasicYarnAutoscalingConfig extends GeneratedMessageV3 implements BasicYarnAutoscalingConfigOrBuilder
Basic autoscaling configurations for YARN.Protobuf type
google.cloud.dataproc.v1.BasicYarnAutoscalingConfig
Modifier and Type | Class and Description |
---|---|
static class |
BasicYarnAutoscalingConfig.Builder
Basic autoscaling configurations for YARN.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER |
static int |
SCALE_DOWN_FACTOR_FIELD_NUMBER |
static int |
SCALE_DOWN_MIN_WORKER_FRACTION_FIELD_NUMBER |
static int |
SCALE_UP_FACTOR_FIELD_NUMBER |
static int |
SCALE_UP_MIN_WORKER_FRACTION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER
public static final int SCALE_UP_FACTOR_FIELD_NUMBER
public static final int SCALE_DOWN_FACTOR_FIELD_NUMBER
public static final int SCALE_UP_MIN_WORKER_FRACTION_FIELD_NUMBER
public static final int SCALE_DOWN_MIN_WORKER_FRACTION_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public boolean hasGracefulDecommissionTimeout()
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. Bounds: [0s, 1d].
.google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED];
hasGracefulDecommissionTimeout
in interface BasicYarnAutoscalingConfigOrBuilder
public Duration getGracefulDecommissionTimeout()
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. Bounds: [0s, 1d].
.google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED];
getGracefulDecommissionTimeout
in interface BasicYarnAutoscalingConfigOrBuilder
public DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder()
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. Bounds: [0s, 1d].
.google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED];
getGracefulDecommissionTimeoutOrBuilder
in interface BasicYarnAutoscalingConfigOrBuilder
public double getScaleUpFactor()
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](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) for more information. Bounds: [0.0, 1.0].
double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED];
getScaleUpFactor
in interface BasicYarnAutoscalingConfigOrBuilder
public double getScaleDownFactor()
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](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) for more information. Bounds: [0.0, 1.0].
double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED];
getScaleDownFactor
in interface BasicYarnAutoscalingConfigOrBuilder
public double getScaleUpMinWorkerFraction()
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. Bounds: [0.0, 1.0]. Default: 0.0.
double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL];
getScaleUpMinWorkerFraction
in interface BasicYarnAutoscalingConfigOrBuilder
public double getScaleDownMinWorkerFraction()
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. Bounds: [0.0, 1.0]. Default: 0.0.
double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL];
getScaleDownMinWorkerFraction
in interface BasicYarnAutoscalingConfigOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static BasicYarnAutoscalingConfig parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static BasicYarnAutoscalingConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static BasicYarnAutoscalingConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static BasicYarnAutoscalingConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static BasicYarnAutoscalingConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static BasicYarnAutoscalingConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static BasicYarnAutoscalingConfig parseFrom(InputStream input) throws IOException
IOException
public static BasicYarnAutoscalingConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static BasicYarnAutoscalingConfig parseDelimitedFrom(InputStream input) throws IOException
IOException
public static BasicYarnAutoscalingConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static BasicYarnAutoscalingConfig parseFrom(CodedInputStream input) throws IOException
IOException
public static BasicYarnAutoscalingConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public BasicYarnAutoscalingConfig.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static BasicYarnAutoscalingConfig.Builder newBuilder()
public static BasicYarnAutoscalingConfig.Builder newBuilder(BasicYarnAutoscalingConfig prototype)
public BasicYarnAutoscalingConfig.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected BasicYarnAutoscalingConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static BasicYarnAutoscalingConfig getDefaultInstance()
public static Parser<BasicYarnAutoscalingConfig> parser()
public Parser<BasicYarnAutoscalingConfig> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public BasicYarnAutoscalingConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.