From b155a7004672e6b196d5e9f93de23df101daace0 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 efd350ec1c562fd20af5af80f549f267e6493c79 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 6a3d2db94819527545f7028a8a28057f08f79ec3 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 91052ceb0a99c..bcab2158658a3 100644 --- a/alert-rules.md +++ b/alert-rules.md @@ -577,11 +577,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 f4e97162cfbc344dc03ba2a2f2ef08bd7401c43c 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 bcab2158658a3..c3c2770f3b07b 100644 --- a/alert-rules.md +++ b/alert-rules.md @@ -577,7 +577,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: