This page describes how to upgrade the version of a Memorystore for Valkey instance. For a list of available versions, see Supported versions . For more information about the behavior of an instance during an upgrade operation, see Version upgrade behavior .
Upgrade the instance version
Console
-
In the Google Cloud console, go to the Memorystore for Valkey page.
-
Click the ID of the instance that you want to upgrade.
-
In the Configurationssection, next to Valkey Version, click Upgrade.
-
In the Upgrade instance versiondialog, do the following:
- Click the Versionmenu.
- Select the version to which you want to upgrade your instance.
- 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. The only acceptable values are
VALKEY_7_2andVALKEY_8_0.
For example:
gcloud memorystore instances update my-instance \ --project=my-project \ --location=us-central1 \ --engine-version=VALKEY_8_0

