ResourcePool_AutoscalingSpec class final

The min/max number of replicas allowed if enabling autoscaling

Inheritance
  • Object
  • ProtoMessage
  • ResourcePool_AutoscalingSpec

Constructors

ResourcePool_AutoscalingSpec({int? minReplicaCount, int? maxReplicaCount})
ResourcePool_AutoscalingSpec.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
maxReplicaCount int?
Optional. max replicas in the node pool, must be ≥ replica_count and > min_replica_count or will throw error
final
minReplicaCount int?
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.
final
qualifiedName String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Object
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

fullyQualifiedName → const String