Sunday 26 June 2022

Postgresql Migration - part1

AWS DMS options

This course focuses on using the AWS DMS console to perform the migration. You can begin a database migration in one of two ways:

  1. You can choose the AWS DMS console, and perform each step there.

  2. You can use the AWS Command Line Interface (AWS CLI). For more information about using the AWS CLI with AWS DMS, see AWS CLI for AWS DMS.


The source database can be any of the following:

  • Located on your own premises outside of AWS
  • Running on an Amazon Elastic Compute Cloud (Amazon EC2) instance
  • An Amazon Relational Database Service (Amazon RDS) database

To start using AWS DMS, you need a replication instance that will be used to run your migration tasks.


For a database migration using the AWS DMS console, you must do the following:

  • Complete the tasks outlined in Setting up for AWS Database Migration Service.

  • Allocate a replication instance that performs all the processes for the migration.

  • Specify a source and target database endpoint.

  • Create a task, or set of tasks, to define which tables and replication processes you want to use.

AWS DMS then creates your replication instance and performs the tasks on the data being migrated.



Note : An AWS DMS replication instance performs the actual data migration between source and target. The replication instance also caches the transaction logs during the migration. The greater the central processing unit (CPU) and memory capacity of a replication instance, the less overall time is required for the migration.



Creating a Replication Instance

Your first task in migrating a database is to create a replication instance. 
An AWS DMS replication instance is a managed Amazon EC2 instance that hosts one or more replication tasks. Amazon EC2 has sufficient storage and processing power to perform the tasks you assign and migrate data from your source database to the target database.

The required size of this instance varies, depending on the amount of data you need to migrate and the tasks that you need the instance to perform.
The following figure shows an example of a replication instance running several associated replication tasks.



A single replication instance can host one or more replication tasks, depending on the characteristics of your migration and the capacity of the replication server. AWS DMS provides a variety of replication instances so you can choose the optimal configuration for your use case. For more information about the various classes of replication instances, see Choosing the right AWS DMS replication instance for your migration.

AWS DMS 1.png

To begin, log in to AWS and navigate to the AWS DMS console for your Region. Choose Create replication instance.

aws dms 2.png

Or you can navigate to Replication instances to begin:

  1. In the navigation pane, choose Replication instances.

  2. Choose Create replication instance.

Now you are ready to create the replication instance. On the Create replication instance page, specify your replication instance information. For more information about completing each field, select the + signs.



Name

Enter a name for the replication instance. The name must conform with the following constraints:

  • It can contain up to 63 printable ASCII characters (excluding /,", and @).
  • The first character must be a letter.
  • The name cannot end with a hyphen.

The name should be unique for your account for the AWS Region you selected. You can choose to add some intelligence to the name. For example, you could include the AWS Region and task you are performing, such as west2-mysql2mysql-instance1.

-3CEAmBVVXYBDBYK-a1.png


Descripton

Enter a brief description of the replication instance. 

P22TgcIstBi0NP5_-2.png



No comments:

Post a Comment