Updated on 2025-11-07 GMT+08:00

Using SWR Enterprise Edition Across Regions for Remote DR

If you want to implement remote DR for image artifacts in an SWR Enterprise Edition instance in a region, you can synchronize the image artifacts to an SWR Enterprise Edition instance in a different region.

Prerequisites

  • You have purchased an SWR Enterprise Edition instance named S1 in one region (for example, region A) and an SWR Enterprise Edition instance named S2 in another region (for example, region B). For details, see Buying a Repository.
  • You have configured the same custom domain name for the SWR Enterprise Edition instances. For details about how to configure a custom domain name, see Domain Names.

Procedure

  1. Configure image synchronization rules for the two SWR Enterprise Edition instances.

    Configure an image synchronization rule for each SWR Enterprise Edition instance. For details, see Image Synchronization.

  2. Configure access control for the two SWR Enterprise Edition instances.

    • If the two instances access each other through the private network, you need to configure private network access for them.
    • If the two instances access each other through the public network, you need to configure public network access for them. For details, see Public Network Access.

  3. Switch the DNS resolution for DR.

    If instance S1 is abnormal and you cannot push or pull images, you can modify the DNS settings of the custom domain name associated with the VPC of instance S2 to pull the same images from instance S2 across regions. The detailed operations are as follows:

    1. Log in to the DNS console. Switch to region A.
    2. In the navigation pane, choose Private Zones.
    1. Locate the private zone created for the custom domain name of the SWR Enterprise Edition instance and associated with your VPC.
    2. On the Record Sets page, click the target record set.
    3. In the Modify Record Set dialog box, configure the parameters and then click OK.
      Table 1 Modifying a record set

      Parameter

      Description

      Record Set Type

      • If the two instances access each other through the public network, select CNAME.
      • If the two instances access each other through the private network, select A.

      Record Set Name

      Enter the prefix of the custom domain name.

      Record Set Value

      • If the two instances access each other through the public network, set this parameter to the public domain name of instance S2.
      • If the two instances access each other through the private network, set this parameter to a private IP address in the VPC where instance S2 is deployed.

      TTL

      Retain the default value.