Online migration to ElastiCache - Amazon ElastiCache for Redis
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Online migration to ElastiCache

By using Online Migration, you can migrate your data from self-hosted open-source Redis on Amazon EC2 to Amazon ElastiCache.

Note

Online migration is not supported to ElastiCache serverless caches or clusters running on the r6gd node type.

Overview

To migrate your data from open-source Redis running on Amazon EC2 to Amazon ElastiCache requires an existing or newly created Amazon ElastiCache deployment. The deployment must have a configuration that is ready for migration. It also should be in line with the configuration that you want, including attributes such as instance type, number of shards, and number of replicas.

Online migration is designed for data migration from self-hosted open-source Redis on Amazon EC2 to ElastiCache for Redis and not between ElastiCache for Redis clusters.

Important

We strongly recommend you read the following sections in their entirety before beginning the online migration process.

The migration begins when you call the StartMigration API operation or Amazon CLI command. For Redis cluster-mode disabled, the migration process makes the primary node of the ElastiCache for Redis cluster a replica of your source Redis primary. For Redis cluster-mode enabled, the migration process makes the primary node of each ElastiCache shard a replica of your source cluster's corresponding shard owning the same slots.

After the client-side changes are ready, call the CompleteMigration API operation. This API operation promotes your ElastiCache deployment to your primary Redis deployment with primary and replica nodes (as applicable). Now you can redirect your client application to start writing data to ElastiCache. Throughout the migration, you can check the status of replication by running the redis-cli INFO command on your Redis nodes and on the ElastiCache primary nodes.

Migration steps

The following topics outline the process for migrating your data: