From bb2b0e4dd90c1c87817046afe79661914d81233a 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 a5bb35ff29ed72d7faeef831096dd18b4cc4b607 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 f71f1d906fe3b3b8fceea4907d413a910638a46d 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 830ce4153f1fa..f724b5c99a3f1 100644 --- a/alert-rules.md +++ b/alert-rules.md @@ -562,11 +562,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 a2ae175685fd88dd0477a757d4e3607fb8327bc4 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 f724b5c99a3f1..9e47eec00c5c7 100644 --- a/alert-rules.md +++ b/alert-rules.md @@ -562,7 +562,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: