Photo by JOSHUA COLEMAN on Unsplash

Scaling Cloud Spanner Instances

Jerene Yang
Oct 12, 2020 · 5 min read

Cloud Spanner allows customers to effortlessly scale instances up and down on-demand without any maintenance windows. In this blog, we explain how to scale up and down and provide advice on best practices.

Scale Up

When to scale up

If you notice that your CPU utilization is above the recommended threshold, it is time to scale your instance up. To see how much your utilization is:

Step 1: Go to Cloud Console -> Spanner

Step 2: Click on the instance that you want to find out the CPU utilization for

Step 3: Click on Monitoring

You should be looking at the per instance CPU utilization, not per database, when deciding whether or not to scale your instance. (Note that my instance, jerene-test-instance, is selected instead of my database, gti)

Step 4: Review your rolling average for 24 hour CPU utilization and CPU utilization — High priority. Ensure that both are below their respective red lines. Note that these values are different for regional vs multi-region instances.

How much to scale up

Issues with underprovisioning an instance

When will scaling up not be beneficial

Scaling Down

When to Scale Down

How Much to Scale Down

How Often to Scale Down

Tools and Automation

Autoscaler

Google Cloud - Community

Google Cloud community articles and blogs

Google Cloud - Community

A collection of technical articles and blogs published or curated by Google Cloud Developer Advocates. The views expressed are those of the authors and don't necessarily reflect those of Google.

Jerene Yang

Written by

Current Googler. Ex-startup co-founder. Technology enthusiast passionate about female empowerment, team building, and making beautiful products.

Google Cloud - Community

A collection of technical articles and blogs published or curated by Google Cloud Developer Advocates. The views expressed are those of the authors and don't necessarily reflect those of Google.