Migrating Redis to AnubizHost
Redis migrations are usually quick - data is small and the persistence formats (RDB, AOF) are portable. This guide covers RDB snapshot migration, AOF replay, and replication-based zero-downtime cutover on AnubizHost offshore VPS.
Need this done for your project?
We implement, you ship. Async, documented, done in days.
Choose Migration Approach
Three paths:
- RDB snapshot: simplest, copy dump.rdb file from source to target, restart Redis. Brief downtime (1-2 minutes).
- AOF replay: copy appendonly.aof, start target Redis which replays the AOF on startup. Same downtime profile as RDB.
- SLAVEOF replication: configure target as replica of source, wait for sync, promote target to primary. Near-zero downtime.
Provision AnubizHost Target
Order offshore VPS with RAM equal to source Redis dataset size + 20% overhead. Install Redis 7: apt install redis-server. Tune redis.conf: maxmemory to ~80% of RAM, maxmemory-policy allkeys-lru for cache workloads or noeviction for persistent data, appendonly yes for durability.
Path 3: Replication-Based Migration
On target: SLAVEOF source-host 6379 (or REPLICAOF in Redis 5+). Wait for sync to complete (monitor INFO replication for master_sync_in_progress:0). Cut over: SLAVEOF NO ONE on target, update application config to point at target, restart application.
This achieves sub-second downtime if the application supports a brief connection re-establishment.
Cluster vs Single-Node Migration
Single-node Redis migrates with paths above. Redis Cluster migration is more complex - migrate each shard (master+replicas) independently, then update CLUSTER NODES topology. For most workloads, single-node with periodic AOF backups is sufficient and operationally simpler than Cluster.
Post-Migration Tasks
Set up periodic RDB snapshots: save 900 1, save 300 10, save 60 10000. Backup dump.rdb to AnubizHost storage VPS nightly. Configure replica on second AnubizHost VPS for HA if Redis is critical-path. Related reading: database hosting, EC2 migration, MongoDB migration.
Related Services
Why Anubiz Host
Ready to get started?
Skip the research. Tell us what you need, and we'll scope it, implement it, and hand it back — fully documented and production-ready.