How to upgrade the version of your Redis™ Database Instance
Scaleway supports the latest version of Redis™ (7.2.11). Follow the steps below to upgrade your Database Instance's to the latest Redis™ version.
Before you start
To complete the actions presented below, you must have:
- A Scaleway account logged into the console
- Owner status or IAM permissions allowing you to perform actions in the intended Organization
- A valid API key
- Configured your environment variables (optional)
- Ensured that your upgrade path is supported by Redis™. If it is not supported, you will need to first upgrade to a supported intermediate version.
You can list your Database Instances to determine which ones need to be updated.
-
Run the following command. Replace the values with your corresponding information if you have not set environment variables.
curl -X GET -H "Content-Type: application/json" \ -H "X-Auth-Token: $SCW_SECRET_KEY" https://api.scaleway.com/redis/v1/zones/$SCW_ZONE/clusters
You should get a response like the following, where each
cluster
corresponds to a Redis™ Database Instance.{ "clusters": [ { "id": "string", "name": "string", "project_id": "string", "status": "string", "version": "string", "endpoints": [ ], "tags": [], "node_type": "string", "created_at": "string", "updated_at": "string", "tls_enabled": "boolean", "cluster_settings": [], "acl_rules": [], "cluster_size": "integer", "zone": "string", "user_name": "string", "upgradable_versions": [] } ], "total_count": "integer" }
-
Make note of the ID(s) of the Instance(s) you want to upgrade.
To upgrade to a more recent version of Redis™, you can use the migrate endpoint.
-
Run the following command. Make sure you replace
{cluster_id}
with the ID of your Database Instance.curl -X POST \ -H "X-Auth-Token: $SCW_SECRET_KEY" https://api.scaleway.com/redis/v1/zones/{zone}/clusters/{cluster_id}/migrate \ -H "Content-Type: application/json" \ -d '{ "version": "7.2.11" }'
If the operation is successful you will see the configuration of your Instance, with the updated version.