During manual or automatic image replication, if the image is replicated across borders, the speed of replication is negatively affected. Cross-border replication includes replication between the Chinese mainland and regions outside the Chinese mainland, and between the Chinese mainland and the China (Hong Kong) region. Container Registry provides the cross-border replication acceleration feature to accelerate cross-border replication of images. This topic describes how to use the cross-border replication accelerationfeature of images.

Enable cross-border replication acceleration

  1. Log on to the Container Registry console.
  2. In the top navigation bar, select a region.
  3. In the left-side navigation pane, click Instances.
  4. On the Instances page, click the required Container Registry Enterprise Edition instance.
  5. On the management page of the Container Registry Enterprise Edition instance, choose Distribution > Instance Replication.
  6. In the upper-left corner of the Instance Replication page, turn on Cross-border Replication Acceleration.
  7. In the Tips dialog box, click OK.
    After you enable the cross-border replication acceleration feature, you can create a replication rule to replicate images from an instance to another instance. For more information, see Synchronize images between instances that belong to the same account and Synchronize images between instances that belong to different accounts. When you replicate images, Container Registry automatically uses the cross-border replication acceleration feature.

Reference data for cross-border acceleration

The following table describes the latency of image replication in March 2022 after cross-border replication acceleration is enabled. The table collects the TP95 replication latency values of single layer 1 GB images in different regions around the world. The latency values do not include the queue time of additional replication tasks beyond the maximum allowed concurrent replication tasks. In this example, the China (Hangzhou) region is used to represent the Chinese mainland.
Note TP95 refers to the maximum latency of the 95th percentile of image replication tasks. For example, assume that 100 tasks have been executed. The latency of the tasks are sorted in ascending order and the 95th value is taken as the TP95 value.
Effects
The cells in the preceding table are color-coded based on the latency of replication tasks.
  • Green: The latency is not greater than 30 seconds.
  • Blue: The latency is greater than 30 seconds and not greater than 1 minute.
  • Yellow: The latency is greater than 1 minute and not greater than 2 minutes.
  • Orange: The latency is greater than 2 minutes and not greater than 3 minutes.

View link types

To view the type of the link used by a replication task, in the left-side navigation pane, choose Distribution > Replication Record. Link types include:
  • Default Link: the default link of Container Registry Enterprise Edition instances.
  • Cross-border Acceleration Link: On the link, the cross-border replication acceleration feature is enabled to accelerate image replication.