Upgrade the Valkey version of an instance

This page describes how to upgrade the version of a Memorystore for Valkey instance. For a list of available versions, see Supported versions.

When you upgrade the version of an instance, Memorystore for Valkey uses a create-before-destroy lifecycle strategy. For highly available instances, this strategy is a zero-downtime operation. For Cluster Mode Disabled instances, the upgrade triggers a brief failover that typically drops connections for about 15 seconds. For more information, see Version upgrade behavior.

Upgrade the instance version

Console

  1. In the Google Cloud console, go to the Memorystore for Valkey page.

    Memorystore for Valkey

  2. Click the ID of the instance that you want to upgrade.

  3. In the Configurations section, next to Valkey version, click Upgrade.

  4. In the Upgrade version dialog, do the following:

    1. Click the Version menu.
    2. Select the version to which you want to upgrade your instance.
    3. Click Update instance.

gcloud

To upgrade the version of your instance, use the gcloud memorystore instances update command.

gcloud memorystore instances update INSTANCE_ID \
--project=PROJECT_ID \
--location=REGION_ID \
--engine-version=ENGINE_VERSION

Replace the following:

  • INSTANCE_ID: the ID of your Memorystore for Valkey instance.
  • PROJECT_ID: the project ID or number of the Google Cloud project where the instance is located.
  • REGION_ID: the region where the instance is located.
  • ENGINE_VERSION: the version number of Valkey to which you want to upgrade your instance. Accepted values are VALKEY_7_2, VALKEY_8_0, VALKEY_9_0, and VALKEY_9_1.

For example:

gcloud memorystore instances update my-instance \
--project=my-project \
--location=us-central1 \
--engine-version=VALKEY_9_1