From a56d6c6df577cbd1b2c0141b8aaee0950e958b77 Mon Sep 17 00:00:00 2001 From: Jeff Groves Date: Thu, 12 Jun 2025 12:38:36 -0400 Subject: [PATCH 1/2] Update installing-redisgears.md Adding directions on how to use the newly installed redisgears version to upgrade a database. It was a little jarring not having this available on this page. It left me hanging when I needed to upgrade a database. It took me a good five minutes to fine the information on how to apply the upgrade to a database. --- .../gears-v1/installing-redisgears.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/content/operate/oss_and_stack/stack-with-enterprise/gears-v1/installing-redisgears.md b/content/operate/oss_and_stack/stack-with-enterprise/gears-v1/installing-redisgears.md index 548b412103..19942f0745 100644 --- a/content/operate/oss_and_stack/stack-with-enterprise/gears-v1/installing-redisgears.md +++ b/content/operate/oss_and_stack/stack-with-enterprise/gears-v1/installing-redisgears.md @@ -85,3 +85,14 @@ After installation, create a new database and enable RedisGears: ## Uninstall RedisGears To uninstall RedisGears, make a [`DELETE` request to the `/v2/modules` REST API endpoint]({{< relref "/operate/rs/references/rest-api/requests/modules#delete-module-v2" >}}). + +## Upgrade existing databases to a new version of RedisGear + +To upgrade an existing database, use the following `rladmin` command: + ```sh + rladmin upgrade db and module module_name rg version module_args "" + ``` +Example: To upgrade database `shoppingcart` to RedisGears version 1.2.9 and to continue to use the same configuration: + ```sh + rladmin upgrade db shopping-cart and module module_name rg version 10209 module_args keep_args + ``` From 53cf11466869a331e5e313bb2d75f1b85e0fceac Mon Sep 17 00:00:00 2001 From: Rachel Elledge <86307637+rrelledge@users.noreply.github.com> Date: Mon, 16 Jun 2025 12:15:35 -0500 Subject: [PATCH 2/2] Copy edits for upgrading RedisGears --- .../gears-v1/installing-redisgears.md | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/content/operate/oss_and_stack/stack-with-enterprise/gears-v1/installing-redisgears.md b/content/operate/oss_and_stack/stack-with-enterprise/gears-v1/installing-redisgears.md index 19942f0745..f3db87fb98 100644 --- a/content/operate/oss_and_stack/stack-with-enterprise/gears-v1/installing-redisgears.md +++ b/content/operate/oss_and_stack/stack-with-enterprise/gears-v1/installing-redisgears.md @@ -82,17 +82,20 @@ After installation, create a new database and enable RedisGears: - [With the JVM]({{< relref "/operate/oss_and_stack/stack-with-enterprise/gears-v1/jvm/install" >}}) -## Uninstall RedisGears +## Upgrade RedisGears for existing databases -To uninstall RedisGears, make a [`DELETE` request to the `/v2/modules` REST API endpoint]({{< relref "/operate/rs/references/rest-api/requests/modules#delete-module-v2" >}}). +To upgrade RedisGears for an existing database after installing a new version, use [`rladmin upgrade db`]({{}}): + +```sh +rladmin upgrade db and module module_name rg version module_args "" +``` + +The following example shows how to upgrade a database named `shopping-cart` to RedisGears version 1.2.9 without changing its configuration: -## Upgrade existing databases to a new version of RedisGear +```sh +rladmin upgrade db shopping-cart and module module_name rg version 10209 module_args keep_args +``` -To upgrade an existing database, use the following `rladmin` command: - ```sh - rladmin upgrade db and module module_name rg version module_args "" - ``` -Example: To upgrade database `shoppingcart` to RedisGears version 1.2.9 and to continue to use the same configuration: - ```sh - rladmin upgrade db shopping-cart and module module_name rg version 10209 module_args keep_args - ``` +## Uninstall RedisGears + +To uninstall RedisGears, make a [`DELETE` request to the `/v2/modules` REST API endpoint]({{< relref "/operate/rs/references/rest-api/requests/modules#delete-module-v2" >}}).