Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
En esta página, se describe cómo escalar una instancia de Memorystore para Redis Cluster.
La capacidad de tu instancia se determina según la cantidad de fragmentos que contiene y el tipo de nodo de la instancia.
Para escalar tu instancia, debes cambiar el recuento de fragmentos o el tipo de nodo.
Para obtener más información sobre el comportamiento de una instancia durante el escalamiento, consulta Acerca del escalamiento de la capacidad de instancias.
Cómo ajustar el recuento de fragmentos
Puedes aumentar o disminuir la cantidad de fragmentos de una instancia con la consola de Google Cloud o Google Cloud CLI.
Console
En la consola de Google Cloud , ve a la página Memorystore for Redis Cluster.
REGION_ID: Es la región en la que se encuentra la instancia.
SHARD_COUNT: Es la cantidad de fragmentos en tu instancia. El recuento de fragmentos determina la capacidad total de memoria para almacenar datos de instancias. Para obtener más información sobre las especificaciones de clústeres y nodos para las instancias de Memorystore for Redis Cluster, consulta Especificaciones de clústeres y nodos.
REGION_ID: Es la región en la que se encuentra tu instancia (por ejemplo, us-central1).
Verifica el resultado para ver si se cumplen las siguientes condiciones:
El resultado contiene una sección redisConfigs.
En esta sección, aparecen los parámetros maxmemory-clients, maxmemory o maxclients.
Si aparece alguno de estos parámetros, cuando escale el tipo de nodo para la instancia, deberá escalar los valores de los parámetros para que reflejen los valores que Memorystore para Redis Cluster puede aceptar para el tipo de nodo escalado. Para obtener más información, consulta Parámetros de configuración modificables.
REGION_ID: Es la región en la que se encuentra la instancia.
NODE_TYPE: Es el tipo de nodo al que deseas escalar tu instancia. Los valores aceptables para este parámetro son redis-shared-core-nano, redis-standard-small, redis-highmem-medium y redis-highmem-xlarge.
En este ejemplo, ajustas el tipo de nodo de la instancia my-instance a redis-highmem-medium. Esta instancia se encuentra en la región us-central1.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (UTC)"],[],[],null,["# Scale instance capacity\n\nThis page describes how to scale a Memorystore for Redis Cluster instance.\nYour instance's capacity is determined by the number of shards in your instance\nand your instance's [node type](/memorystore/docs/cluster/cluster-node-specification).\nTo scale your instance, you must change the shard count or node type.\nFor more information about an instance's behavior during scaling, see\n[About scaling instance capacity](/memorystore/docs/cluster/about-scaling-instance-capacity).\n\nScale the shard count\n---------------------\n\nYou can increase or decrease the number of shards for an instance by using\neither the Google Cloud console or [Google Cloud CLI](/sdk/gcloud). \n\n### Console\n\n1. In the Google Cloud console, go to the **Memorystore for Redis Cluster** page.\n\n [Memorystore for Redis Cluster](https://console.cloud.google.com/memorystore/redis/clusters?)\n2. Click your cluster ID.\n\n3. In the **Configurations** section, click the pencil icon next to\n **Shards**.\n\n4. In the **Shards** field, enter the number of shards to which you want to\n scale your instance.\n\n5. Click **Update cluster**.\n\n### gcloud\n\nTo scale the number of shards for an instance, use the [`gcloud redis clusters update`](/sdk/gcloud/reference/redis/clusters/update) command: \n\n```\ngcloud redis clusters update INSTANCE_ID \\\n--region=REGION_ID \\\n--shard-count=SHARD_COUNT\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e: the ID of your instance.\n- \u003cvar translate=\"no\"\u003eREGION_ID\u003c/var\u003e: the region where your instance is located.\n- \u003cvar translate=\"no\"\u003eSHARD_COUNT\u003c/var\u003e: the number of shards in your instance. The shard count determines the total memory capacity for storing instance data. For more information about cluster and node specifications for Memorystore for Redis Cluster instances, see [Cluster and node specification](/memorystore/docs/cluster/cluster-node-specification).\n\nFor example: \n\n```\ngcloud redis clusters update my-instance \\\n--region=us-central1 \\\n--shard-count=8\n```\n\nScale the node type\n-------------------\n\nYou can scale the node type for an instance by using the [Google Cloud CLI](/sdk/gcloud). \n\n### gcloud\n\n1. To retrieve information about an instance, use the [`gcloud redis clusters describe`](/sdk/gcloud/reference/redis/clusters/describe) command:\n\n ```\n gcloud redis clusters describe INSTANCE_ID \\\n --region=REGION_ID\n ```\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e: the ID of your instance\n - \u003cvar translate=\"no\"\u003eREGION_ID\u003c/var\u003e: the region where your instance is located (for example, `us-central1`)\n2. Check the output to see if the following conditions exist:\n\n 1. The output contains a `redisConfigs` section.\n\n 2. The `maxmemory-clients`, `maxmemory`, or `maxclients` parameters appear\n in this section.\n\n If any of these parameters appear, then when you scale the node type for the\n instance, you must scale the values for the parameters to reflect values\n that Memorystore for Redis Cluster can accept for the scaled node type. For more\n information, see [Modifiable configuration parameters](/memorystore/docs/cluster/supported-instance-configurations#modifiable_configuration_parameters).\n3. To scale the node type, use the [`gcloud redis clusters update`](/sdk/gcloud/reference/redis/clusters/update) command:\n\n ```\n gcloud redis clusters update INSTANCE_ID \\\n --region=REGION_ID \\\n --node-type=NODE_TYPE\n ```\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e: the ID of your instance.\n - \u003cvar translate=\"no\"\u003eREGION_ID\u003c/var\u003e: the region where your instance is located.\n - \u003cvar translate=\"no\"\u003eNODE_TYPE\u003c/var\u003e: the node type to which you want to scale your\n instance. Acceptable values for this parameter are `redis-shared-core-nano`, `redis-standard-small`, `redis-highmem-medium`, and `redis-highmem-xlarge`.\n\n | **Note:** You can't scale your instance down to the `redis-shared-core-nano` node type.\n | **Caution** : We recommend that you use the `redis-shared-core-nano` node type for development or testing purposes only. If you run Memorystore for Redis Cluster in a production environment, then we recommend using the `redis-standard-small`, `redis-highmem-medium`, or `redis-highmem-xlarge` node types. For more information about these node types, see [Choose a node type](/memorystore/docs/cluster/cluster-node-specification#choose_a_node_type).\n\n For this example, you scale the node type of the `my-instance` instance to `redis-highmem-medium`. This instance is located in the `us-central1`\n region. \n\n ```\n gcloud redis clusters update my-instance \\\n --region=us-central1 \\\n --node-type=redis-highmem-medium\n ```\n\n For this example, you change the value of the `maxclients` parameter to\n `15,000`. \n\n ```\n gcloud redis clusters update my-instance \\\n --region=us-central1 \\\n --node-type=redis-highmem-medium \\\n --update-redis-config=maxclients=15000\n ```\n\n\u003cbr /\u003e"]]