The grouping feature in Lindorm helps you achieve multi-tenant isolation. By assigning RegionServers to different groups and storing specific tables in each group, you can achieve resource isolation. This topic describes how to manage groups in Lindorm by using the cluster management system.
Background
When multiple users or services access a single Lindorm cluster, they often compete for resources. Critical online read and write operations can be affected by offline batch processing tasks. To address this issue, ApsaraDB for Lindorm provides the group feature. As shown in the following figure, you can create Group1 and assign RegionServer1 and RegionServer2 to it, and then create Group2 and assign RegionServer3 and RegionServer4 to it. After you move Table1 and Table2 to Group1, all their Regions are scheduled exclusively on the RegionServer1 and RegionServer2 nodes in Group1. Similarly, Regions for Table3 and Table4 are scheduled exclusively on the RegionServer3 and RegionServer4 nodes in Group2. As a result, requests for Table1 and Table2 are handled exclusively by RegionServer1 and RegionServer2, and requests for Table3 and Table4 are handled exclusively by RegionServer3 and RegionServer4. This achieves resource isolation.
Prerequisites
You are logged on to the cluster management system for the target instance. For more information, see Log on to the cluster management system.
View groups
-
In the left-side navigation pane of the cluster management system, choose .
-
At the bottom of the page, you can view information about all groups in the cluster.
NoteIf you have not created any groups, the system creates a default group named default. All RegionServers and tables belong to this group.
On the Group and Node Overview page, you can filter the results by selecting an IDC, Group, or Node from the filter bar at the top and then clicking Query. The page displays node metrics in a table, including Read requests/s, Write requests/s, Replicated write traffic/s, Total Shards, Read data (KB/s), Average read RT (ms), Write data (KB/s), and Average write RT, as well as the Group to which each node belongs. In the Actions column, you can click More to view more details.
Create a group
-
In the left-side navigation pane of the cluster management system, choose .
-
In the upper-right corner of the page, click +Add.
-
In the Create Group dialog box, enter a Group Name.
-
Click Determine.
NoteA newly created group is empty. You must then move the required servers and tables into it.
Delete a group
To delete a group, you must first move all servers and tables out of it.
-
In the left-side navigation pane of the cluster management system, choose .
-
In the Operation column for the target group, choose .
-
In the dialog box, click Determine.
View basic instance/cluster information
-
In the left-side navigation pane of the cluster management system, choose .
-
In the Basic Instance/Cluster Information section, you can view information such as the database type and the IDC where the database is deployed.
-
On the right, click to adjust the read/write permissions for the current instance or cluster.
Move a RegionServer
-
By default, all RegionServers belong to the default group. To use groups, you must move RegionServers to the intended groups.
-
If you move a table to a group that has no RegionServers, the table's Regions will fail to come online because no servers are available. As a result, the table becomes inaccessible.
-
We recommend that you assign at least two RegionServers to each group. If one RegionServer becomes unavailable, the table's Regions can be reassigned to another RegionServer in the same group. If a group has only one RegionServer and it becomes unavailable, all tables in that group become inaccessible.
-
When you move a RegionServer to a different group, the Regions that it serves are immediately reassigned to other RegionServers in its original group.
-
In the left-side navigation pane of the cluster management system, choose .
-
Find the target node. In its Actions column, choose .
-
In the Move Group dialog box, select a Destination Group.
-
Click Determine.
Move a table
Do not move a table to a group that has no servers. Otherwise, the table will become inaccessible.
-
On the Overview page, click Move Group in the Operation column. In the HBase table management list, find the target table (such as test1), and click Move Group in its Actions column.
-
In the Move Group dialog box, select a Destination Group.
-
Click Determine.