Cloud Spanner Instance Admin V1 API - Class Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AutoscalingLimits (v1.3.0)

Reference documentation and code samples for the Cloud Spanner Instance Admin V1 API class Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AutoscalingLimits.

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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#max_nodes

def max_nodes() -> ::Integer
Returns
  • (::Integer) — Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.

#max_nodes=

def max_nodes=(value) -> ::Integer
Parameter
  • value (::Integer) — Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.
Returns
  • (::Integer) — Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.

#max_processing_units

def max_processing_units() -> ::Integer
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.

#max_processing_units=

def max_processing_units=(value) -> ::Integer
Parameter
  • value (::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.
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.

#min_nodes

def min_nodes() -> ::Integer
Returns
  • (::Integer) — Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.

#min_nodes=

def min_nodes=(value) -> ::Integer
Parameter
  • value (::Integer) — Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.
Returns
  • (::Integer) — Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.

#min_processing_units

def min_processing_units() -> ::Integer
Returns
  • (::Integer) — Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.

#min_processing_units=

def min_processing_units=(value) -> ::Integer
Parameter
  • value (::Integer) — Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.
Returns
  • (::Integer) — Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.