From 0ca64278f7d1029e56963b9df71be8d3615c74e5 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 42f1b2b18735da0cc27516eb05ebeb5eab23e2a1 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 d227dbacfdb714ec2a50004967f793d5305821f4 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 c09a05fd5a120..7db48cb45cb5e 100644 --- a/alert-rules.md +++ b/alert-rules.md @@ -560,11 +560,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 aac30bbdc8a0c625c7cafe49926a68c00371d14f 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 7db48cb45cb5e..f9e2d19a2510e 100644 --- a/alert-rules.md +++ b/alert-rules.md @@ -560,7 +560,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: