From c0186c490a75357f94bd928cb65b024684712920 Mon Sep 17 00:00:00 2001 From: ldecarvalho-doc <82805470+ldecarvalho-doc@users.noreply.github.com> Date: Thu, 16 Oct 2025 14:45:21 +0200 Subject: [PATCH 1/3] fix(red): upgrade --- .../api-cli/upgrade-redis-version.mdx | 85 +++++++++++++++++++ pages/managed-databases-for-redis/menu.ts | 6 +- 2 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 pages/managed-databases-for-redis/api-cli/upgrade-redis-version.mdx diff --git a/pages/managed-databases-for-redis/api-cli/upgrade-redis-version.mdx b/pages/managed-databases-for-redis/api-cli/upgrade-redis-version.mdx new file mode 100644 index 0000000000..08e056e084 --- /dev/null +++ b/pages/managed-databases-for-redis/api-cli/upgrade-redis-version.mdx @@ -0,0 +1,85 @@ +--- +title: How to upgrade the version of your Redis™ Database Instance +description: Steps to upgrade the version of your Redis™ Database Instance on Scaleway. +tags: managed-database redis database version upgrade +dates: + validation: 2025-10-15 +--- +import Requirements from '@macros/iam/requirements.mdx' + +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. + + +- We recommend you use the latest available version of Redis (7.2.11) with your Database Instances to avoid the vulnerabilities identified in the [Redis™' Security Advisory: CVE-2025-49844](https://redis.io/blog/security-advisory-cve-2025-49844/). + + + + +- A Scaleway account logged into the [console](https://console.scaleway.com) +- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization +- A valid [API key](/iam/how-to/create-api-keys/) +- [Configured your environment variables](https://github.com/scaleway/scaleway-cli/blob/master/docs/commands/config.md) (optional) +- Make sure you check that your upgrade path is [supported by Redis™](https://redis.io/docs/latest/operate/rs/references/upgrade-paths/). 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. + +1. Run the following command. Replace the values with your corresponding information if you have not set environment variables. + + ```bash + 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. + ```json + { + "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" + } + ``` +2. 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](https://www.scaleway.com/en/developers/api/managed-databases-for-redis/#path-redistm-database-instance-scale-up-a-redistm-database-instance). + +3. Run the following command. Make sure you replace `{cluster_id}` with the ID of your Database Instance. + + + Since we use a POST type call, you only need to edit the parameter that defines the version, the other confguration of your Database Instance will remain the same. + + + ```bash + 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. + + + If your Database Instance is in standalone mode, there might be a few seconds of downtime while the Instance upgrades. For High Availability and Cluster modes, the upgrade is performed first on secondary nodes, then the main node. When the main node is upgraded, one of the secondary nodes takes over automatically to reduce downtime. + \ No newline at end of file diff --git a/pages/managed-databases-for-redis/menu.ts b/pages/managed-databases-for-redis/menu.ts index efe506939f..080e28772f 100644 --- a/pages/managed-databases-for-redis/menu.ts +++ b/pages/managed-databases-for-redis/menu.ts @@ -64,6 +64,10 @@ export const managedDatabaseRedisMenu = { label: 'Using Publish/Subscribe messaging', slug: 'using-pub-sub-feature', }, + { + label: 'Upgrade your Redis™ version', + slug: 'upgrade-redis-version', + } ], label: 'API/CLI', slug: 'api-cli', @@ -77,7 +81,7 @@ export const managedDatabaseRedisMenu = { { label: 'Ensuring data persistence', slug: 'ensuring-data-persistence', - }, + } ], label: 'Additional Content', slug: 'reference-content', From c05a8e3934c9b74aca8cecde71c05524e7a08482 Mon Sep 17 00:00:00 2001 From: ldecarvalho-doc <82805470+ldecarvalho-doc@users.noreply.github.com> Date: Mon, 20 Oct 2025 10:25:46 +0200 Subject: [PATCH 2/3] fix(red): reviews MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Néda <87707325+nerda-codes@users.noreply.github.com> --- .../api-cli/upgrade-redis-version.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/managed-databases-for-redis/api-cli/upgrade-redis-version.mdx b/pages/managed-databases-for-redis/api-cli/upgrade-redis-version.mdx index 08e056e084..0b1a1e3db7 100644 --- a/pages/managed-databases-for-redis/api-cli/upgrade-redis-version.mdx +++ b/pages/managed-databases-for-redis/api-cli/upgrade-redis-version.mdx @@ -10,7 +10,7 @@ import Requirements from '@macros/iam/requirements.mdx' 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. -- We recommend you use the latest available version of Redis (7.2.11) with your Database Instances to avoid the vulnerabilities identified in the [Redis™' Security Advisory: CVE-2025-49844](https://redis.io/blog/security-advisory-cve-2025-49844/). +- We recommend you use the latest available version of Redis (7.2.11) with your Database Instances to avoid the vulnerabilities identified in the [Redis™' Security Advisory: CVE-2025-49844](https://redis.io/blog/security-advisory-cve-2025-49844/) and be able to safely use eval/evalsha commands. @@ -19,7 +19,7 @@ Scaleway supports the latest version of Redis™ (7.2.11). Follow the steps belo - [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization - A valid [API key](/iam/how-to/create-api-keys/) - [Configured your environment variables](https://github.com/scaleway/scaleway-cli/blob/master/docs/commands/config.md) (optional) -- Make sure you check that your upgrade path is [supported by Redis™](https://redis.io/docs/latest/operate/rs/references/upgrade-paths/). If it is not supported, you will need to first upgrade to a supported intermediate version. +- Ensured that your upgrade path is [supported by Redis™](https://redis.io/docs/latest/operate/rs/references/upgrade-paths/). 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. From 1f33dcf56d500d2d0f76c04ed6fa1e89b8e9ae6f Mon Sep 17 00:00:00 2001 From: ldecarvalho-doc <82805470+ldecarvalho-doc@users.noreply.github.com> Date: Mon, 20 Oct 2025 10:33:19 +0200 Subject: [PATCH 3/3] fix(red): review bene Co-authored-by: Benedikt Rollik --- .../api-cli/upgrade-redis-version.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/managed-databases-for-redis/api-cli/upgrade-redis-version.mdx b/pages/managed-databases-for-redis/api-cli/upgrade-redis-version.mdx index 0b1a1e3db7..dc311d0ea1 100644 --- a/pages/managed-databases-for-redis/api-cli/upgrade-redis-version.mdx +++ b/pages/managed-databases-for-redis/api-cli/upgrade-redis-version.mdx @@ -10,7 +10,7 @@ import Requirements from '@macros/iam/requirements.mdx' 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. -- We recommend you use the latest available version of Redis (7.2.11) with your Database Instances to avoid the vulnerabilities identified in the [Redis™' Security Advisory: CVE-2025-49844](https://redis.io/blog/security-advisory-cve-2025-49844/) and be able to safely use eval/evalsha commands. +- We recommend you use the latest available version of Redis™ (7.2.11) with your Database Instances to avoid the vulnerabilities identified in the [Redis™' Security Advisory: CVE-2025-49844](https://redis.io/blog/security-advisory-cve-2025-49844/) and be able to safely use eval/evalsha commands.