Viewing DR Metrics

DRS monitors the DB instance performance and the migration progress. With the monitoring information, you can determine the link health status, data integrity, and data consistency. If both RPO and RTO are 0, data has been completely migrated to the DR database. Then, you can determine whether or not to perform a switchover.

Prerequisites

  • You have logged in to the DRS console.
  • You have created a DR task.

Procedure

  1. On the Disaster Recovery Management page, click the target DR task in the Task Name/ID column.
  2. On the Basic Information tab, click the Disaster Recovery Monitoring tab.

    • RPO measures the consistency between the data in the service database and the data in the DRS instance. When RPO is 0, all the data in the service database has been migrated to the DRS instance.
    • RTO measures the amount of data being transmitted. When RTO is 0, all transactions on the DRS instance have been completed on the DR database.
    • Delay: Monitors the historical RPO and RTO, which helps predict the amount of lost data if a disaster occurs. You can pay attention to the following time ranges during which:
      • The RPO or RTO is high for a long time.
      • The RPO or RTO is consistently high or spiking high on a regular basis.
    • Autonomy Management: Monitors the following DRS intelligent autonomy capabilities:
      • Number of times that DRS automatically resumes data transfer after a network is disconnected
      • Number of times that DRS automatically overwrites old data with the latest data when a data conflict occurs
    • Performance: You can use performance monitoring to help diagnose the network quality.
    • Resource: You can use resource monitoring to help determine whether to scale up the DRS instance specifications.
      Figure 1 DR monitoring

  1. A primary/secondary switchover can be performed only when the task status is disaster recovery in progress.

    Either the primary or standby node must be an RDS DB instance. DRS allows you to promote an RDS DB instance to a primary DB instance or demote an RDS DB instance to a standby DB instance. If an RDS DB instance is promoted to a primary DB instance, the status of the RDS DB instance changes from read-only to read/write. If an RDS DB instance is demoted to a standby DB instance, the status of the RDS DB instance changes from read/write to read-only.

    When an RDS DB instance is promoted to a primary DB instance, the read-only session from the service database is still connected to the RDS DB instance and will not automatically change to the read/write state due to the promotion of the RDS DB instance. To ensure that the service database can effectively read data from and write data to the RDS DB instance after the switchover, disconnect the original read-only session and reconnect to the RDS DB instance.

    Ensure that data is neither written to the primary node before a switchover nor to the standby node after a switchover. Data is synchronized from the primary node. Any other write operations will cause data conflicts in the DR center and cannot be resolved.
    • Method 1
    Click Promote Current Cloud to promote the current instance to the service database. Click Demote Current Cloud to demote the current instance to the disaster recovery database.
    Figure 2 DR monitoring
    • Method 2

      On Disaster Recovery Management page, select the task for which you want to perform a primary/standby switchover and click Primary/Standby Switchover in the upper left corner to switch over the service database to the DR database or switch over the DR database back to the service database.