Manage groups and nodes
The grouping feature in Lindorm provides multi-tenant isolation by assigning RegionServers to different groups and storing specific tables in each group, thereby isolating resources across workloads. This topic explains how to manage groups using the cluster management system.
Background
When multiple users or services share a Lindorm cluster, they can compete for resources. In particular, offline batch reads and writes can affect critical online reads and writes. Lindorm's group feature addresses this issue by isolating workloads. As shown in the diagram, create Group1 and assign RegionServer1 and RegionServer2 to it, then create Group2 and assign RegionServer3 and RegionServer4 to it. Move Table1 and Table2 to Group1; all their Regions are assigned only to RegionServer1 and RegionServer2. Similarly, all Regions for Table3 and Table4 are assigned only to RegionServer3 and RegionServer4 in Group2. Therefore, requests for Table1 and Table2 are served only by RegionServer1 and RegionServer2, while requests for Table3 and Table4 are served only by RegionServer3 and RegionServer4. This isolates resources across workloads.
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, filter results by IDC, Group, or Node from the filter bar and click Query. The table displays node metrics such as 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, along with the Group each node belongs to. In the Actions column, click More to view additional 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 value in the Group Name field.
-
Click Determine.
NoteAfter you create a group, its server and table counts are both 0. You must move the required servers and tables into the group.
Delete a group
Before deleting a group, move all servers and tables out of it. You can delete the group only when both its server and table counts are 0.
-
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.