Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Auf dieser Seite wird beschrieben, wie Sie die Anzahl der Replikate skalieren, die von Ihrer Instanz verwendet werden.
Anzahl der Replikate für eine vorhandene Instanz aktualisieren
Wenn Sie die Anzahl der Replikate für eine Instanz aktualisieren, können Sie Replikate aktivieren, deaktivieren und die Anzahl der Replikate pro Shard ändern.
Console
Rufen Sie in der Google Cloud Console die Seite Memorystore for Valkey auf.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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`."]]