Delta Migration

On this page Carat arrow pointing down

A Delta Migration uses an initial data load, followed by continuous replication, to migrate data to CockroachDB. In this approach, you migrate most application data to the target using MOLT Fetch before stopping application traffic to the source database. You then use MOLT Replicator to keep the target database in sync with any changes in the source database (the migration delta), before finally halting traffic to the source and cutting over to the target after schema finalization and data verification.

This approach is best for production environments that need to minimize system downtime.

Note:

For CockroachDB-to-CockroachDB migrations, contact your account team for guidance.

This page describes an example scenario. While the commands provided can be copy-and-pasted, they may need to be altered or reconsidered to suit the needs of your specific environment.

Delta migration flow

Example scenario

You have a small (300 GB) database that provides the data store for a web application. You want to migrate the entirety of this database to a new CockroachDB cluster. Business cannot accommodate a full maintenance window, but it can accommodate a brief (<60 second) halt in traffic.

The application runs on a Kubernetes cluster.

Estimated system downtime: Less than 60 seconds.

Step-by-step walkthroughs

The following walkthroughs demonstrate how to use the MOLT tools to perform this migration for each supported source database:

See also

×