Tencent Container Registry (TCR) supports the configuration of replication instances in other regions worldwide for advanced instances. With a unified domain name and access credentials, it enables single-region uploads, multi-region high-speed real-time synchronization, and nearby private network pulls. Compared to cross-instance synchronization, this feature unifies the deployment configuration across multiple regions and improves the cross-region synchronization speed of cloud-native artifacts, helping customers achieve synchronized updates for global business applications.
The instance replication feature allows users to create replicas of a premium instance in multiple regions. The replica instances will synchronize data with the primary instance in real time. Users can use the domain name and access credentials of the primary instance to access the replica instances through the private network. By using the instance replication feature, users can uniformly manage the application images of the multi-regional services, and do not need to purchase multiple Enterprise Edition instances, which can reduce the usage cost, increase the speed of container image distribution, and simplify the deployment and configuration.
Preparations
Make sure that the following conditions are met before creating and managing the replica instances of a TCR Enterprise Edition instance:
1. You can pull images from, but not push images to, instances. To push and pull images across regions at the same time, use the cross-instance (account) image synchronization feature, which requires you to create an instance in each region and configure a synchronization rule.
2. The instance replication feature relies on the support of the underlying networks and is subject to security compliance requirements.
Cross-border instance replication is not supported. For example, if your primary instance is in the South China (Guangzhou) region, you cannot create a replica that belongs to an overseas region.
The instance replication feature is not supported in the Taiwan (China) region.
Instructions
Creating and managing a replica instance
1. Log in to the TCR console and choose Synchronization and Replication > Replication in the left sidebar.
2. In the "Instance Replication" page, select the region and instance name, then click Create.
3. In the Create replica instance window, complete the following configurations:
Primary instance name: Name of the currently selected premium instance.
Default region: Region where the currently selected premium instance is located.
Replicate to: Region where the replica instance is located, which cannot be the same as the region of the current primary instance.
4. Click OK to create a replica instance.
Note
You can delete the replication instances that are no longer needed in the specified region. If you have configured replica instances for a premium instance and you want to delete the premium instance, you need to delete all the replica instances first before deleting the premium instance.
Viewing image replication logs
After configuring a replica instance, if you push an image to the primary instance, the image data will be automatically replicated to the replica instance. To confirm the image synchronization status, you can select the specified replica instance and view the replication log.
Accessing the replica instance via the private network
1. To ensure that the container clusters or CVMs in the replication region can access the replica instance through the private network, you need to connect the VPC in the replication region to the instance. Please refer to Configuring Private Network Access Control and choose the VPC in the replication region.
2. After the above configuration is completed, the container clusters or CVMs in the replication region can access the instance through the private network. The image access address and access credentials are the same as those of the premium instance in the original region.
Documentation
You can also use the CreateReplicationInstance interface to create a replica instance. For more information, please refer to the Create Replica Instance API documentation.