Yelp Migrates Cassandra to EKS by Moving EBS Volumes
Yelp's Cassandra migration is a lesson in reading the abstraction: a PersistentVolume is just a pointer, so Yelp moved pointers instead of copying data.
1 min read
Yelp’s Cassandra migration is a lesson in reading the abstraction: a PersistentVolume is just a pointer, so Yelp moved pointers instead of copying data.
Key points
- Yelp migrated about 90 production Cassandra clusters from self-managed Kubernetes to Amazon EKS with zero customer downtime and no data loss.
- Its “Rolling PV Transplant” pre-creates PVs and PVCs in EKS that reference existing EBS volume IDs, then moves pods one at a time.
- The method works because EBS volumes are bound to an Availability Zone rather than a Kubernetes cluster.
- The largest cluster, 54 pods, took about 12 hours, versus potentially weeks of data streaming.
- It avoided doubling compute capacity and data-transfer costs, relying on Cassandra replication to tolerate brief per-node outages.
Why it matters
Kubernetes has no built-in way to move StatefulSets across clusters. Yelp noticed the volume never cared which cluster it belonged to, and turned weeks of streaming into 12 hours.
Sources
Sources
developer-tools industry
Frequently Asked Questions
How did Yelp move Cassandra to EKS without copying data?
Yelp pre-created PersistentVolumes and claims in EKS that pointed at existing EBS volume IDs, then deleted legacy pods one at a time so the matching EKS pod could attach the same volume. Each node rejoined the Cassandra ring with the same data and token range.
How big was the migration?
Yelp migrated about 90 production Cassandra clusters with zero customer downtime and no data loss. The largest, a 54-pod user-data store, took about 12 hours end to end.
Why not use the standard approach?
The usual method adds nodes in the new cluster and streams data, which temporarily doubles compute capacity and incurs data-transfer costs. For Yelp's largest clusters, streaming alone could have taken weeks.