Class: Google::Cloud::AIPlatform::V1::ResourcePool
- Inherits:
-
Object
- Object
- Google::Cloud::AIPlatform::V1::ResourcePool
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb
Overview
Represents the spec of a group of resources of the same type, for example machine type, disk, and accelerators, in a PersistentResource.
Defined Under Namespace
Classes: AutoscalingSpec
Instance Attribute Summary collapse
-
#autoscaling_spec ⇒ ::Google::Cloud::AIPlatform::V1::ResourcePool::AutoscalingSpec
Optional.
-
#disk_spec ⇒ ::Google::Cloud::AIPlatform::V1::DiskSpec
Optional.
-
#id ⇒ ::String
Immutable.
-
#machine_spec ⇒ ::Google::Cloud::AIPlatform::V1::MachineSpec
Required.
-
#replica_count ⇒ ::Integer
Optional.
-
#used_replica_count ⇒ ::Integer
readonly
Output only.
Instance Attribute Details
#autoscaling_spec ⇒ ::Google::Cloud::AIPlatform::V1::ResourcePool::AutoscalingSpec
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
# File 'proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb', line 170 class ResourcePool include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The min/max number of replicas allowed if enabling autoscaling # @!attribute [rw] min_replica_count # @return [::Integer] # 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. # @!attribute [rw] max_replica_count # @return [::Integer] # Optional. max replicas in the node pool, # must be ≥ replica_count and > min_replica_count or will throw error class AutoscalingSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#disk_spec ⇒ ::Google::Cloud::AIPlatform::V1::DiskSpec
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
# File 'proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb', line 170 class ResourcePool include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The min/max number of replicas allowed if enabling autoscaling # @!attribute [rw] min_replica_count # @return [::Integer] # 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. # @!attribute [rw] max_replica_count # @return [::Integer] # Optional. max replicas in the node pool, # must be ≥ replica_count and > min_replica_count or will throw error class AutoscalingSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#id ⇒ ::String
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
# File 'proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb', line 170 class ResourcePool include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The min/max number of replicas allowed if enabling autoscaling # @!attribute [rw] min_replica_count # @return [::Integer] # 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. # @!attribute [rw] max_replica_count # @return [::Integer] # Optional. max replicas in the node pool, # must be ≥ replica_count and > min_replica_count or will throw error class AutoscalingSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#machine_spec ⇒ ::Google::Cloud::AIPlatform::V1::MachineSpec
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
# File 'proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb', line 170 class ResourcePool include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The min/max number of replicas allowed if enabling autoscaling # @!attribute [rw] min_replica_count # @return [::Integer] # 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. # @!attribute [rw] max_replica_count # @return [::Integer] # Optional. max replicas in the node pool, # must be ≥ replica_count and > min_replica_count or will throw error class AutoscalingSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#replica_count ⇒ ::Integer
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
# File 'proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb', line 170 class ResourcePool include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The min/max number of replicas allowed if enabling autoscaling # @!attribute [rw] min_replica_count # @return [::Integer] # 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. # @!attribute [rw] max_replica_count # @return [::Integer] # Optional. max replicas in the node pool, # must be ≥ replica_count and > min_replica_count or will throw error class AutoscalingSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#used_replica_count ⇒ ::Integer (readonly)
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
# File 'proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb', line 170 class ResourcePool include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The min/max number of replicas allowed if enabling autoscaling # @!attribute [rw] min_replica_count # @return [::Integer] # 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. # @!attribute [rw] max_replica_count # @return [::Integer] # Optional. max replicas in the node pool, # must be ≥ replica_count and > min_replica_count or will throw error class AutoscalingSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |