From 2bc501a7dc29764a33d294faa0414aff790cbd3f Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Thu, 31 Oct 2024 13:46:51 +0800 Subject: [PATCH 1/4] Add temp.md --- temp.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 temp.md diff --git a/temp.md b/temp.md new file mode 100644 index 0000000000000..af27ff4986a7b --- /dev/null +++ b/temp.md @@ -0,0 +1 @@ +This is a test file. \ No newline at end of file From 01e5b15f5291d229901b15144d424aa358f0b14f Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Thu, 31 Oct 2024 13:46:56 +0800 Subject: [PATCH 2/4] Delete temp.md --- temp.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 temp.md diff --git a/temp.md b/temp.md deleted file mode 100644 index af27ff4986a7b..0000000000000 --- a/temp.md +++ /dev/null @@ -1 +0,0 @@ -This is a test file. \ No newline at end of file From 63b3a6446bccde37ba93509082bfa4d266256cf9 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Thu, 31 Oct 2024 13:57:32 +0800 Subject: [PATCH 3/4] Update alert-rules.md --- alert-rules.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/alert-rules.md b/alert-rules.md index 2fefa4e719c0d..d05518eec88c5 100644 --- a/alert-rules.md +++ b/alert-rules.md @@ -561,11 +561,13 @@ This section gives the alert rules for the TiKV component. * Alert rule: - `sum(rate(tikv_thread_cpu_seconds_total{name=~"raftstore_.*"}[1m])) by (instance, name) > 1.6` + `sum(rate(tikv_thread_cpu_seconds_total{name=~"raftstore_.*"}[1m])) by (instance) > 1.6` * Description: - The pressure on the Raftstore thread is too high. + This rule monitors CPU usage by Raftstore. If the value is high, it indicates pressure on Raftstore threads is heavy. + + The alert threshold is 80% of the [`raftstore.store-pool-size`](/tikv-configuration-file.md#store-pool-size) value. `raftstore.store-pool-size` is 2 by default, so the alert threshold is 1.6. * Solution: From cd04a106d0add47daa2000b05c1e1600c7b02009 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Thu, 31 Oct 2024 13:59:27 +0800 Subject: [PATCH 4/4] 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 d05518eec88c5..08d94ed368c59 100644 --- a/alert-rules.md +++ b/alert-rules.md @@ -561,7 +561,7 @@ This section gives the alert rules for the TiKV component. * Alert rule: - `sum(rate(tikv_thread_cpu_seconds_total{name=~"raftstore_.*"}[1m])) by (instance) > 1.6` + `sum(rate(tikv_thread_cpu_seconds_total{name=~"raftstore_.*"}[1m])) by (instance) > 1.6` * Description: