[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-19 UTC."],[],[],null,["# Scale replica count\n\nThis page explains how to scale the number of replicas used by your\ninstance.\n\nUpdate replica count for an existing instance\n---------------------------------------------\n\nUpdating the number of replicas for an instance allows you to enable replicas,\ndisable replicas, and change the number of replicas per shard. \n\n### Console\n\n1. Go to the **Memorystore for Valkey** page in the Google Cloud console.\n\n [Memorystore for Valkey](https://console.cloud.google.com/memorystore/valkey/instances?)\n2. Click your instance ID.\n\n3. In the **Configurations** section, click the pencil icon next to\n **Replica Count**.\n\n4. Select your desired number of replicas from the **Replicas** dropdown\n menu.\n\n5. Click the **Update Instance** button.\n\n### gcloud\n\nTo update the number of replicas, run the `update` command: \n\n```\ngcloud memorystore instances update INSTANCE \\\n --location=REGION_ID \\\n --replica-count=COUNT\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eINSTANCE\u003c/var\u003e is the ID of the Memorystore for Valkey instance.\n- \u003cvar translate=\"no\"\u003eREGION_ID\u003c/var\u003e is the region where the instance is located.\n- \u003cvar translate=\"no\"\u003eCOUNT\u003c/var\u003e is the number of replicas (per shard) for your instance. Accepted values are `0`, `1`, and `2`."]]