All Products
Search
Document Center

ApsaraDB for HBase:Manage groups

Last Updated:Jul 10, 2024

ApsaraDB for HBase Performance-enhanced Edition (Lindorm) provides a grouping feature, and you can create groups to isolate tenants. You can add region servers to different groups and store different tables in each group. This way, resources are isolated. This topic describes how to manage groups.

Background information

When multiple users or services use the same Lindorm instance, resource preemption always occurs. Read and write operations performed in important online services may be affected by multiple concurrent read and write operations performed in offline services. Lindorm provides the group management feature to resolve this issue. The following figure shows an example on how to create groups to isolate resources. In this example, RegionServer1 and RegionServer2 are added to Group1, and RegionServer3 and RegionServer4 are added to Group2. Table1 and Table2 are added to Group1. All regions of Table1 and Table2 are distributed to RegionServer1 and RegionServer2 in Group1. All regions of Table3 and Table4 are distributed to RegionServer3 and RegionServer4 in Group2. As a result, requests sent to Table1 and Table2 are processed only by RegionServer1 and RegionServer2, and requests sent to Table3 and Table4 are processed only by RegionServer3 and RegionServer4. This way, resources are isolated.

image

Prerequisites

You are logged on to Lindorm Insight of your cluster. For more information, see Log on to Lindorm Insight.

View group information

  1. In the left-side navigation pane of the cluster management system, choose Cluster Manager > Server Manager.

  2. In the Data overview section of the page, you can view all group information about the current cluster.

    Note

    If no group is created for the cluster, a group named default is automatically created by default. In this case, all region servers and tables belong to the group named default.

    分组概览

Create a group

  1. In the left-side navigation pane of the cluster management system, choose Cluster Manager > Server Manager.

  2. Click + Add in the upper right corner of the page. p482558

  3. In the New group dialog box, specify Group name.添加分组名

  4. Click OK.

    Note

    By default, no region servers or tables are added to a group when a group is created. You must manually add region servers and tables to the group.

Delete a group

Important

Before you delete a group, you must remove all region servers and tables from the group.

  1. In the left-side navigation pane of the cluster management system, choose Cluster Manager > Server Manager.

  2. Choose More > Delete in the Operation column corresponding to the group that you want to delete.image.png

  3. In the message that appears, click OK.

View the information in the Instance/Cluster info section

  1. In the left-side navigation pane of the cluster management system, choose Cluster Manager > Server Manager.

  2. In the Instance/Cluster info section, view information such as the database type and the on-premises data center where the database is deployed.

  3. Choose More > ReadWriteControl in the Operation column to adjust the read and write permissions of the current instance or cluster.

Move a region server to a group

Important
  • By default, all region servers in a Lindorm instance belong to the group named default. Before you use region servers, you must manually add the region servers to the corresponding group.

  • If you add a table to a group that does not contain region servers, the region of the table becomes inaccessible because no region server is available for the region.

  • We recommend that you add at least two region servers to each group. When a region server is down, the regions of the tables in the group can be distributed to another region server. If your group contains only one region server and the region server is down, all tables in the group become inaccessible.

  • When you move a region server to a group, the regions that are being accessed on the region server are distributed to other region servers in the group.

  1. In the left-side navigation pane of the cluster management system, choose Cluster Manager > Server Manager.

  2. Choose More > Move group in the Operation column corresponding to the region server.

  3. In the Move group dialog box, select the group to which you want to move the region server from the Target group drop-down list.

  4. Click OK.

Move a table to a group

Warning

Do not move tables to a group that does not contain region servers. Otherwise, the tables become inaccessible.

  1. On the Overview page, click Move group in the Operation column.image.png

  2. In the Move group dialog box, select the group to which you want to move the region server from the Target group drop-down list.

  3. Click OK.