Group management

更新时间:
复制 MD 格式

The group feature in ApsaraDB for HBase Performance-enhanced Edition (Lindorm) provides multi-tenant data isolation. You can assign RegionServers to different groups and store different tables in each group to isolate resources. This topic describes how to manage groups.

Background information

When multiple users or services use the same ApsaraDB for HBase Performance-enhanced Edition (Lindorm) cluster, resource contention can occur. Important online read and write operations might be affected by offline batch read and write operations. ApsaraDB for HBase Performance-enhanced Edition (Lindorm) provides the group feature to address this issue. As shown in the following figure, you can create Group1 and assign RegionServer1 and RegionServer2 to it. Then, create Group2 and assign RegionServer3 and RegionServer4 to it. You can also move Table1 and Table2 to Group1. All regions of Table1 and Table2 are assigned only to RegionServer1 and RegionServer2 in Group1. Similarly, all regions of Table3 and Table4 are assigned only to RegionServer3 and RegionServer4 in Group2. As a result, requests sent to Table1 and Table2 are handled only by RegionServer1 and RegionServer2, while requests sent to Table3 and Table4 are handled only by RegionServer3 and RegionServer4. This isolates the resources.分组管理架构图

Prerequisites

You must be logged on to the cluster management system of the destination cluster. For more information, see Log on to the cluster management system.

View group information

  1. In the left-side navigation pane, choose Cluster Manager > Server Manager.

  2. In the Data overview section, view all groups for the current cluster.

Note

If no group has been created, a group named default is created automatically, and all region servers and tables belong to it.

分组概览

Create a group

  1. In the left-side navigation pane, choose Cluster Manager > Server Manager.

  2. Click + Add in the upper-right corner.

    p482558

  3. In the New group dialog box, enter a Group name.

    添加分组名

  4. Click OK.

Note

A newly created group contains no region servers or tables. Add region servers and tables to the group manually after creation.

Delete a group

Important

Remove all region servers and tables from the group before deleting it.

  1. In the left-side navigation pane, choose Cluster Manager > Server Manager.

  2. In the Operation column for the group, choose More > Delete.

    image.png

  3. Click OK to confirm.

Move a region server to a group

Important
  • All region servers belong to the default group by default. Move region servers to the appropriate group before using them.

  • 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.

  • Add at least two region servers to each group. If a group has only one region server and that server goes down, all tables in the group become inaccessible. With two or more region servers, regions are redistributed to the remaining servers automatically.

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

  1. In the left-side navigation pane, choose Cluster Manager > Server Manager.

  2. In the Operation column for the region server, choose More > Move group.

  3. In the Move group dialog box, select the target group from the Target group drop-down list.

  4. Click OK.

Move a table to a group

Warning

Do not move a table to a group that has no region servers. The table will 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 target group from the Target group drop-down list.

  3. Click OK.