From 59b5b9682fee88b2530b85655ac3b21d28a7f06e Mon Sep 17 00:00:00 2001 From: Liuxiaozhen12 <82579298+Liuxiaozhen12@users.noreply.github.com> Date: Thu, 2 Sep 2021 16:32:38 +0800 Subject: [PATCH 1/2] Update alert rule for low space --- alert-rules.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/alert-rules.md b/alert-rules.md index 448b88294ed55..b9800a52a227a 100644 --- a/alert-rules.md +++ b/alert-rules.md @@ -752,11 +752,20 @@ This section gives the alert rules for the TiKV component. Check which kind of tasks has a higher value. You can normally find a solution to the Coprocessor and apply worker tasks from other metrics. -#### `TiKV_low_space_and_add_region` +#### `TiKV_low_space` * Alert rule: - `count((sum(tikv_store_size_bytes{type="available"}) by (instance) / sum(tikv_store_size_bytes{type="capacity"}) by (instance) < 0.2) and (sum(tikv_raftstore_snapshot_traffic_total{type="applying"}) by (instance) > 0)) > 0` + `sum(tikv_store_size_bytes{type="available"}) by (instance) / sum(tikv_store_size_bytes{type="capacity"}) by (instance) < 0.2` + +* Description: + + The data volume of TiKV exceeds 80% of the node configuration capacity or the disk capacity of the machine. + +* Solution: + + * Check the balance condition of node space. + * Make a plan to increase the disk capacity or delete some data or increase cluster node depending on different situations. #### `TiKV_approximate_region_size` From 3654fe7c94ccd6cbd3ec1407175bd5283178dbf1 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Wed, 8 Sep 2021 11:42:18 +0800 Subject: [PATCH 2/2] Update alert-rules.md --- alert-rules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alert-rules.md b/alert-rules.md index b9800a52a227a..1ed724b2cf2d1 100644 --- a/alert-rules.md +++ b/alert-rules.md @@ -760,7 +760,7 @@ This section gives the alert rules for the TiKV component. * Description: - The data volume of TiKV exceeds 80% of the node configuration capacity or the disk capacity of the machine. + The data volume of TiKV exceeds 80% of the configured node capacity or the disk capacity of the machine. * Solution: