Configuring HBase Table-Level Overload Control
Scenario
When the HBase requests soar in a short period of time, the system is overloaded. As a result, the P99 latency of requests increases, which severely affects services that relay on quick responses. HBase table-level overload prevention is used to control request latency of core tables (core services).
Procedure
- Modify the properties of core tables and set table-level priorities.
- Log in to the node where the HBase client is installed as the client installation user and configure environment variables.
cd HBase client installation directory
source bigdata_env
- If Kerberos authentication is enabled for the cluster (the cluster is in security mode), run the following command to authenticate the user:
kinit Component service user
- Run the following commands to log in to the HBase client and modify the table description:
alter 'test_table', PRIORITY=>'1'
- The table priority can be set through the PRIORITY property. When the value of PRIORITY is greater than or equal to 1, the priority is high. You are advised to set PRIORITY to 1.
- You can specify the PRIORITY property when creating a core table. For example:
create 'test_table','cf',PRIORITY=>'1'
- Log in to the node where the HBase client is installed as the client installation user and configure environment variables.
- Log in to FusionInsight Manager, choose Cluster > Services > HBase > Configurations > All Configurations, search for the parameters listed in Configuring HBase Table-Level Overload Control, and change the parameter values.
Table 1 Parameters for HBase table-level overload control Parameter
Description
Suggestion
hbase.ipc.server.default.callqueue.size.overload.threshold
RegionServer queue threshold. When the percentage of the request size in the queue exceeds the threshold, requests to low-priority tables are discarded. This configuration is used to control the request latency of core tables.
- The number of core table requests and latency requirements must be considered. A smaller value is recommended. Generally, the value ranges from 0.5 to 1.0.
- The two types of overload control can be enabled independently or at the same time. RegionServer queue overload control is used when there is a large number of requests. RegionServer handler overload control is used when there is a large number of concurrent requests.
hbase.ipc.server.handler.overload.threshold
RegionServer handler threshold. When the percentage of active handlers exceeds the threshold, requests to low-priority tables are discarded. This configuration is used to control the request latency of core tables.
- Click Save. In the displayed dialog box, click OK.
- Click Instances, select all RegionServer instances, and choose More > Restart Instance.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot