Troubleshooting RDS for Db2 replication issues - Amazon Relational Database Service

Troubleshooting RDS for Db2 replication issues

This topic describes common RDS for Db2 replication issues and provides troubleshooting guidance for both read-only and standby replicas. In addition to reviewing the following troubleshooting information, make sure that you followed the requirements and considerations, and completed the preparation steps before creating Db2 replicas.

Replica creation failures

Replica creation can fail for several reasons:

Monitoring Db2 replication lag

To monitor replication lag in Amazon CloudWatch, view the Amazon RDS ReplicaLag metric. For more information about replication lag time, see Monitoring read replication and Amazon CloudWatch metrics for Amazon RDS. For information about setting up CloudWatch alarms for replica lag, see Monitoring Amazon RDS metrics with Amazon CloudWatch.

For a read-only replica, if the lag time is too long, query the MON_GET_HADR table for the status of the replica DB instance.

For a standby replica, if the lag time is too long, query the MON_GET_HADR table for the status of the source DB instance. Don't query the replica DB instance because replica DB instances don't accept user connections.

Common causes of high replication lag include the following reasons:

  • Insufficient compute resources on the replica

  • Network connectivity issues between the source and the replica

  • High write activity on the source database

  • Storage performance limitations on the replica

If high replication lag persists, consider scaling your replica resources. For more information, see Modifying an Amazon RDS DB instance.

Db2 replication errors

Db2 replication can be in an error state for a number of reasons. Perform the following actions:

If replication errors persist, you might need to recreate the replica.

Connection issues

If you can't connect to your replica, review the following information about the replica modes:

Performance issues

If replica performance is poor, review the following suggestions:

  • Ensure the replica has adequate compute and storage resources.

  • Monitor the ReplicaLag metric in Amazon CloudWatch.

  • Consider scaling up the replica DB instance class.

For information about modifying resources or instance classes, see Modifying an Amazon RDS DB instance.

For information monitoring replication lag, see Monitoring replication lag and Amazon CloudWatch metrics for Amazon RDS. For information about setting up CloudWatch alarms for replica lag, see Monitoring Amazon RDS metrics with Amazon CloudWatch.