Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResourcePoolAutoscalingSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

The min/max number of replicas allowed if enabling autoscaling

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ResourcePoolAutoscalingSpec

Returns a new instance of GoogleCloudAiplatformV1beta1ResourcePoolAutoscalingSpec.



23755
23756
23757
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 23755

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#max_replica_countFixnum

Optional. max replicas in the node pool, must be ≥ replica_count and > min_replica_count or will throw error Corresponds to the JSON property maxReplicaCount

Returns:

  • (Fixnum)


23742
23743
23744
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 23742

def max_replica_count
  @max_replica_count
end

#min_replica_countFixnum

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. Corresponds to the JSON property minReplicaCount

Returns:

  • (Fixnum)


23753
23754
23755
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 23753

def min_replica_count
  @min_replica_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23760
23761
23762
23763
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 23760

def update!(**args)
  @max_replica_count = args[:max_replica_count] if args.key?(:max_replica_count)
  @min_replica_count = args[:min_replica_count] if args.key?(:min_replica_count)
end