All Products
Search
Document Center

ApsaraDB for OceanBase:Create a standby instance

Last Updated:Nov 27, 2024

This topic describes how to create and purchase a standby instance, and the limitations of using a standby instance.

Prerequisites

Before you create a standby instance, make sure that the following conditions are met:

  • You have created a cluster instance. For more information, see Purchase an instance.

  • The cluster instance is in the Running state.

  • The cluster instance is not a Standard Edition (Key-Value) instance.

  • The cluster instance does not contain read-only nodes.

  • The cluster instance does not contain shared nodes.

Procedure

  1. Log in to the ApsaraDB for OceanBase console.

  2. In the left-side navigation pane, click Instances.

实例列表

  1. On the Instances page, find the target cluster instance, click More in the Actions column, and select Create Standby Instance to go to the purchase page.

    Note
    • Only customers on the allowlist can purchase a standby instance. To purchase a standby instance, contact ApsaraDB for OceanBase Technical Support.

    • You can add a standby instance only for a cluster instance in the Running state. In addition, you cannot add standby instances for a standby instance in cascading mode. At present, you can add up to two standby instances for a primary cluster instance. To add more standby instances, submit a ticket to ApsaraDB for OceanBase Technical Support.

  2. By default, the Billing Method of the standby instance is the same as that of the primary instance. You must specify the following parameters for the standby instance: Instance Type, Series, Region, Deployment Method, Zone, Node Specification, Nodes, Storage Type, Storage Size, OceanBase Version, Quantity, and Duration.

    Parameter

    Description

    Instance Type

    The standby instance must be a cluster instance.

    Series

    The value must be the same as that of the primary instance. Valid values are Standard Edition (Cloud Disk) and Standard Edition (Local Disk).

    Region

    The region of the standby instance can be different from that of the primary instance.

    • Valid values are China (Hangzhou), China (Shanghai), China (Zhangjiakou), and China (Shenzhen).

    • You cannot change the region after you confirm your order.

    Deployment Method

    The value must be the same as that of the primary instance.

    Zone

    Optional. The value can be different from that of the primary instance.

    Node Specification

    Optional. The value can be different from that of the primary instance. The node specifications of the standby instance cannot be smaller than that of the primary instance times 0.33.

    Nodes

    The default value is 3.

    Storage Type

    Optional. The value can be different from that of the primary instance.

    Storage Size

    Optional. The storage size of the standby instance cannot be smaller than that of the primary instance.

    Version

    The value must be the same as that of the primary instance. You can create a standby instance for a cluster of ApsaraDB for OceanBase V3.x or V4.2 or later.

    Quantity

    The default value is 1.

    Duration

    Optional. We recommend that you set it in such a manner that the standby instance expires on a date that is close to the expiration date of the primary instance.

  3. Click Buy Now.

  4. Select I have read and agree to the OceanBase subscription service agreement and click Pay Now.

  5. After you make the payment, you can view the created standby instance on the Instances page.

    Note
    • You must separately maintain the instance specifications and tenant specifications of the primary and standby instances. We recommend that you keep the instance specifications and tenant specifications of the standby instance the same as those of the primary instance.

    • The allocated resources (CPU and memory) for a tenant in the standby cluster are automatically kept proportional to the resources allocated to the corresponding tenant in the primary cluster, that is: Standby tenant specifications = Standby cluster specifications × (Primary tenant specifications/Primary cluster specifications).

    • After you create the standby instance, the standby instance automatically synchronizes the DDL operations on the primary instance and creates the tenants, tables, partitions, and accounts. You cannot perform DDL operations on a standby instance.

What to do next

  1. On the Instances page, you can view details of the standby instance, such as its type, series, zone, specifications, storage space, billing method, tag, and status.

  2. Click the name of the standby instance. In the standby cluster instance workspace, you can click the More icon in the upper-right corner to perform operations such as switching the standby instance to the primary instance and modifying the configuration of the standby instance.

    Note

    Only when a standby instance is in the Running state, you can perform operations such as switching the standby instance to the primary instance and modifying the configuration of the standby instance.

    创建备实例

  3. You can access databases of tenants in a standby cluster instance in read-only mode.

    1. In the left-side navigation pane, click Tenant Management.

    2. On the Tenants page, click the name of the target tenant to go to the Tenant Workspace page.

    3. Click Log on to Database in the upper-right corner.

      image

    4. In the dialog box that appears, select an account for logon.

      Note

      You cannot create or delete a database or account for a standby cluster instance. The accounts in the drop-down list are synchronized from the primary cluster instance.

      image

    5. Click OK.

  4. You must manually add the primary address for each tenant in the standby cluster instance. For more information, see Add the primary address for a tenant in a standby instance. By default, the primary address of a standby instance only supports data reads. Before the primary address is created, data reads are not supported.

Limitations

You cannot perform the following operations on a standby cluster instance:

  • Create or delete a tenant. The data of the primary cluster instance is synchronized to the standby cluster instance.

  • Create or delete a database or account. The data of the primary cluster instance is synchronized to the standby cluster instance.

  • Modify parameters. The data of the primary cluster instance is synchronized to the standby cluster instance. However, parameter modifications of the primary instance made before the standby instance is created are not synchronized. Parameter modifications made after the primary and standby instances are associated are automatically synchronized to the standby instance.

  • Backup and restore operations.

FAQ

Q: Can I modify the specifications of tenants in a standby cluster instance?

A: No. The specifications of tenants in a standby cluster instance are consistent with those in the primary cluster instance and cannot be separately modified. When the specifications of the standby cluster instance are insufficient for the tenants, the specifications of the tenants will be downgraded proportionally. However, the minimum specifications of a tenant are 1 CPU core and 4 GB of memory.