This page describes how to scale Cloud Memorystore for Redis instances.
Scaling an instance
This section describes how to scale an existing Redis instance using either the Cloud SDK or the Google Cloud Platform Console. Scale instances during a period of low activity to minimize the performance impact on your application.
When reducing a Standard Tier instance’s capacity, you must choose a size greater than the amount of data being stored or scaling fails. For example, if your instance is using 5.5 GB of storage, you can resize the instance to a minimum of 6 GB. The amount of storage your instance uses is visible on its details page in the GCP Console.
After scaling Standard Tier instances, there may be stale or inconsistent data in the cache. Your application should be resilient enough to handle these inconsistencies.
For more information about an instance's behavior during scaling, see Behavior During Scaling.
- Go to the Cloud Memorystore page in the Google Cloud Platform Console.
- Click the Instance ID of the instance you want to resize.
- Click Edit.
- In the Instance capacity section, drag the slider or enter a new size in the field to update the instance's capacity.
- Click Save.
Enter the following command:
gcloud redis instances update INSTANCE_ID --region=REGION_ID --size=SIZE
gcloud redis instances update myinstance --region=us-central1 --size 100