This page explains how to scale the number of replicas for an instance.
Update the number of replicas
You can scale an instance by updating its number of replicas.
Console
In the Google Cloud console, go to the Memorystore for Valkey page.
Click the ID of the instance that you want to scale.
Scroll to the Configurations section.
Next to the Replicas per shard field, click Edit replica count (edit).
From the Replicas menu, select the number of replicas that you want for the instance. You can select 0-5 replicas per shard.
Click Update instance.
gcloud
To update the number of replicas, use the gcloud memorystore instances update command:
gcloud memorystore instances update INSTANCE_ID \ --location=REGION_ID \ --replica-count=REPLICA_COUNT
Make the following replacements:
- INSTANCE_ID: the ID of the instance.
- REGION_ID: the region where the instance is located.
- REPLICA_COUNT: the number of replicas (per shard) that you want
for the instance. Acceptable values are
0-5.