Package com.google.cloud.aiplatform.v1
Interface ResourcePool.AutoscalingSpecOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ResourcePool.AutoscalingSpec,ResourcePool.AutoscalingSpec.Builder
- Enclosing class:
- ResourcePool
public static interface ResourcePool.AutoscalingSpecOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlongOptional. max replicas in the node pool, must be ≥ replica_count and > min_replica_count or will throw errorlongOptional. min replicas in the node pool, must be ≤ replica_count and < max_replica_count or will throw error.booleanOptional. max replicas in the node pool, must be ≥ replica_count and > min_replica_count or will throw errorbooleanOptional. min replicas in the node pool, must be ≤ replica_count and < max_replica_count or will throw error.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasMinReplicaCount
boolean hasMinReplicaCount()Optional. min replicas in the node pool, must be ≤ replica_count and < max_replica_count or will throw error. For autoscaling enabled Ray-on-Vertex, we allow min_replica_count of a resource_pool to be 0 to match the OSS Ray behavior(https://docs.ray.io/en/latest/cluster/vms/user-guides/configuring-autoscaling.html#cluster-config-parameters). As for Persistent Resource, the min_replica_count must be > 0, we added a corresponding validation inside CreatePersistentResourceRequestValidator.java.
optional int64 min_replica_count = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the minReplicaCount field is set.
-
getMinReplicaCount
long getMinReplicaCount()Optional. min replicas in the node pool, must be ≤ replica_count and < max_replica_count or will throw error. For autoscaling enabled Ray-on-Vertex, we allow min_replica_count of a resource_pool to be 0 to match the OSS Ray behavior(https://docs.ray.io/en/latest/cluster/vms/user-guides/configuring-autoscaling.html#cluster-config-parameters). As for Persistent Resource, the min_replica_count must be > 0, we added a corresponding validation inside CreatePersistentResourceRequestValidator.java.
optional int64 min_replica_count = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The minReplicaCount.
-
hasMaxReplicaCount
boolean hasMaxReplicaCount()Optional. max replicas in the node pool, must be ≥ replica_count and > min_replica_count or will throw error
optional int64 max_replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the maxReplicaCount field is set.
-
getMaxReplicaCount
long getMaxReplicaCount()Optional. max replicas in the node pool, must be ≥ replica_count and > min_replica_count or will throw error
optional int64 max_replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The maxReplicaCount.
-