Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Yelp Engineering 12 min read Case study mediumAdept

Zero-Copy Migration: How Yelp Moved Its Cassandra Fleet Between Kubernetes Clusters

Yelp moved roughly 1000 Cassandra pods and nearly a petabyte of data from self-managed Kubernetes clusters to Amazon EKS without streaming any data. EBS volumes are bound to an Availability Zone, not to a cluster, so the team pre-created PVs and PVCs in EKS pointing at the existing EBS volume IDs. They then rolled pods one at a time: delete the legacy pod, block it from rescheduling, and let the waiting EKS pod attach the freed volume and rejoin the ring. Both custom operators were paused with a skipReconciliation flag during the handoff, and rollback is the same pointer swap in reverse. The procedure was validated by hand first, then turned into an ~800-line bash script with Claude. The write-up covers pitfalls including stale VolumeAttachment objects, IAM drift that broke backups, and months-disabled repairs uncovered along the way.

Related posts

  • Evolving the Backend Storage for Platform Metrics

    Heroku Engineering mediumAdept

    Heroku migrated the time-series store behind MetaaS, its internal metrics service, from self-managed Apache Cassandra to AWS DynamoDB without user-visible impact. MetaaS ingests a couple hundred thousand observations per second into Kafka and aggregates them with stream-processing jobs, writing tens of thousands of points per second to the database. The migration used parallel dual-writes from Kafka and GitHub Scientist-style shadow reads, ramped to 100% of traffic, to catch edge cases. TTL-based retention meant no data backfill was needed: they waited for old Cassandra data to expire, then incrementally cut reads over. p99 query latency dropped from a variable 20–80 ms to a steady 15 ms, and costs fell.

  • How we migrated onto K8s in less than 12 months

    Figma mediumAdept

    Figma moved most of its core services from AWS ECS to EKS in under 12 months. It made the switch because ECS lacked StatefulSets, Helm support, easy node cordoning and access to CNCF tools like Keda, Karpenter and Istio/Envoy. The key to the timeline was tight scoping: keep the platform abstraction unchanged and only add changes that were one-way doors or cheaper to do up front. Those changes were Bazel-generated service YAMLs deployed in one step, three active EKS clusters per service to shrink blast radius, and Karpenter node autoscaling. Log pipeline changes (Vector) and pod autoscaling were deferred as fast-follows, and load testing with a scaled-up hello-world service plus incremental traffic rollout kept the migration low-risk.

  • Breaking the Loop: How we migrated our backup catalog for 250+ MySQL clusters to AWS

    Booking.com Engineering mediumAdept

    Booking.com moved the Bacula backup catalog for 250+ MySQL clusters off its on-prem dbadb replication chain and onto Amazon RDS MySQL. The move removes a circular dependency: Bacula could not automatically restore the database that held its own catalog. The work became a "3-in-1" side-by-side migration, combining an OS upgrade from CentOS 8 to Oracle Linux 9, an upgrade from Bacula v12 to v16, and the database move. A new stack was built greenfield and ran in parallel with the old one past the backup retention window, instead of using replication-based data migration. The team provisioned RDS with the same Terraform modules customer teams use and extended them for cross-region replicas, since RDS is multi-AZ but not multi-region.

  • Building ClickHouse BYOC (Bring Your Own Cloud) on AWS

    ClickHouse mediumAdept

    ClickHouse BYOC on AWS splits a ClickHouse-hosted management plane from a data plane EKS cluster in the customer's VPC, provisioned automatically with CloudFormation and Crossplane. Support access is approved, audited, time-bound and routed through Tailscale. Engineers authenticate with temporary certificates tied to a ClickHouse user profile that can read only system tables such as query_log, never customer data. Custom Profiles with node-group labels and node selectors replaced the default scheduler plus cluster autoscaler, which had wasted resources because of DaemonSet overhead and poor scale-in behaviour on m7gd node pools. Customers choose maintenance windows for upgrades, and ClickHouse handles EKS version maintenance.

  • Break Stuff on Purpose

    Slack Engineering mediumAdept

    Slack's internal Kibana cluster failed in January 2024 after running out of disk, a consequence of co-locating its Elasticsearch storage on the same hosts as the application. The rebuild exposed a nearly two-year-old unmonitored backup that failed to restore and an outdated runbook, so users' dashboards and visualizations were lost. The team added scheduled backups, checked S3 retention, rewrote runbooks, and then deliberately filled the disks on a development cluster to rehearse recovery. The drill succeeded but missed the one-hour recovery goal and surfaced missing firewall rules in infrastructure as code. A later Kubernetes migration finished with about 30 minutes of downtime, and the backup script became a CLI that restores from cloud storage with a single command.

The quest for software engineering knowledge.

Look:
Layout: