pre-ACL
to describe Redis version 5 and below, and post-ACL
to describe Redis version 6 and beyond.Pre-ACL to Pre-ACL and Post-ACL to Post-ACL Upgrades
Collection Configuration Information
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.
Contact the Aptible Support Team
Restart the Database
aptible db:reload
CLI command:Pre-ACL to Post-ACL Upgrades
Method 1: Use Replication to Orchestrate a Minimal-Downtime Upgrade
Collect Configuration Information
OLD_HANDLE
- The handle (i.e. name) of the Database.
ENVIRONMENT
- The handle of the Environment the Database belongs to.
NEW_HANDLE
- The handle (i.e., name) for the Database.
NEW_VERSION
- The desired Redis version. Run aptible db:versions
to see a full list of options. Note that there are different “flavors” of Redis for each version. Double-check that the new version has the same flavor as the original database’s version.
NEW_CONTAINER_SIZE
(Optional) - The size of the new Database’s container in MB. You likely want this value to be the same as the original database’s container size. See the Database Scaling documentation for a full list of supported container sizes.
NEW_DISK_SIZE
(Optional) - The size of the new Database’s disk in GB. You likely want this value to be the same as the original database’s disk size.
Provision the new Database
aptible db:create
.Example:Tunnel into the new Database
aptible db:tunnel
command.Example:NEW_URL
environment variable in the original terminal.Example:Retrieve the Old Database's Database Credentials
OLD_HOST
OLD_PORT
OLD_PASSWORD
Connect to the New Database
Initialize Replication
Cutover to the New Database
REPLICAOF NO ONE
via the Redis CLI to stop replication. Finally, deprovision the old database using the command aptible db:deprovision.Method 2: Dump and Restore to a new Redis Database
Collection Configuration Information
OLD_HANDLE
- The handle (i.e. name) of the Database.
ENVIRONMENT
- The handle of the Environment the Database belongs to
NEW_HANDLE
- The handle (i.e., name) for the Database.
NEW_VERSION
- The desired Redis version. Run aptible db:versions
to see a full list of options. Note that there are different “flavors” of Redis for each version. Double-check that the new version has the same flavor as the original database’s version.
NEW_CONTAINER_SIZE
(Optional) - The size of the new Database’s container in MB. You likely want this value to be the same as the original database’s container size. See the Database Scaling documentation for a full list of supported container sizes.
NEW_DISK_SIZE
(Optional) - The size of the new Database’s disk in GB. You likely want this value to be the same as the original database’s disk size.
Provision the New Database
aptible db:create
.Example:Tunnel into the Old Database
aptible db:tunnel
command.Example:aptible db:tunnel
, and store it in the OLD_URL
environment variable in the original terminal.Example:Dump the Old Database
Tunnel into the New Database
aptible db:tunnel
command, and save the Connection URL as NEW_URL
.Restore the Redis Dump using rdb
Cutover to the New Database
aptible db:deprovision
.