Pre-ACL to Pre-ACL and Post-ACL to Post-ACL Upgrades
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. Runaptible db:versionsto see a full list of options.
Contact the Aptible Support Team
- Ensure that you have Administrator Access to 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:
Restart the Database
aptible db:reload CLI command:Pre-ACL to Post-ACL Upgrades
Pre-ACL to Post-ACL Upgrades
Method 1: Use Replication to Orchestrate a Minimal-Downtime Upgrade
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. Runaptible db:versionsto 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_HOSTOLD_PORTOLD_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
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. Runaptible db:versionsto 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.
