Fazer upgrade da versão do Valkey de uma instância
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Nesta página, descrevemos como fazer upgrade da versão de uma instância do Memorystore para Valkey. Para ver uma lista de versões disponíveis, consulte Versões compatíveis.
Para mais informações sobre o comportamento de uma instância durante uma operação de upgrade, consulte Comportamento de upgrade de versão.
Fazer upgrade da versão da instância
Console
No console Google Cloud , acesse a página da Memorystore para Valkey.
INSTANCE_ID: o ID da sua instância do Memorystore for Valkey.
PROJECT_ID: o ID do projeto ou número do projeto Google Cloud em que a instância está localizada.
REGION_ID: a região em que a instância está localizada.
ENGINE_VERSION: o número da versão do Valkey para a qual você quer
fazer upgrade da instância. Os únicos valores aceitáveis são VALKEY_7_2 e
VALKEY_8_0.
[[["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,["# Upgrade the Valkey version of an instance\n\nThis page describes how to upgrade the version of a Memorystore for Valkey\ninstance. For a list of available versions, see [Supported versions](/memorystore/docs/valkey/supported-versions).\nFor more information about the behavior of an instance during an upgrade\noperation, see [Version upgrade behavior](/memorystore/docs/valkey/about-upgrading-version#version-upgrade-behavior).\n\nUpgrade the instance version\n----------------------------\n\n**Important:** You can upgrade the version of an instance to any newer version. For example, you can upgrade from `7.2` to `8.0`. \n\n### Console\n\n1. In the Google Cloud console, go to the Memorystore for Valkey page.\n\n [Memorystore for Valkey](https://console.cloud.google.com/memorystore/valkey/instances?)\n2. Click the ID of the instance that you want to upgrade.\n\n3. In the **Configurations** section, next to **Valkey Version** , click\n **Upgrade**.\n\n4. In the **Upgrade instance version** dialog, do the following:\n\n 1. Click the **Version** menu.\n 2. Select the version to which you want to upgrade your instance.\n 3. Click **Update instance**.\n\n### gcloud\n\nTo upgrade the version of your instance, use the [`gcloud memorystore instances update`](/sdk/gcloud/reference/memorystore/instances/update) command. \n\n```\ngcloud memorystore instances update INSTANCE_ID \\\n--project=PROJECT_ID \\\n--location=REGION_ID \\\n--engine-version=ENGINE_VERSION\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e: the ID of your Memorystore for Valkey instance.\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the project ID or number of the Google Cloud project where the instance is located.\n- \u003cvar translate=\"no\"\u003eREGION_ID\u003c/var\u003e: the region where the instance is located.\n- \u003cvar translate=\"no\"\u003eENGINE_VERSION\u003c/var\u003e: the version number of Valkey to which you want to upgrade your instance. The only acceptable values are `VALKEY_7_2` and `VALKEY_8_0`.\n\nFor example: \n\n```\ngcloud memorystore instances update my-instance \\\n--project=my-project \\\n--location=us-central1 \\\n--engine-version=VALKEY_8_0\n```"]]