Network Communication Mode
If you want to connect a database from a third-party cloud service provider to eSurfing Cloud, both the database instance and the DTS instance must be separately configured with a public IP address to enable connectivity over the Internet.
Preparation
Purchase a public IP address.
You can directly use an available public IP address in eSurfing Cloud. If no public IP address is available, you need to purchase a public IP address to enable Internet access for the DTS instance.
Request a public IP address and bind it to the database instance.
The configuration method varies depending on the cloud vendor. For more information, see the official database documentation provided by the corresponding cloud service provider.
Configure VPC security policies.
You need to allow the public IP address you configured for the DTS migration instance to access the VPC where the third-party cloud database instance resides. In most cases, you can modify the network ACL or configure the security group for the database instance to enable the access. For more information, see the official database documentation provided by the corresponding cloud service provider.
Configure the IP address trustlist for the database.
You need to allow the public IP address you configured for the DTS data migration instance to remotely access the database. The method to configure an IP address trustlist for a database may vary depending on the database type. For more information, see the relevant official database documentation.
Preparing for Your Source Database
Log in to the server on which your source PostgreSQL database is hosted.
Set the value of the wal_level parameter in the postgresql.conf file to logical.
Add the IP address of your DTS instance to the configuration file pg_hba.conf of the source database. If you already specify 0.0.0.0/0 in the IP address trustlist as shown below, skip this step.
If the task includes incremental data migration, you must install decoderbufs, a PostgreSQL logical decoder output plugin. It is recommended that you install a decoderbufs version later than v2.1.1.Final. An earlier version may lead to core dump errors on the PostgreSQL database. For information about how to install decoderbufs, see Official Website.