How to upgrade Redis

The goal of this guide is to upgrade a Redis Database to a newer release. The process is quick and easy to complete but only works from one release to the next so, in order to upgrade multiple releases, the process must be completed multiple times.

Preparation

Tools

Install the Aptible CLI.

Configuration

Collect information on the Database you'd like to upgrade and store it in the following environment variables for use later in the guide:

  • DB_HANDLE - The handle (i.e. name) of the Database.
  • ENVIRONMENT - The handle of the environment the Database belongs to.
  • VERSION - The desired Redis version. Run aptible db:versions to see a full list of options.

Example:

DB_HANDLE='my-redis'
ENVIRONMENT='test-environment'
VERSION='5.0-aof'

Contact Aptible Support

An Aptible team member must update the Database's metadata to the new version in order to upgrade the Database. When contacting Aptible Support please adhere to the following rules to ensure a smooth upgrade process:

  • Ensure that you have Manage Access on the Database's Environment. If you do not, please have someone with access contact support or CC an Account Owner or Deploy Owner for approval.

  • Use the same email address that's associated with your Aptible user account to contact support.

  • Include the configuration values above. You may run the following command to generate a request with the required information:

    echo "Please upgrade our Redis database, ${ENVIRONMENT} - ${DB_HANDLE}, to version ${VERSION}. Thank you."
    

Execution

Once support has updated the Database, restarting it is all that's required to apply the change. You may do so at your convenience with the aptible db:reload CLI command:

aptible db:reload --environment "$ENVIRONMENT" "$DB_HANDLE"