Migrating data from a third-party Greenplum® or PostgreSQL cluster to Yandex MPP Analytics for PostgreSQL with Yandex Data Transfer
Yandex Data Transfer enables you to migrate your database from a third-party Greenplum® or PostgreSQL cluster to Yandex MPP Analytics for PostgreSQL. Using this approach, you can do the following:
- Migrate your database with zero downtime.
- Migrate from older to newer versions of Greenplum®.
- Eliminate the need for an intermediate VM or for exposing your Managed Service for PostgreSQL target cluster to the internet.
For more details, see Problems addressed by Yandex Data Transfer.
Note
Data Transfer enables you to transfer a snapshot of the source database to the Yandex MPP Analytics for PostgreSQL target without maintaining it in sync (the Snapshot transfer type). Any changes made on the source after the transfer is completed will not be transferred.
To migrate your database, first you need to transfer the data, then put the old database in read-only mode, and finally switch the workload over to the Yandex Cloud database cluster.
Transferring a database using Yandex Data Transfer:
If you no longer need the resources you created, delete them.
Getting started
Sign up for Yandex Cloud and create a billing account:
- Navigate to the management console
and log in to Yandex Cloud or create a new account. - On the Yandex Cloud Billing
page, make sure you have a billing account linked and it has theACTIVEorTRIAL_ACTIVEstatus. If you do not have a billing account, create one and link a cloud to it.
If you have an active billing account, you can create or select a folder for your infrastructure on the cloud page
Learn more about clouds and folders here.
Required paid resources
- Yandex MPP Analytics for PostgreSQL cluster: use of computing resources allocated to hosts, storage and backup size (see Yandex MPP Analytics for PostgreSQL pricing).
- Public IP addresses if public access is enabled for cluster hosts (see Yandex Virtual Private Cloud pricing).
Set up your infrastructure
-
Prepare the source cluster: Greenplum® or PostgreSQL.
-
Create a Yandex MPP Analytics for PostgreSQL target cluster.
Its computing capacity and storage size must be adequate for the environment the migrated database is deployed in.
The names of the source and target databases must be the same.
Set up and activate the transfer
-
PostgreSQLGreenplum/Yandex MPP Analytics
-
Direction:
Source. -
Name the endpoint.
-
Database type:
PostgreSQL. -
Endpoint parameters:
- Connection settings: Select
Custom installation. - Host: Specify the IP or FQDN of the source cluster's master host.
- Port: Specify the port number for connection to the source cluster.
- Database: Specify the database name.
- User: Specify the database user name.
- Password: Enter the user password.
- Connection settings: Select
-
Direction:
Source. -
Name the endpoint.
-
Database type:
Greenplum/Yandex MPP Analytics. -
Endpoint parameters:
- Connection settings: Select
Custom installation. - Coordinator host: Specify the IP or FQDN of the source cluster's primary master host.
- Coordinator port: Specify the port number for connection to the primary master host.
- Database: Specify the database name.
- User: Specify the database user name.
- Password: Enter the user password.
- Connection settings: Select
-
-
-
Direction:
Target. -
Name the endpoint.
-
Database type:
Greenplum/Yandex MPP Analytics. -
Endpoint parameters:
- Connection type: Select
Self-managed. - Connection type: Select
Cluster. - Cluster: Select the target cluster from the list.
- Database: Specify the name database of interest.
- User: Specify the database user name.
- Password: Enter the user password.
- Connection type: Select
-
-
Create a Snapshot-type transfer and configure it to use the previously created endpoints.
-
Wait for the transfer status to change to Completed.
To learn more about transfer statuses, see Transfer lifecycle.
-
Switch the source cluster to
read-only
mode and transfer the workload to the target cluster.
Delete the resources you created
Some resources are not free of charge. Delete the resources you no longer need, so you will not be charged for them:
-
Deactivate and delete the transfer.
-
Delete the clusters:
-
If static public IP addresses were used for accessing the cluster hosts, release and delete them.