This topic provides instructions on how to add a read-only replica to a tenant.
Prerequisites
You have created a read-only replica to the instance. For more information, see Add a read-only replica to an instance.
Procedure
Log in to the OceanBase Cloud console.
In the left-side navigation pane, click Instances.
In the instance list, find the target instance, and click the instance name to go to the Overview page of the instance.
In the left-side navigation pane, click Tenants.
In the tenant list, find the target tenant, and select ··· > Manage Read-only Replicas in the Actions column.
In the Manage Read-only Replicas dialog box, manage the read-only replicas for the tenant. You can enable the Tenant Read-only Replica switch to add a read-only replica for the tenant.
Note
- You can create a read-only replica for a tenant only when the number of nodes in the read-only replica is greater than or equal to the number of units of the tenant and the remaining resources on each node of the read-only replica are greater than or equal to the resources of the tenant. If resource insufficiency is detected, we recommend that you scale up the node specification of the read-only replica first. For more information, see Manage read-only replicas.
- We recommend that you set the specification of a read-only replica of a tenant to be the same as that of the instance. If they have different specifications, the read-only replica may fail to be added.
Click OK.