No downtime migration of stateful servers
summary
Migrates a Redis dataset from Redis Labs to an in-house Redis by taking a point-in-time snapshot, running the Redis monitor command on the source to stream commands into a durable queue, and replaying only post-snapshot commands with a consumer. Handles production scale (35 million keys, ~5 billion ops/day ≈ 4.5M ops/min), uses atomic HAProxy traffic switch for cutover, implements reverse replication for fast rollback, and reports a successful zero-downtime cutover in production.
AI-written summary · about
chapters (12)
- 0:00Introduction to speakers
- 1:51Downtime vs no downtime migration
- 3:17Stateful servers explained
- 5:42Custom real-time replication solution
- 6:04Core Redis Monitor command
- 10:58Live demo of replication
- 16:30Traffic switch strategy
- 21:05Advantages of no downtime
- 21:45Best practices for migration
- 23:28Handling out-of-order messages
- 26:59Rollback and reverse replication
- 28:56Q&A session
