Migrating a database to Yandex MPP Analytics for PostgreSQL
You can migrate your database from a third-party Greenplum® or PostgreSQL cluster to Yandex MPP Analytics for PostgreSQL using Yandex Data Transfer. This method enables you to:
- Migrate the database without interrupting user service.
- Migrate from older Greenplum® versions to newer versions.
- Eliminate the need for an intermediate VM or public internet access to your Managed Service for PostgreSQL target cluster.
For more information, see Problems addressed by Yandex Data Transfer.
Note
Data Transfer enables you to transfer the state of the source database to the Yandex MPP Analytics for PostgreSQL target without keeping it up-to-date (the Snapshot transfer type). Changes occurring on the source after the transfer is completed will not be transferred.
To migrate your database, you need to directly transfer the data, acquire a write lock for the old database, and switch over the load to the database cluster in Yandex Cloud.
Required paid resources
The support cost includes:
- Greenplum® cluster fee: Using computing resources allocated to hosts and disk space (see Yandex MPP Analytics for PostgreSQL pricing).
- Fee for public IP addresses if public access is enabled for cluster hosts (see Virtual Private Cloud pricing).
- Fee per transfer: Use of computing resources and number of transferred data rows (see Data Transfer pricing).
Getting started
Create a Greenplum® target cluster with the computing capacity and storage size appropriate for the environment where the migrated database is deployed.
The source and target database names must be the same.
Transferring data
-
Prepare the source cluster:
-
Create a source endpoint with the following parameters:
-
Database type:
GreenplumorPostgreSQL -
Endpoint parameters → Connection settings:
Custom installationConfigure the source cluster connection settings.
-
-
Create a target endpoint with the following parameters:
-
Database type:
Greenplum -
Endpoint parameters → Connection settings:
Managed Service for Greenplum clusterSpecify the ID of the target cluster.
-
-
Create a Snapshot-type transfer and configure it to use the previously created endpoints.
-
Wait for the transfer status to change to Completed.
For more information about transfer statuses, see Transfer lifecycle.
-
Switch the source cluster to
read-only
mode and transfer the load to the target cluster. -
Delete the transfer (must not be in progress).
Greenplum® and Greenplum Database® are registered trademarks or trademarks of Broadcom Inc. in the United States and/or other countries.