Class: Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AutoscalingLimits

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/spanner/admin/instance/v1/spanner_instance_admin.rb

Overview

The autoscaling limits for the instance. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit.

Instance Attribute Summary collapse

Instance Attribute Details

#max_nodes::Integer

Returns Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.

Note: The following fields are mutually exclusive: max_nodes, max_processing_units. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Integer)

    Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.

    Note: The following fields are mutually exclusive: max_nodes, max_processing_units. If a field in that set is populated, all other fields in the set will automatically be cleared.



336
337
338
339
# File 'proto_docs/google/spanner/admin/instance/v1/spanner_instance_admin.rb', line 336

class AutoscalingLimits
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#max_processing_units::Integer

Returns Maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.

Note: The following fields are mutually exclusive: max_processing_units, max_nodes. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Integer)

    Maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.

    Note: The following fields are mutually exclusive: max_processing_units, max_nodes. If a field in that set is populated, all other fields in the set will automatically be cleared.



336
337
338
339
# File 'proto_docs/google/spanner/admin/instance/v1/spanner_instance_admin.rb', line 336

class AutoscalingLimits
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#min_nodes::Integer

Returns Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.

Note: The following fields are mutually exclusive: min_nodes, min_processing_units. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Integer)

    Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.

    Note: The following fields are mutually exclusive: min_nodes, min_processing_units. If a field in that set is populated, all other fields in the set will automatically be cleared.



336
337
338
339
# File 'proto_docs/google/spanner/admin/instance/v1/spanner_instance_admin.rb', line 336

class AutoscalingLimits
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#min_processing_units::Integer

Returns Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.

Note: The following fields are mutually exclusive: min_processing_units, min_nodes. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Integer)

    Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.

    Note: The following fields are mutually exclusive: min_processing_units, min_nodes. If a field in that set is populated, all other fields in the set will automatically be cleared.



336
337
338
339
# File 'proto_docs/google/spanner/admin/instance/v1/spanner_instance_admin.rb', line 336

class AutoscalingLimits
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end