Cloud Infrastructure
Yelp Migrates Cassandra to AWS EKS Without Data Transfer by Swapping Storage Volumes
Yelp moved its Cassandra database from legacy Kubernetes to Amazon EKS by directly repointing storage volumes at new pods, avoiding weeks of data streaming and achieving zero downtime.
InfoQ
Yelp has successfully transitioned its Cassandra database clusters from legacy self-managed Kubernetes to Amazon EKS using an innovative approach that bypassed traditional data-streaming migration methods. By directly reassigning existing storage volumes to new infrastructure rather than copying data across the network, the company achieved a seamless move spanning roughly 1,000 pods and 1 petabyte of storage across approximately 90 production clusters, with no customer downtime and no data loss.
The Challenge of Moving Stateful Workloads#
Yelp had already migrated its stateless applications to EKS, but Cassandra presented a distinct problem. Kubernetes lacks built-in tooling to transition StatefulSets and their persistent storage between clusters. The conventional approach—spinning up new nodes and decommissioning old ones—would have created temporary resource waste and triggered substantial data-transfer costs. For Yelp's largest clusters, standard streaming could have required weeks of continuous migration activity.
The company evaluated alternative paths, including regional failover-and-rebuild and setting up new Cassandra datacenters within EKS, but deemed both less transparent to customer operations.
The "Rolling PV Transplant" Mechanism#
Yelp's solution exploited a fundamental property of AWS infrastructure: EBS volumes are tied to specific Availability Zones, not to individual clusters. A Kubernetes PersistentVolume acts as a pointer to a volume ID, enabling the volume to remain bound to its zone while changing which cluster accesses it.
The process unfolded in stages:
- Pre-creation: The team built
PersistentVolumeandPersistentVolumeClaimobjects in EKS that referenced the original volume IDs, then deployed an identicalStatefulSetwhere pods remained inContainerCreatingstate - Incremental transfer: Automation deleted a single legacy pod, waited for its volume to detach, and allowed the corresponding EKS pod to claim it
- Rebalancing: The pod rejoined the Cassandra ring with its original data and token range intact
- Repetition: The cycle advanced through remaining pods one at a time
Cassandra's built-in replication handled the brief offline window for each node.

