Help Center/ GaussDB/ User Guide/ Cross-Cloud DR Management/ Promoting the DR Instance to Primary
Updated on 2024-12-25 GMT+08:00

Promoting the DR Instance to Primary

If the primary instance is unavailable, you can manually promote the DR instance to primary.

Precautions

  • If the DR instance is available and in the incremental restoration status, you can promote the DR instance to the primary instance.
  • If the DR instance is promoted to the primary instance, it can process read and write requests.
  • A DR instance can be promoted to primary regardless of whether the primary instance is available. In the streaming DR scenario, if the primary instance is available, you can stop the DR task on the primary instance after the DR instance is promoted to primary.
  • If the DR instance node is faulty before the promotion, repair or replace the faulty node after the promotion is complete. For details, contact customer service.
  • In the streaming DR scenario, you can determine whether to enable Re-establish DR relationship when promoting the DR instance to primary. For details, see Re-creating a DR Task After the Primary Instance Is Faulty.
  • After a DR task is complete, the whitelist configuration set in the Reset Configuration dialog box will be automatically cleared.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner of the page and choose Databases > GaussDB.
  4. In the navigation pane on the left, choose Disaster Recovery. Locate a DR task, and click Promote DR Instance to Primary in the Operation column.

    After the promotion is complete, the DR task cannot be retried. You need to create a new DR task. After the DR instance is promoted to primary, you need to manually stop the DR task on the original primary instance to clear the DR data.

  5. Enable Re-establish DR relationship.

    • If you enable Re-establish DR relationship, the system saves the DR relationship record. After the DR instance is promoted to primary, you can re-establish the DR relationship by one click.
    • If you disable this option, the DR relationship will be disconnected and cannot be re-established by one click.

  6. In the displayed dialog box, select Promote DR instance to primary and click Yes.

    The DR instance becomes the primary instance.