Reference documentation and code samples for the Cloud Spanner Instance Admin V1 API class Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig.
(::Array<::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AsymmetricAutoscalingOption>) — Optional. Optional asymmetric autoscaling options.
Replicas matching the replica selection criteria will be autoscaled
independently from other replicas. The autoscaler will scale the replicas
based on the utilization of replicas identified by the replica selection.
Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be
autoscaled together and will have the same compute capacity allocated to
them.
value (::Array<::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AsymmetricAutoscalingOption>) — Optional. Optional asymmetric autoscaling options.
Replicas matching the replica selection criteria will be autoscaled
independently from other replicas. The autoscaler will scale the replicas
based on the utilization of replicas identified by the replica selection.
Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be
autoscaled together and will have the same compute capacity allocated to
them.
Returns
(::Array<::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AsymmetricAutoscalingOption>) — Optional. Optional asymmetric autoscaling options.
Replicas matching the replica selection criteria will be autoscaled
independently from other replicas. The autoscaler will scale the replicas
based on the utilization of replicas identified by the replica selection.
Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be
autoscaled together and will have the same compute capacity allocated to
them.
[[["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 (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)\n- [2.0.1](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/2.0.1/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [1.6.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.6.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [1.5.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.5.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [1.4.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.4.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [1.3.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.3.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [1.2.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.2.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [1.1.1](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.1.1/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [1.0.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.0.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [0.16.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.16.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [0.15.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.15.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [0.14.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.14.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [0.13.2](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.13.2/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [0.12.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.12.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [0.11.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.11.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [0.10.2](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.10.2/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [0.9.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.9.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [0.8.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.8.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [0.7.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.7.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [0.6.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.6.0/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig)\n- [0.5.5](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.5.5/Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig) \nReference documentation and code samples for the Cloud Spanner Instance Admin V1 API class Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig.\n\nAutoscaling configuration for an instance. \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### #asymmetric_autoscaling_options\n\n def asymmetric_autoscaling_options() -\u003e ::Array\u003c::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AsymmetricAutoscalingOption\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AsymmetricAutoscalingOption](./Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AsymmetricAutoscalingOption)\\\u003e) --- Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.\n\n\n Other replicas (those do not match any replica selection) will be\n autoscaled together and will have the same compute capacity allocated to\n them.\n\n### #asymmetric_autoscaling_options=\n\n def asymmetric_autoscaling_options=(value) -\u003e ::Array\u003c::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AsymmetricAutoscalingOption\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AsymmetricAutoscalingOption](./Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AsymmetricAutoscalingOption)\\\u003e) --- Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.\n\n\n Other replicas (those do not match any replica selection) will be\n autoscaled together and will have the same compute capacity allocated to\nthem. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AsymmetricAutoscalingOption](./Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AsymmetricAutoscalingOption)\\\u003e) --- Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.\n\n\n Other replicas (those do not match any replica selection) will be\n autoscaled together and will have the same compute capacity allocated to\n them.\n\n### #autoscaling_limits\n\n def autoscaling_limits() -\u003e ::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AutoscalingLimits\n\n**Returns**\n\n- ([::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AutoscalingLimits](./Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)) --- Required. Autoscaling limits for an instance.\n\n### #autoscaling_limits=\n\n def autoscaling_limits=(value) -\u003e ::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AutoscalingLimits\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AutoscalingLimits](./Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)) --- Required. Autoscaling limits for an instance. \n**Returns**\n\n- ([::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AutoscalingLimits](./Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingLimits)) --- Required. Autoscaling limits for an instance.\n\n### #autoscaling_targets\n\n def autoscaling_targets() -\u003e ::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AutoscalingTargets\n\n**Returns**\n\n- ([::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AutoscalingTargets](./Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingTargets)) --- Required. The autoscaling targets for an instance.\n\n### #autoscaling_targets=\n\n def autoscaling_targets=(value) -\u003e ::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AutoscalingTargets\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AutoscalingTargets](./Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingTargets)) --- Required. The autoscaling targets for an instance. \n**Returns**\n\n- ([::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AutoscalingTargets](./Google-Cloud-Spanner-Admin-Instance-V1-AutoscalingConfig-AutoscalingTargets)) --- Required. The autoscaling targets for an instance."]]