Interface ResourcePool.AutoscalingSpecOrBuilder (3.55.0)

public static interface ResourcePool.AutoscalingSpecOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMaxReplicaCount()

public abstract 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
Type Description
long

The maxReplicaCount.

getMinReplicaCount()

public abstract 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
Type Description
long

The minReplicaCount.

hasMaxReplicaCount()

public abstract 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
Type Description
boolean

Whether the maxReplicaCount field is set.

hasMinReplicaCount()

public abstract 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
Type Description
boolean

Whether the minReplicaCount field is set.