This page explains how to scale the number of replicas for a cluster.

## Update the number of replicas

You can scale a cluster by updating its number of replicas.

### Console

1. In the Google Cloud console, go to the **Memorystore for Redis Cluster** page.

   [Memorystore for Redis Cluster](https://console.cloud.google.com/memorystore/redis/clusters)
2. Click the ID of the cluster that you want to scale.

3. Scroll to the **Configurations** section.

4. Next to the **Replicas per shard** field, click **Edit replica count** ().

5. From the **Replicas** menu, select the number of replicas that you want for
   the cluster. You can select 0-5 replicas per shard.

6. Click **Update cluster**.

### gcloud

To update the number of replicas, use the [`gcloud redis clusters update`](https://docs.cloud.google.com/sdk/gcloud/reference/redis/clusters/update.md.txt) command:

```
gcloud redis clusters update CLUSTER_ID \
  --region=REGION_ID \
  --replica-count=REPLICA_COUNT
```

Make the following replacements:

- <var translate="no">CLUSTER_ID</var>: the ID of the cluster.
- <var translate="no">REGION_ID</var>: the region where the cluster is located.
- <var translate="no">REPLICA_COUNT</var>: the number of replicas (per shard) that you want for the cluster. Acceptable values are `0`-`5`.