This topic describes how to add a read-only replica for a tenant.
Prerequisites
You must create a read-only replica for the cluster instance before you can add one for a tenant. For more information, see Add a read-only replica to a cluster.
Procedure
Log in to the OceanBase Cloud console.
In the left-side navigation pane, click Instances.
In the instance list, find the target cluster instance and click its name to go to the instance workspace.
In the left-side navigation pane, click Tenants.
In the tenant list, find the target tenant and choose ··· > Manage Read-only Replicas from the Actions column.
In the Manage Read Replicas dialog box, manage the read-only replicas for the tenant. Click the switch in the Tenant Read-only Replica column.
Note
Read-only replicas are enabled for a tenant only when the number of nodes in the read-only replicas is greater than or equal to the number of resource units (RU) of the tenant, and the remaining resources on each node of the read-only replicas are greater than or equal to the tenant's resources. If resources are insufficient, we recommend that you first scale out the node specifications of the read-only replicas. For more information, see Manage the configuration of read-only replicas.
In the Enable Tenant Read-Only Replicas dialog box, specify the RU specification for the read-only replicas and click OK.
After the creation task is completed, you can view it on the Manage Read Replicas page.