Upgrading the Redis version for an instance

This page describes how to upgrade the Redis version of a Memorystore for Redis instance. For more information about instance behavior during an upgrade operation, see Behavior during version upgrade.

Best practices for upgrading an instance's Redis version

  • We recommend exporting your instance data before running a version upgrade operation.

  • Note that upgrading an instance is irreversible. You cannot downgrade the Redis version of a Memorystore for Redis instance.

  • For Standard Tier instances, to increase the speed and reliability of your version upgrade operation, upgrade your instance during periods of low instance traffic. To learn how to monitor instance traffic, see Monitoring Redis instances.

gcloud upgrade command

To upgrade the Redis version of your instance, enter the following command, replacing variables with appropriate values:

gcloud beta redis instances upgrade instance-id --redis-version=version --region=region

For example:

gcloud beta redis instances upgrade myinstance --redis-version=redis_4_0 --region=us-central1