Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
The min/max number of replicas allowed if enabling autoscaling
Instance Attribute Summary collapse
-
#max_replica_count ⇒ Fixnum
Optional.
-
#min_replica_count ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec
constructor
A new instance of GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec
Returns a new instance of GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec.
21689 21690 21691 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21689 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_replica_count ⇒ Fixnum
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
21676 21677 21678 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21676 def max_replica_count @max_replica_count end |
#min_replica_count ⇒ Fixnum
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
21687 21688 21689 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21687 def min_replica_count @min_replica_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
21694 21695 21696 21697 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21694 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 |