Help Center/ GaussDB(for MySQL)/ User Guide/ Serverless Instances/ Adding Serverless Read Replicas to an Instance with Fixed Specifications
Updated on 2024-11-06 GMT+08:00

Adding Serverless Read Replicas to an Instance with Fixed Specifications

You can add serverless read replicas to a pay-per-use or yearly/monthly instance.

Constraints

  • To add serverless read replicas, submit an application by choosing Service Tickets > Create Service Ticket in the upper right corner of the management console.
  • The first time you create a serverless read replica, you need to initialize the serverless policy. If you need to modify the serverless policy later, access the Serverless Information area on the Basic Information page.
  • Adding serverless read replicas is mutually exclusive with the auto scaling function. If the serverless function has been enabled for an instance with fixed specifications, the auto scaling function cannot be enabled and vice versa.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner of the page and choose Databases > GaussDB(for MySQL).
  4. On the Instances page, locate the instance you want to add read replicas to and choose More > Create Read Replica in the Operation column.
  5. On the displayed page, select the serverless billing mode and set other parameters.

    Figure 1 Creating serverless read replicas
    Table 1 Parameter description

    Parameter

    Description

    Failover Priority

    The failover priority of a serverless read replica is fixed to -1. During a failover, the serverless read replica will not be promoted to primary. The failover priority cannot be changed.

    Compute Range

    • Minimum TCUs: Set the minimum compute. 1 TCU is approximately equal to 1 vCPU and 2 GB of memory. The initial specifications of a new serverless read replica are the minimum compute.
    • Maximum TCUs: Set the maximum compute.

    Quantity

    Up to seven serverless read replicas can be created for each instance.

  6. Click Next.
  7. Check the read replica settings.

    • If you need to modify the settings, click Previous.
    • If you do not need to modify the settings, click Submit.

  8. View or manage the created read replicas in the Node List area on the Basic Information page.

    • If you want to modify the serverless scaling policy, see Changing the Maximum and Minimum Numbers of Read Replicas.
      • To adjust the number of read replicas, there must be at least one proxy instance and new nodes will automatically be associated with the proxy instance, and there are serverless read replicas. If you require that read replicas can be automatically associated with the proxy instance, go to the Database Proxy page.
      • Once you enable the function to adjust the number of serverless read replicas for an instance with fixed specifications, the routing policy of proxy instances will remain unchanged. However, if the routing policy is weighted, an improper weight configuration may render the function invalid. To prevent your workloads from being affected, you are advised to configure the same weight for serverless read replicas or use the load balancing routing policy when adjusting the number of serverless read replicas.
      • Each instance supports a maximum of 15 read replicas. The total number of serverless read replicas and existing non-serverless read replicas in an instance cannot exceed 15, and the number of serverless read replicas cannot exceed 7.

        Examples:

        If there are 13 non-serverless read replicas in an instance, the maximum number of serverless read replicas is 2 instead of 7.

        If there are 5 non-serverless read replicas in an instance, the maximum number of serverless read replicas is 7 instead of 10.

    • If you want to delete a serverless read replica, see Deleting a Read Replica.