From 966d1c6b0c9bc0f979a7609c87be3ccb3a10873b 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 3af40be4bdb0b..f25507a00f0b0 100644 --- a/alert-rules.md +++ b/alert-rules.md @@ -751,11 +751,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 ab4e5f438d1b9674824fe5a36b503795ad023e9a 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 f25507a00f0b0..c7e0c8579191e 100644 --- a/alert-rules.md +++ b/alert-rules.md @@ -759,7 +759,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: