tencent cloud


Configuring Instance Replication

Last updated: 2021-08-11 17:39:31


    Tencent Container Registry (TCR) allows users to create replicas of a premium instance in multiple regions with the same access domain name and credential as the original premium instance. It realizes the single-region upload, multi-region high-speed real-time synchronization, and image pulling from the nearest region over the private network. Compared with the cross-instance synchronization, this feature can unify the publish configuration of multi-regional clusters, improve the cross-region synchronization speed of cloud native artifacts, and help users realize the global synchronization update of service 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.


    Before creating and managing the replica instance of a TCR Enterprise Edition instance, complete the following preparations:


    Creating and managing a replica instance

    1. Log in to the TCR console and select Synchronization and Replication > Instance Replication in the left sidebar.
    2. On the Instance Replication page, select a region and an instance, and click Create.
    3. In the Create Replica Instance window, complete the following configurations:
      • Primary Instance Name: the name of the currently selected premium instance.
      • Default Region: the region where the currently selected premium instance is located.
      • Replicate to: the region where the replica instance is located, which cannot be the same as the region of the current primary instance.
    4. Click Confirm to complete the creation of the replica instance.

      You can delete the replication instances that are no longer needed in the specified region. If a premium instance has configured the replica instances, you need to delete all the replica instances first to delete the premium instance.

    Accessing the replica instance via the private network

    1. After completing the instance replication, you can push images to this instance through public network or private network. The container images will be replicated to the replication region in real-time, as shown in the figure below:
    2. To ensure that the container clusters or CVMs in the replication region can access the instance through the private network, you need to connect the VPCs in the replication region to the instance. Please refer to Private Network Access Control, and choose the VPC in the replication region.
    3. 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.


    You can also use the CreateReplicationInstance API to create the replica instance.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support