This topic describes how to create new PolarDB clusters by cloning the data of source PolarDB clusters.

Considerations

  • The data that can be cloned includes:
    • The account information about the source cluster.
    • The transparent data encryption (TDE) configurations. If the TDE feature is enabled for the source cluster before you perform clone operations, the TDE configurations can also be cloned.
  • The data that cannot be cloned includes:
    • The parameter settings of the source cluster.
    • The whitelist configurations of the source cluster.
    • The secure sockets layer (SSL) configurations of the source cluster.
  • Only the data that exists in the source cluster before the clone operation starts can be cloned. The data that is written to the source cluster after the clone operation starts cannot be cloned.

Procedure

  1. Log on to the PolarDB console.
  2. On the top of the page, select the region where the target cluster is located.
  3. Find the cluster that you want to clone. In the Actions column, choose More > Clone Cluster.
  4. On the page that appears, specify the following parameters.
    Parameter Description
    Billing Method You can choose Subscription or Pay-As-You-Go as Billing Method.
    • Subscription: An upfront payment is required for the compute nodes when you create the cluster. You are charged for the consumed storage space by hour. The charges are deducted from your account balance on an hourly basis.
    • Pay-As-You-Go: This method does not require upfront payments. You are charged for the compute nodes and consumed storage space by hour. The charges are deducted from your account balance on an hourly basis.
    Clone Source Type The type of the clone source. The default value is Current Cluster.Use the default setting.
    Region The region where the cluster that is to be created resides. By default, the region of the new cluster is the same as that of the source cluster. For example, if the source cluster resides in the China (Hangzhou) region, the default region of the new cluster is also China (Hangzhou). Use the default setting.
    Primary Availability Zone
    • Each zone is an independent geographical location that resides in a region. All the zones in a region provide the same services.
    • You can deploy your PolarDB cluster and the Elastic Compute Service (ECS) instance in the same zone or in different zones.
    Network Type The type of the network. The value of this parameter can only be VPC. Use the default setting. You do not need to specify the parameter.
    VPC

    VSwitch

    The virtual private cloud (VPC) and the VSwitch of the new cluster. Select a VPC and a VSwitch from the drop-down lists, or create a VPC and a VSwitch. To create a VPC and a VSwitch, visit the VPCs page.
    Note Make sure that the PolarDB cluster to be created and the ECS instance to be connected are deployed in the same VPC. Otherwise, the cluster and the ECS instance cannot communicate over the VPC. This compromises the performance of the cluster.
    Compatibility By default, the compatibility of the new cluster is consistent with that of the source cluster. For example, if the value of the Compatibility parameter is MySQL 8.0 for the source cluster, the related value of the Compatibility parameter is also MySQL 8.0 for the new cluster. Use the default setting. You do not need to specify the parameter.
    Edition The edition of the new cluster. By default, the edition of the new cluster is consistent with that of the source cluster. For example, if the Edition of the source cluster is Standard (2-16 nodes) (Recommend), the Edition of the new cluster is also Standard (2-16 nodes) (Recommend). Use the default setting. You do not need to specify the parameter.
    Node Specification

    The node specification of the cluster. Select the specifications based on your business requirements. All the nodes in each PolarDB cluster are exclusive nodes that provide stable and reliable performance. For more information about node specifications, see Specifications and pricing.

    Nodes
    The number of nodes in the new cluster. By default, the new cluster consists of one primary node and one read-only node. The specifications of the read-only node are the same as those of the primary node. Use the default setting. You do not need to specify the parameter.
    Note If the primary node fails, the system uses the read-only node as the primary node and generates another read-only node. For more information about read-only nodes, see Architecture.
    Storage Cost Use the default setting. You do not need to specify the parameter. You are charged for the storage space that is occupied by your stored data by hour. For more information, see Specifications and pricing.
    Note You do not need to select the storage capacity when you create a cluster. The storage capacity is automatically increased or decreased based on the amount of your data.
    Cluster Name The name of the cluster. The name must meet the following requirements:
    • It cannot start with http:// or https:// .
    • It must be 2 to 256 characters in length.

    If you leave this parameter empty, the system automatically generates a cluster name. You can change the cluster name after the cluster is created.

    Purchase Plan The subscription duration of the new cluster. This parameter is valid for only the source cluster whose Billing Method is Subscription.
    Number The number of clusters. The value ranges from 1 to 50. The default value is 1.
  5. Read the terms of the service agreement, select the check box, and click Buy Now.
    Note After you pay for the order, wait for 1 to 5 minutes until the cluster is created. Then, you can view the new cluster on the Clusters page.