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
defmax_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.
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.
#max_nodes=
defmax_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.
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.
#max_processing_units
defmax_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.
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.
#max_processing_units=
defmax_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.
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.
#min_nodes
defmin_nodes()->::Integer
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.
#min_nodes=
defmin_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.
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.
#min_processing_units
defmin_processing_units()->::Integer
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.
#min_processing_units=
defmin_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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Cloud Spanner Instance Admin V1 API - Class Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AutoscalingLimits (v2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [2.0.1](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/2.0.1/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [1.6.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.6.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [1.5.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.5.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [1.4.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.4.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [1.3.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.3.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [1.2.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.2.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [1.1.1](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.1.1/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [1.0.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.0.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [0.16.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.16.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [0.15.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.15.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [0.14.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.14.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [0.13.2](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.13.2/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [0.12.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.12.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [0.11.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.11.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [0.10.2](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.10.2/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [0.9.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.9.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [0.8.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.8.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [0.7.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.7.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [0.6.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.6.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)\n- [0.5.5](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.5.5/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits) \nReference documentation and code samples for the Cloud Spanner Instance Admin V1 API class Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AutoscalingLimits.\n\nThe autoscaling limits for the instance. Users can define the minimum and\nmaximum compute capacity allocated to the instance, and the autoscaler will\nonly scale within that range. Users can either use nodes or processing\nunits to specify the limits, but should use the same unit to set both the\nmin_limit and max_limit. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #max_nodes\n\n def max_nodes() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.\n\n 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.\n\n### #max_nodes=\n\n def max_nodes=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.\n\n\nNote: 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. \n**Returns**\n\n- (::Integer) --- Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.\n\n 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.\n\n### #max_processing_units\n\n def max_processing_units() -\u003e ::Integer\n\n**Returns**\n\n- (::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.\n\n 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.\n\n### #max_processing_units=\n\n def max_processing_units=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **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.\n\n\nNote: 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. \n**Returns**\n\n- (::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.\n\n 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.\n\n### #min_nodes\n\n def min_nodes() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.\n\n 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.\n\n### #min_nodes=\n\n def min_nodes=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.\n\n\nNote: 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. \n**Returns**\n\n- (::Integer) --- Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.\n\n 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.\n\n### #min_processing_units\n\n def min_processing_units() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.\n\n 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.\n\n### #min_processing_units=\n\n def min_processing_units=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.\n\n\nNote: 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. \n**Returns**\n\n- (::Integer) --- Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.\n\n 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."]]