[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-15 UTC。"],[],[],null,["# Autoscaling overview\n\nThis page explains how autoscaling works in Spanner, and introduces\nthe two types of autoscaling you can use in Spanner.\n\nScaling Spanner\n---------------\n\nWhen you create a [Spanner instance](/spanner/docs/instances),\nyou choose the number of [compute capacity nodes or processing\nunits](/spanner/docs/compute-capacity) to use when serving your data. However,\nthere are times when the workload might increase or decrease. *Scaling* an\ninstance is the process of adding or removing compute capacity in response to\nchanges in the instance's workload or data storage needs.\n\nIt can be useful to scale your Spanner instance based on metrics\nsuch as the instance's CPU usage. For example, if your instance is under a heavy\nload and its CPU utilization is high, you can temporarily add compute capacity\nand remove it again when its CPU usage drops. Removing compute capacity from the\ninstance when it doesn't have heavy usage lowers costs.\n\nYou can't resolve all Spanner performance issues by adding\ncompute capacity. For example, scaling up an instance can't solve problems that\noccur that are unrelated to the instance size, such as lock contention and\nhotspots.\n\nThere are two ways that you can scale your Spanner instance to\nmeet workload changes:\n\n- Configure your instance manually to add or remove compute capacity.\n- Configure autoscaling on your instance so that compute capacity automatically scales up or down to meet workload levels.\n\nFor autoscaling, you have the following options:\n\n- Configure [Spanner managed autoscaling](/spanner/docs/managed-autoscaler).\n- Set up the open source [Autoscaler tool for Spanner](/spanner/docs/autoscaler-tool-overview).\n\nRequirements on this page apply to both the managed autoscaling feature and the\nopen source Autoscaler tool.\n\nWhen to use autoscaling\n-----------------------\n\nThe benefits of autoscaling include the following:\n\n- **Costs:** Autoscaling reduces costs by decreasing compute capacity during off-peak hours, which helps avoid over-provisioning.\n- **Performance:** Autoscaling lets Spanner automatically add compute capacity to an instance when a workload changes or there is an increase in data storage requirements. This helps maintain workload performance objectives by ensuring that the instance has enough compute capacity to meet the target CPU utilization and storage requirements.\n- **Automation:** Autoscaling reduces management complexity. You don't need to monitor and scale the instance size manually. With managed autoscaling, you don't write an application to do these tasks, because the Spanner service handles them for you.\n\nAutoscaling is often the best choice for the following situations:\n\n- Steady diurnal or cyclical traffic patterns, such as those generated by online banking systems.\n- New applications expecting organic growth.\n- Workloads that are new to Spanner.\n\nAlthough Spanner quickly adds compute capacity when traffic\nincreases, it can take time to balance the additional capacity.\n\nWhat's next\n-----------\n\n- Learn more about [Managed autoscaler for Spanner](/spanner/docs/managed-autoscaler)\n - Learn how to [create an instance with the managed autoscaler enabled](/spanner/docs/create-manage-instances#create-instance)\n - Learn how to [modify an instance to add autoscaling or change autoscaling settings](/spanner/docs/create-manage-instances#modify-managed-autoscaler)\n - Learn how to [change an instance from using autoscaling to manual scaling](/spanner/docs/create-manage-instances#remove-managed-autoscaler)\n- Learn more about the [Autoscaler tool for Spanner](/spanner/docs/autoscaler-tool-overview)"]]