This page describes how to upgrade the Redis version of a Memorystore for Redis instance. For a list of available versions, see Supported versions. For more information about instance behavior during an upgrade operation, see Version upgrade behavior.
Upgrading the instance version
- Go to the Memorystore for Redis page in the Google Cloud console
Memorystore for Redis - Click the instance ID of the instance you want to upgrade
- In the Configuration section, next to Redis Version, click UPGRADE
- Click the UPGRADE button in the dialog to upgrade your instance
To upgrade the Redis version of your instance, enter the following command, replacing variables with appropriate values:
gcloud redis instances upgradeinstance-id --redis-version=version --region=region
Where:
- instance-id is your instance ID
- version is the version you want to upgrade to:
- Acceptable values are:
redis_4_0
,redis_5_0
,redis_6_x
,redis_7_0
, andredis_7_2
- Acceptable values are:
- region is the region in which the instance is provisioned
For example:
gcloud redis instances upgrade myinstance --redis-version=redis_7_0 --region=us-central1