Skip to content

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

Booking.com Engineering 21 min read Case study mediumAdept

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

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.

Related posts

  • What it Takes to Recover a 100 TB Postgres Database in AWS RDS

    Neon easyNovice

    Recovering a 100 TB Postgres database on AWS RDS is slow or incomplete depending on the failure mode. Snapshot restore plus WAL replay handles logical errors, but copying the snapshot and replaying up to a day of WAL can take hours. Multi-AZ standbys cover AZ and hardware failures but cannot undo bad writes, double instance costs, and may silently drop to asynchronous replication and lag under heavy writes. Neon's alternative is presented: a versioned, log-structured key-value storage layer separated from stateless compute, which allows instant branch-based PITR and storage-level multi-AZ redundancy without a standby replica.

  • You can now migrate your existing databases to AWS

    Turso mediumAdept

    Turso paid-plan users can move database groups from Fly.io to AWS with new `turso group aws-migration info/start/abort` CLI commands; free-tier users have already been migrated. Migration is irreversible, keeps databases read-only with writes paused (usually under a minute, longer for 1 GB+), and drops features such as cross-database ATTACH, multi-DB schemas, server-side WebSockets, edge replicas and some extensions like sqlite-vss. Embedded replicas need their local files deleted and re-synced because the on-disk format and protocol differ. For remote writes, use execute/run paths without RETURNING, keep transactions short, avoid cached write statements, and reconnect and retry on stream errors, with SDK-specific guidance for JS, Python and Go or a switch to the new Turso Sync push-based packages.

  • How we migrate TBs from Heroku without logical replication

    PlanetScale mediumAdept

    PlanetScale's open-source Heroku Migrator moves multi-terabyte Postgres databases off Heroku standard plans, which lack WAL access and logical replication, by using Bucardo trigger-based replication: triggers record changes in delta tables, a one-time COPY loads existing data, and a worker replays the backlog before a controlled switchover with verification. Version 2.0 fixes failures seen on large migrations. Bucardo's single-transaction initial copy restarted from zero after any interruption, so the migrator now drops secondary indexes before the copy and rebuilds them in parallel afterwards, raising throughput from about 60 to nearly 300 GB/h. It also disables transaction_timeout on Bucardo's connections, sets TCP keepalives so silently dropped long-lived connections fail within about a minute, and tunes host TCP buffers. A discovery CLI and the Liftoff assessment flag tables without primary keys, incompatible extensions and sizing before the migration starts.

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

    Yelp Engineering mediumAdept

    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.

  • Breaking up a monolith: How we’re unwinding a shared database at scale

    Datadog Engineering mediumAdept

    Datadog is splitting its large shared Postgres database into independently owned instances through a three-phase plan: logical separation into per-domain private schemas with explicit ACLs, access reduction so only owning teams query their tables directly, and physical separation onto managed OrgStore instances. Domain boundaries came from clustering Database Monitoring query samples and validating them with 30+ teams. Inter-domain foreign keys were replaced with CDC or Postgres replication. A homegrown PG Proxy lets teams migrate at their own pace and makes cutover a dynamic config change, with write downtime under five seconds and reverse replication kept for rollback. The platform investments that made this feasible, the Rapid service framework, OrgStore and PG Proxy, are presented as prerequisites, and each phase has concrete progress metrics.

The quest for software engineering knowledge.

Look:
Layout: